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

Search Toolkit Book for CSrcModTextPanel

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

+ Inheritance diagram for CSrcModTextPanel:
+ Collaboration diagram for CSrcModTextPanel:

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
 

Detailed Description

CSrcModTextPanel class declaration

Definition at line 70 of file srcmod_text_panel.hpp.

Constructor & Destructor Documentation

◆ CSrcModTextPanel() [1/2]

CSrcModTextPanel::CSrcModTextPanel ( )

Constructors.

Definition at line 72 of file srcmod_text_panel.cpp.

References Init().

◆ CSrcModTextPanel() [2/2]

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

◆ ~CSrcModTextPanel()

CSrcModTextPanel::~CSrcModTextPanel ( )

Destructor.

Definition at line 109 of file srcmod_text_panel.cpp.

Member Function Documentation

◆ Create()

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

◆ CreateControls()

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

◆ GetBitmapResource()

wxBitmap CSrcModTextPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 160 of file srcmod_text_panel.cpp.

◆ GetIconResource()

wxIcon CSrcModTextPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 173 of file srcmod_text_panel.cpp.

◆ GetValue()

string CSrcModTextPanel::GetValue ( void  )
virtual

Implements CSrcModEditPanel.

Definition at line 183 of file srcmod_text_panel.cpp.

References m_Text, and ToStdString().

◆ Init()

void CSrcModTextPanel::Init ( void  )

Initialises member variables.

Definition at line 120 of file srcmod_text_panel.cpp.

References m_Text, and NULL.

Referenced by CSrcModTextPanel().

◆ IsWellFormatted()

bool CSrcModTextPanel::IsWellFormatted ( const string val)
virtual

Implements CSrcModEditPanel.

Definition at line 195 of file srcmod_text_panel.cpp.

◆ OnTextctrl5TextUpdated()

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

◆ SetValue()

void CSrcModTextPanel::SetValue ( const string val)
virtual

Implements CSrcModEditPanel.

Definition at line 189 of file srcmod_text_panel.cpp.

References m_Text, ToWxString(), and val.

◆ ShowToolTips()

bool CSrcModTextPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 151 of file srcmod_text_panel.cpp.

Member Data Documentation

◆ m_Text

wxTextCtrl* CSrcModTextPanel::m_Text

Definition at line 112 of file srcmod_text_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:00 2024 by modify_doxy.py rev. 669887