NCBI C++ ToolKit
|
Search Toolkit Book for CLatLonPanel
#include <gui/widgets/edit/latlon_panel.hpp>
Public Member Functions | |
CLatLonPanel () | |
Constructors. More... | |
CLatLonPanel (wxWindow *parent, wxWindowID id=10024, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=10024, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CLatLonPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnLatTxtTextUpdated (wxCommandEvent &event) |
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_LAT_TXT More... | |
void | OnLonTxtTextUpdated (wxCommandEvent &event) |
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_LON_TXT 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_Lat |
wxChoice * | m_NS |
wxTextCtrl * | m_Lon |
wxChoice * | m_EW |
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 |
CLatLonPanel class declaration
Definition at line 74 of file latlon_panel.hpp.
CLatLonPanel::CLatLonPanel | ( | ) |
CLatLonPanel::CLatLonPanel | ( | wxWindow * | parent, |
wxWindowID | id = 10024 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 80 of file latlon_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CLatLonPanel::~CLatLonPanel | ( | ) |
Destructor.
Definition at line 112 of file latlon_panel.cpp.
bool CLatLonPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = 10024 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
Definition at line 92 of file latlon_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CLatLonPanel().
void CLatLonPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Definition at line 138 of file latlon_panel.cpp.
References _, ID_CHOICE, ID_CHOICE1, ID_LAT_TXT, ID_LON_TXT, m_EW, m_Lat, m_Lon, and m_NS.
Referenced by Create().
wxBitmap CLatLonPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 183 of file latlon_panel.cpp.
wxIcon CLatLonPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 196 of file latlon_panel.cpp.
|
virtual |
Implements CSrcModEditPanel.
Definition at line 226 of file latlon_panel.cpp.
References NStr::IsBlank(), m_EW, m_Lat, m_Lon, m_NS, ToStdString(), and val.
void CLatLonPanel::Init | ( | void | ) |
Initialises member variables.
Definition at line 123 of file latlon_panel.cpp.
References m_EW, m_Lat, m_Lon, m_NS, and NULL.
Referenced by CLatLonPanel().
Implements CSrcModEditPanel.
Definition at line 285 of file latlon_panel.cpp.
References NStr::IsBlank(), and val.
void CLatLonPanel::OnLatTxtTextUpdated | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_LAT_TXT
Definition at line 210 of file latlon_panel.cpp.
References CSrcModEditPanel::x_NotifyParent().
void CLatLonPanel::OnLonTxtTextUpdated | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_LON_TXT
Definition at line 220 of file latlon_panel.cpp.
References CSrcModEditPanel::x_NotifyParent().
Implements CSrcModEditPanel.
Definition at line 243 of file latlon_panel.cpp.
References NStr::fDoubleFixed, NStr::IsBlank(), m_EW, m_Lat, m_Lon, m_NS, number, NStr::NumericToString(), ToWxString(), val, and wxT.
|
static |
Should we show tooltips?
Definition at line 174 of file latlon_panel.cpp.
wxChoice* CLatLonPanel::m_EW |
Definition at line 122 of file latlon_panel.hpp.
Referenced by CreateControls(), GetValue(), Init(), and SetValue().
wxTextCtrl* CLatLonPanel::m_Lat |
Definition at line 119 of file latlon_panel.hpp.
Referenced by CreateControls(), GetValue(), Init(), and SetValue().
wxTextCtrl* CLatLonPanel::m_Lon |
Definition at line 121 of file latlon_panel.hpp.
Referenced by CreateControls(), GetValue(), Init(), and SetValue().
wxChoice* CLatLonPanel::m_NS |
Definition at line 120 of file latlon_panel.hpp.
Referenced by CreateControls(), GetValue(), Init(), and SetValue().