NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CLatLonPanel Class Reference

Search Toolkit Book for CLatLonPanel

#include <gui/widgets/edit/latlon_panel.hpp>

+ Inheritance diagram for CLatLonPanel:
+ Collaboration diagram for CLatLonPanel:

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
 

Detailed Description

CLatLonPanel class declaration

Definition at line 74 of file latlon_panel.hpp.

Constructor & Destructor Documentation

◆ CLatLonPanel() [1/2]

CLatLonPanel::CLatLonPanel ( )

Constructors.

Definition at line 75 of file latlon_panel.cpp.

References Init().

◆ CLatLonPanel() [2/2]

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::~CLatLonPanel ( )

Destructor.

Definition at line 112 of file latlon_panel.cpp.

Member Function Documentation

◆ Create()

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().

◆ CreateControls()

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().

◆ GetBitmapResource()

wxBitmap CLatLonPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 183 of file latlon_panel.cpp.

◆ GetIconResource()

wxIcon CLatLonPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 196 of file latlon_panel.cpp.

◆ GetValue()

string CLatLonPanel::GetValue ( void  )
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.

◆ Init()

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().

◆ IsWellFormatted()

bool CLatLonPanel::IsWellFormatted ( const string val)
virtual

Implements CSrcModEditPanel.

Definition at line 285 of file latlon_panel.cpp.

References NStr::IsBlank(), and val.

◆ OnLatTxtTextUpdated()

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().

◆ OnLonTxtTextUpdated()

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().

◆ SetValue()

void CLatLonPanel::SetValue ( const string val)
virtual

◆ ShowToolTips()

bool CLatLonPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 174 of file latlon_panel.cpp.

Member Data Documentation

◆ m_EW

wxChoice* CLatLonPanel::m_EW

Definition at line 122 of file latlon_panel.hpp.

Referenced by CreateControls(), GetValue(), Init(), and SetValue().

◆ m_Lat

wxTextCtrl* CLatLonPanel::m_Lat

Definition at line 119 of file latlon_panel.hpp.

Referenced by CreateControls(), GetValue(), Init(), and SetValue().

◆ m_Lon

wxTextCtrl* CLatLonPanel::m_Lon

Definition at line 121 of file latlon_panel.hpp.

Referenced by CreateControls(), GetValue(), Init(), and SetValue().

◆ m_NS

wxChoice* CLatLonPanel::m_NS

Definition at line 120 of file latlon_panel.hpp.

Referenced by CreateControls(), GetValue(), Init(), and SetValue().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:20 2024 by modify_doxy.py rev. 669887