NCBI C++ ToolKit
|
Search Toolkit Book for CSrcModTextPanel
#include <gui/widgets/edit/srcmod_text_panel.hpp>
Public Member Functions | |
CSrcModTextPanel () | |
Constructors. More... | |
CSrcModTextPanel (wxWindow *parent, wxWindowID id=10018, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=10018, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CSrcModTextPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnTextctrl5TextUpdated (wxCommandEvent &event) |
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL5 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 | |
wxTextCtrl * | m_Text |
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 |
CSrcModTextPanel class declaration
Definition at line 70 of file srcmod_text_panel.hpp.
CSrcModTextPanel::CSrcModTextPanel | ( | ) |
CSrcModTextPanel::CSrcModTextPanel | ( | wxWindow * | parent, |
wxWindowID | id = 10018 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 77 of file srcmod_text_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CSrcModTextPanel::~CSrcModTextPanel | ( | ) |
Destructor.
Definition at line 109 of file srcmod_text_panel.cpp.
bool CSrcModTextPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = 10018 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
Definition at line 89 of file srcmod_text_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CSrcModTextPanel().
void CSrcModTextPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Definition at line 132 of file srcmod_text_panel.cpp.
References ID_TEXTCTRL5, and m_Text.
Referenced by Create().
wxBitmap CSrcModTextPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 160 of file srcmod_text_panel.cpp.
wxIcon CSrcModTextPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 173 of file srcmod_text_panel.cpp.
|
virtual |
Implements CSrcModEditPanel.
Definition at line 183 of file srcmod_text_panel.cpp.
References m_Text, and ToStdString().
void CSrcModTextPanel::Init | ( | void | ) |
Initialises member variables.
Definition at line 120 of file srcmod_text_panel.cpp.
Referenced by CSrcModTextPanel().
Implements CSrcModEditPanel.
Definition at line 195 of file srcmod_text_panel.cpp.
void CSrcModTextPanel::OnTextctrl5TextUpdated | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL5
Definition at line 205 of file srcmod_text_panel.cpp.
References CSrcModEditPanel::x_NotifyParent().
Implements CSrcModEditPanel.
Definition at line 189 of file srcmod_text_panel.cpp.
References m_Text, ToWxString(), and val.
|
static |
Should we show tooltips?
Definition at line 151 of file srcmod_text_panel.cpp.
wxTextCtrl* CSrcModTextPanel::m_Text |
Definition at line 112 of file srcmod_text_panel.hpp.
Referenced by CreateControls(), GetValue(), Init(), and SetValue().