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

Search Toolkit Book for CSrcModCheckboxPanel

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

+ Inheritance diagram for CSrcModCheckboxPanel:
+ Collaboration diagram for CSrcModCheckboxPanel:

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
 

Detailed Description

CSrcModCheckboxPanel class declaration

Definition at line 71 of file srcmod_checkbox_panel.hpp.

Constructor & Destructor Documentation

◆ CSrcModCheckboxPanel() [1/2]

CSrcModCheckboxPanel::CSrcModCheckboxPanel ( )

Constructors.

Definition at line 72 of file srcmod_checkbox_panel.cpp.

References Init().

◆ CSrcModCheckboxPanel() [2/2]

CSrcModCheckboxPanel::CSrcModCheckboxPanel ( wxWindow *  parent,
wxWindowID  id = 10020,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ ~CSrcModCheckboxPanel()

CSrcModCheckboxPanel::~CSrcModCheckboxPanel ( )

Destructor.

Definition at line 109 of file srcmod_checkbox_panel.cpp.

Member Function Documentation

◆ Create()

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

◆ CreateControls()

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

◆ GetBitmapResource()

wxBitmap CSrcModCheckboxPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 161 of file srcmod_checkbox_panel.cpp.

◆ GetIconResource()

wxIcon CSrcModCheckboxPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 174 of file srcmod_checkbox_panel.cpp.

◆ GetValue()

string CSrcModCheckboxPanel::GetValue ( void  )
virtual

Implements CSrcModEditPanel.

Definition at line 184 of file srcmod_checkbox_panel.cpp.

References m_Checkbox.

◆ Init()

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

◆ IsWellFormatted()

bool CSrcModCheckboxPanel::IsWellFormatted ( const string val)
virtual

Implements CSrcModEditPanel.

Definition at line 204 of file srcmod_checkbox_panel.cpp.

References NStr::EqualNocase(), NStr::IsBlank(), and val.

◆ OnCheckboxClick()

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

◆ SetValue()

void CSrcModCheckboxPanel::SetValue ( const string val)
virtual

Implements CSrcModEditPanel.

Definition at line 194 of file srcmod_checkbox_panel.cpp.

References NStr::EqualNocase(), m_Checkbox, and val.

◆ ShowToolTips()

bool CSrcModCheckboxPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 152 of file srcmod_checkbox_panel.cpp.

Member Data Documentation

◆ m_Checkbox

wxCheckBox* CSrcModCheckboxPanel::m_Checkbox

Definition at line 113 of file srcmod_checkbox_panel.hpp.

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


The documentation for this class was generated from the following files:
Modified on Mon Apr 22 04:05:27 2024 by modify_doxy.py rev. 669887