NCBI C++ ToolKit
Public Types | Public Member Functions | Private Attributes | List of all members
CEditSubpanel Class Reference

Search Toolkit Book for CEditSubpanel

#include <gui/packages/pkg_sequence_edit/apply_edit_convert_panel.hpp>

+ Inheritance diagram for CEditSubpanel:
+ Collaboration diagram for CEditSubpanel:

Public Types

enum  {
  ID_EDITSUB_FIND = 6390 , ID_EDITSUB_REPLACE , ID_EDITSUB_COPY , ID_EDITSUB_ANY ,
  ID_EDITSUB_BEG , ID_EDITSUB_END , ID_EDITSUB_AUTOPOPULATE , ID_EDITSUB_CLEAR
}
 

Public Member Functions

 CEditSubpanel ()
 Constructors. More...
 
 CEditSubpanel (wxWindow *parent, wxGrid *grid, wxArrayString &choices, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
virtual void CreateControls ()
 Creates the controls and sizers. More...
 
void OnEditsubCopyClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EDITSUB_COPY More...
 
void OnEditsubAutopopulateClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EDITSUB_AUTOPOPULATE More...
 
void OnEditsubClearClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EDITSUB_CLEAR More...
 
virtual void ApplyToAll (int col)
 
virtual void ApplyToSelected (int col, const std::set< int > &selected)
 
- Public Member Functions inherited from CSubpanel
 CSubpanel ()
 
 CSubpanel (wxWindow *parent, wxGrid *grid, wxArrayString &choices, wxWindowID id, const wxPoint &pos, const wxSize &size, long style)
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
virtual ~CSubpanel ()
 
bool ShowToolTips ()
 
wxBitmap GetBitmapResource (const wxString &name)
 
wxIcon GetIconResource (const wxString &name)
 
objects::edit::EExistingText GetExistingTextHandling (const string &field)
 
virtual void Init ()
 
virtual void SetColumns (wxArrayString &columns)
 
void ChangeValue (const string &new_value, int row, int col)
 
CApplyEditconvertPanelGetBaseFrame ()
 
wxListBox * GetListBox ()
 
int GetColumn2 ()
 

Private Attributes

wxTextCtrl * m_Find
 
wxTextCtrl * m_Replace
 
wxRadioButton * m_Anywhere
 
wxRadioButton * m_AtBegin
 
wxRadioButton * m_AtEnd
 

Additional Inherited Members

- Protected Attributes inherited from CSubpanel
wxGrid * m_Grid
 
wxListBox * m_ListBox
 
wxListBox * m_ListBox2
 
wxArrayString * m_Choices
 

Detailed Description

CEditSubpanel class declaration

Definition at line 265 of file apply_edit_convert_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_EDITSUB_FIND 
ID_EDITSUB_REPLACE 
ID_EDITSUB_COPY 
ID_EDITSUB_ANY 
ID_EDITSUB_BEG 
ID_EDITSUB_END 
ID_EDITSUB_AUTOPOPULATE 
ID_EDITSUB_CLEAR 

Definition at line 302 of file apply_edit_convert_panel.hpp.

Constructor & Destructor Documentation

◆ CEditSubpanel() [1/2]

CEditSubpanel::CEditSubpanel ( )
inline

Constructors.

Definition at line 272 of file apply_edit_convert_panel.hpp.

References CSubpanel::Init().

◆ CEditSubpanel() [2/2]

CEditSubpanel::CEditSubpanel ( wxWindow *  parent,
wxGrid *  grid,
wxArrayString &  choices,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)
inline

Member Function Documentation

◆ ApplyToAll()

void CEditSubpanel::ApplyToAll ( int  col)
virtual

◆ ApplyToSelected()

void CEditSubpanel::ApplyToSelected ( int  col,
const std::set< int > &  selected 
)
virtual

◆ CreateControls()

void CEditSubpanel::CreateControls ( )
virtual

Creates the controls and sizers.

Reimplemented from CSubpanel.

Definition at line 712 of file apply_edit_convert_panel.cpp.

References _, and wxID_ANY.

◆ OnEditsubAutopopulateClick()

void CEditSubpanel::OnEditsubAutopopulateClick ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EDITSUB_AUTOPOPULATE

Definition at line 791 of file apply_edit_convert_panel.cpp.

References m_Find, NULL, and rapidjson::value.

◆ OnEditsubClearClick()

void CEditSubpanel::OnEditsubClearClick ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EDITSUB_CLEAR

Definition at line 811 of file apply_edit_convert_panel.cpp.

References m_Find.

◆ OnEditsubCopyClick()

void CEditSubpanel::OnEditsubCopyClick ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EDITSUB_COPY

Definition at line 781 of file apply_edit_convert_panel.cpp.

References m_Find, m_Replace, and val.

Member Data Documentation

◆ m_Anywhere

wxRadioButton* CEditSubpanel::m_Anywhere
private

Definition at line 315 of file apply_edit_convert_panel.hpp.

Referenced by ApplyToAll(), and ApplyToSelected().

◆ m_AtBegin

wxRadioButton * CEditSubpanel::m_AtBegin
private

Definition at line 315 of file apply_edit_convert_panel.hpp.

Referenced by ApplyToAll(), and ApplyToSelected().

◆ m_AtEnd

wxRadioButton * CEditSubpanel::m_AtEnd
private

Definition at line 315 of file apply_edit_convert_panel.hpp.

Referenced by ApplyToAll(), and ApplyToSelected().

◆ m_Find

wxTextCtrl* CEditSubpanel::m_Find
private

◆ m_Replace

wxTextCtrl* CEditSubpanel::m_Replace
private

Definition at line 314 of file apply_edit_convert_panel.hpp.

Referenced by ApplyToAll(), ApplyToSelected(), and OnEditsubCopyClick().


The documentation for this class was generated from the following files:
Modified on Mon May 27 04:34:57 2024 by modify_doxy.py rev. 669887