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

Search Toolkit Book for CAltitudePanel

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

+ Inheritance diagram for CAltitudePanel:
+ Collaboration diagram for CAltitudePanel:

Public Member Functions

 CAltitudePanel ()
 Constructors. More...
 
 CAltitudePanel (wxWindow *parent, wxWindowID id=10014, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=10014, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CAltitudePanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void OnAltitudeTxtTextUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_ALTITUDE_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_Text
 

Protected Member Functions

bool x_GetNumber (const string &input, string &number)
 
- Protected Member Functions inherited from CSrcModEditPanel
void x_NotifyParent ()
 

Additional Inherited Members

- Public Types inherited from CSrcModEditPanel
enum  EEditorType {
  eText = 0 , eCheckbox , eVoucher , eAltitude ,
  eLatLon
}
 
- Protected Attributes inherited from CSrcModEditPanel
EEditorType m_EditorType
 

Detailed Description

CAltitudePanel class declaration

Definition at line 71 of file altitude_panel.hpp.

Constructor & Destructor Documentation

◆ CAltitudePanel() [1/2]

CAltitudePanel::CAltitudePanel ( )

Constructors.

Definition at line 74 of file altitude_panel.cpp.

References Init().

◆ CAltitudePanel() [2/2]

CAltitudePanel::CAltitudePanel ( wxWindow *  parent,
wxWindowID  id = 10014,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

Definition at line 79 of file altitude_panel.cpp.

References Create(), Init(), and ncbi::grid::netcache::search::fields::size.

◆ ~CAltitudePanel()

CAltitudePanel::~CAltitudePanel ( )

Destructor.

Definition at line 111 of file altitude_panel.cpp.

Member Function Documentation

◆ Create()

bool CAltitudePanel::Create ( wxWindow *  parent,
wxWindowID  id = 10014,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

Creation.

Definition at line 91 of file altitude_panel.cpp.

References CreateControls(), and ncbi::grid::netcache::search::fields::size.

Referenced by CAltitudePanel().

◆ CreateControls()

void CAltitudePanel::CreateControls ( )

Creates the controls and sizers.

Definition at line 134 of file altitude_panel.cpp.

References _, ID_ALTITUDE_TXT, and m_Text.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CAltitudePanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 165 of file altitude_panel.cpp.

◆ GetIconResource()

wxIcon CAltitudePanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 178 of file altitude_panel.cpp.

◆ GetValue()

string CAltitudePanel::GetValue ( void  )
virtual

Implements CSrcModEditPanel.

Definition at line 188 of file altitude_panel.cpp.

References check, NStr::IsBlank(), m_Text, number, ToStdString(), val, and x_GetNumber().

◆ Init()

void CAltitudePanel::Init ( void  )

Initialises member variables.

Definition at line 122 of file altitude_panel.cpp.

References m_Text, and NULL.

Referenced by CAltitudePanel().

◆ IsWellFormatted()

bool CAltitudePanel::IsWellFormatted ( const string val)
virtual

Implements CSrcModEditPanel.

Definition at line 219 of file altitude_panel.cpp.

References number, val, and x_GetNumber().

◆ OnAltitudeTxtTextUpdated()

void CAltitudePanel::OnAltitudeTxtTextUpdated ( wxCommandEvent &  event)

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_ALTITUDE_TXT

Definition at line 230 of file altitude_panel.cpp.

References CSrcModEditPanel::x_NotifyParent().

◆ SetValue()

void CAltitudePanel::SetValue ( const string val)
virtual

Implements CSrcModEditPanel.

Definition at line 207 of file altitude_panel.cpp.

References m_Text, number, val, and x_GetNumber().

◆ ShowToolTips()

bool CAltitudePanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 156 of file altitude_panel.cpp.

◆ x_GetNumber()

bool CAltitudePanel::x_GetNumber ( const string input,
string number 
)
protected

Member Data Documentation

◆ m_Text

wxTextCtrl* CAltitudePanel::m_Text

Definition at line 113 of file altitude_panel.hpp.

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


The documentation for this class was generated from the following files:
Modified on Fri Apr 12 17:20:13 2024 by modify_doxy.py rev. 669887