NCBI C++ ToolKit
|
Search Toolkit Book for CSrcModCheckboxPanel
#include <gui/widgets/edit/srcmod_checkbox_panel.hpp>
Public Member Functions | |
CSrcModCheckboxPanel () | |
Constructors. More... | |
CSrcModCheckboxPanel (wxWindow *parent, wxWindowID id=10020, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=10020, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CSrcModCheckboxPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnCheckboxClick (wxCommandEvent &event) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
virtual string | GetValue () |
virtual void | SetValue (const string &val) |
virtual bool | IsWellFormatted (const string &val) |
Public Member Functions inherited from CSrcModEditPanel | |
CSrcModEditPanel (EEditorType editor_type) | |
Constructors. More... | |
~CSrcModEditPanel () | |
Destructor. More... | |
EEditorType | GetEditorType () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Static Public Member Functions inherited from CSrcModEditPanel | |
static EEditorType | GetEditorTypeForSubSource (objects::CSubSource::TSubtype st) |
static EEditorType | GetEditorTypeForOrgMod (objects::COrgMod::TSubtype st) |
Public Attributes | |
wxCheckBox * | m_Checkbox |
Additional Inherited Members | |
Public Types inherited from CSrcModEditPanel | |
enum | EEditorType { eText = 0 , eCheckbox , eVoucher , eAltitude , eLatLon } |
Protected Member Functions inherited from CSrcModEditPanel | |
void | x_NotifyParent () |
Protected Attributes inherited from CSrcModEditPanel | |
EEditorType | m_EditorType |
CSrcModCheckboxPanel class declaration
Definition at line 71 of file srcmod_checkbox_panel.hpp.
CSrcModCheckboxPanel::CSrcModCheckboxPanel | ( | ) |
CSrcModCheckboxPanel::CSrcModCheckboxPanel | ( | wxWindow * | parent, |
wxWindowID | id = 10020 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 77 of file srcmod_checkbox_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CSrcModCheckboxPanel::~CSrcModCheckboxPanel | ( | ) |
Destructor.
Definition at line 109 of file srcmod_checkbox_panel.cpp.
bool CSrcModCheckboxPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = 10020 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
Definition at line 89 of file srcmod_checkbox_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CSrcModCheckboxPanel().
void CSrcModCheckboxPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Definition at line 132 of file srcmod_checkbox_panel.cpp.
References ID_CHECKBOX, and m_Checkbox.
Referenced by Create().
wxBitmap CSrcModCheckboxPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 161 of file srcmod_checkbox_panel.cpp.
wxIcon CSrcModCheckboxPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 174 of file srcmod_checkbox_panel.cpp.
|
virtual |
Implements CSrcModEditPanel.
Definition at line 184 of file srcmod_checkbox_panel.cpp.
References m_Checkbox.
void CSrcModCheckboxPanel::Init | ( | void | ) |
Initialises member variables.
Definition at line 120 of file srcmod_checkbox_panel.cpp.
References m_Checkbox, and NULL.
Referenced by CSrcModCheckboxPanel().
Implements CSrcModEditPanel.
Definition at line 204 of file srcmod_checkbox_panel.cpp.
References NStr::EqualNocase(), NStr::IsBlank(), and val.
void CSrcModCheckboxPanel::OnCheckboxClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX
Definition at line 219 of file srcmod_checkbox_panel.cpp.
References CSrcModEditPanel::x_NotifyParent().
Implements CSrcModEditPanel.
Definition at line 194 of file srcmod_checkbox_panel.cpp.
References NStr::EqualNocase(), m_Checkbox, and val.
|
static |
Should we show tooltips?
Definition at line 152 of file srcmod_checkbox_panel.cpp.
wxCheckBox* CSrcModCheckboxPanel::m_Checkbox |
Definition at line 113 of file srcmod_checkbox_panel.hpp.
Referenced by CreateControls(), GetValue(), Init(), and SetValue().