NCBI C++ ToolKit
|
Search Toolkit Book for CApplyEditconvertPanel
#include <gui/packages/pkg_sequence_edit/apply_edit_convert_panel.hpp>
Public Types | |
enum | { ID_CAPPLYEDITCONVERTPANEL = 6350 , ID_AECR_CHOICE , ID_AECR_LISTBOX , ID_AECR_BUTTON , ID_AECR_BUTTON1 , ID_AECR_BUTTON2 } |
Public Member Functions | |
CApplyEditconvertPanel () | |
Constructors. More... | |
CApplyEditconvertPanel (wxWindow *parent, CSeqTableGridPanel *grid_panel, wxArrayString &choices, int init_action=0, bool horizontal=true, wxWindowID id=ID_CAPPLYEDITCONVERTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CAPPLYEDITCONVERTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CApplyEditconvertPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnApplyToAllButtonClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_AECR_BUTTON More... | |
void | OnApplyToSelButtonClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_AECR_BUTTON1 More... | |
void | OnUndoButtonClick (wxCommandEvent &event) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
int | GetColumn () |
wxString | GetAutopopulateValue () |
void | GetSelectedRows (std::set< int > &selected) |
void | SetColumns (wxArrayString &columns) |
bool | GetModified () |
void | AddUndo (int i, int j, const string &val) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Private Member Functions | |
wxListBox * | GetListBox () |
Private Attributes | |
CSeqTableGridPanel * | m_GridPanel |
wxGrid * | m_Grid |
wxArrayString * | m_Choices |
wxListbook * | m_Notebook |
bool | m_Modified |
wxButton * | m_UndoButton |
map< int, map< int, string > > | m_undo_values |
int | m_init_action |
bool | m_Horizontal |
CApplyEditconvertPanel class declaration
Definition at line 81 of file apply_edit_convert_panel.hpp.
anonymous enum |
Enumerator | |
---|---|
ID_CAPPLYEDITCONVERTPANEL | |
ID_AECR_CHOICE | |
ID_AECR_LISTBOX | |
ID_AECR_BUTTON | |
ID_AECR_BUTTON1 | |
ID_AECR_BUTTON2 |
Definition at line 146 of file apply_edit_convert_panel.hpp.
CApplyEditconvertPanel::CApplyEditconvertPanel | ( | ) |
CApplyEditconvertPanel::CApplyEditconvertPanel | ( | wxWindow * | parent, |
CSeqTableGridPanel * | grid_panel, | ||
wxArrayString & | choices, | ||
int | init_action = 0 , |
||
bool | horizontal = true , |
||
wxWindowID | id = ID_CAPPLYEDITCONVERTPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 95 of file apply_edit_convert_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CApplyEditconvertPanel::~CApplyEditconvertPanel | ( | ) |
Destructor.
Definition at line 128 of file apply_edit_convert_panel.cpp.
Definition at line 142 of file apply_edit_convert_panel.hpp.
References i, m_undo_values, and val.
Referenced by CSubpanel::ChangeValue().
bool CApplyEditconvertPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CAPPLYEDITCONVERTPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
Definition at line 108 of file apply_edit_convert_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CApplyEditconvertPanel().
void CApplyEditconvertPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Definition at line 151 of file apply_edit_convert_panel.cpp.
References _, ID_AECR_BUTTON, ID_AECR_BUTTON1, ID_AECR_BUTTON2, ID_AECR_CHOICE, m_Choices, m_Grid, m_Notebook, m_UndoButton, and wxID_ANY.
Referenced by Create().
wxString CApplyEditconvertPanel::GetAutopopulateValue | ( | ) |
Definition at line 311 of file apply_edit_convert_panel.cpp.
References CSeqTableGridPanel::CollapseByCol(), CSeqTableGridPanel::GetCollapseColAndExpand(), GetColumn(), GetSelectedRows(), i, m_Grid, m_GridPanel, and rapidjson::value.
wxBitmap CApplyEditconvertPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 219 of file apply_edit_convert_panel.cpp.
int CApplyEditconvertPanel::GetColumn | ( | void | ) |
Definition at line 263 of file apply_edit_convert_panel.cpp.
References GetBulkSourceFrame(), GetListBox(), SrcEditDialog::GetNewColumn(), i, and m_Grid.
Referenced by GetAutopopulateValue(), OnApplyToAllButtonClick(), and OnApplyToSelButtonClick().
wxIcon CApplyEditconvertPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 232 of file apply_edit_convert_panel.cpp.
|
private |
Definition at line 241 of file apply_edit_convert_panel.cpp.
References CSubpanel::GetListBox(), m_Notebook, and NULL.
Referenced by GetColumn().
|
inline |
Definition at line 140 of file apply_edit_convert_panel.hpp.
References m_Modified.
Referenced by CBulkCDS::OnClickCancel(), CBulkGene::OnClickCancel(), CBulkMiscFeat::OnClickCancel(), CBulkRna::OnClickCancel(), CCompareWithBiosample::OnClickCancel(), CBulkCountryEdit::OnClickCancel(), and SrcEditDialog::OnClickCancel().
void CApplyEditconvertPanel::GetSelectedRows | ( | std::set< int > & | selected | ) |
Definition at line 287 of file apply_edit_convert_panel.cpp.
Referenced by GetAutopopulateValue(), and OnApplyToSelButtonClick().
void CApplyEditconvertPanel::Init | ( | void | ) |
Initialises member variables.
Definition at line 139 of file apply_edit_convert_panel.cpp.
References m_Modified.
Referenced by CApplyEditconvertPanel().
void CApplyEditconvertPanel::OnApplyToAllButtonClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_AECR_BUTTON
Definition at line 351 of file apply_edit_convert_panel.cpp.
References CSubpanel::ApplyToAll(), map_checker< Container >::clear(), CSeqTableGridPanel::CollapseByCol(), map_checker< Container >::empty(), CSeqTableGridPanel::GetCollapseColAndExpand(), GetColumn(), m_Grid, m_GridPanel, m_Modified, m_Notebook, m_undo_values, and m_UndoButton.
void CApplyEditconvertPanel::OnApplyToSelButtonClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_AECR_BUTTON1
Definition at line 382 of file apply_edit_convert_panel.cpp.
References CSubpanel::ApplyToSelected(), map_checker< Container >::clear(), CSeqTableGridPanel::CollapseByCol(), map_checker< Container >::empty(), CSeqTableGridPanel::GetCollapseColAndExpand(), GetColumn(), GetSelectedRows(), m_Grid, m_GridPanel, m_Modified, m_Notebook, m_undo_values, and m_UndoButton.
void CApplyEditconvertPanel::OnUndoButtonClick | ( | wxCommandEvent & | event | ) |
Definition at line 427 of file apply_edit_convert_panel.cpp.
References map_checker< Container >::begin(), CSeqTableGridPanel::CollapseByCol(), map_checker< Container >::end(), CSeqTableGridPanel::GetCollapseColAndExpand(), i, m_Grid, m_GridPanel, m_undo_values, m_UndoButton, row, and val.
void CApplyEditconvertPanel::SetColumns | ( | wxArrayString & | columns | ) |
Definition at line 415 of file apply_edit_convert_panel.cpp.
References columns, i, m_Notebook, and CSubpanel::SetColumns().
Referenced by SrcEditDialog::ResetSubPanels().
|
static |
Should we show tooltips?
Definition at line 210 of file apply_edit_convert_panel.cpp.
|
private |
Definition at line 159 of file apply_edit_convert_panel.hpp.
Referenced by CreateControls().
|
private |
Definition at line 158 of file apply_edit_convert_panel.hpp.
Referenced by CreateControls(), GetAutopopulateValue(), GetColumn(), GetSelectedRows(), OnApplyToAllButtonClick(), OnApplyToSelButtonClick(), and OnUndoButtonClick().
|
private |
Definition at line 157 of file apply_edit_convert_panel.hpp.
Referenced by GetAutopopulateValue(), OnApplyToAllButtonClick(), OnApplyToSelButtonClick(), and OnUndoButtonClick().
|
private |
Definition at line 166 of file apply_edit_convert_panel.hpp.
|
private |
Definition at line 164 of file apply_edit_convert_panel.hpp.
|
private |
Definition at line 161 of file apply_edit_convert_panel.hpp.
Referenced by GetModified(), Init(), OnApplyToAllButtonClick(), and OnApplyToSelButtonClick().
|
private |
Definition at line 160 of file apply_edit_convert_panel.hpp.
Referenced by CreateControls(), GetListBox(), OnApplyToAllButtonClick(), OnApplyToSelButtonClick(), and SetColumns().
Definition at line 163 of file apply_edit_convert_panel.hpp.
Referenced by AddUndo(), OnApplyToAllButtonClick(), OnApplyToSelButtonClick(), and OnUndoButtonClick().
|
private |
Definition at line 162 of file apply_edit_convert_panel.hpp.
Referenced by CreateControls(), OnApplyToAllButtonClick(), OnApplyToSelButtonClick(), and OnUndoButtonClick().