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

Search Toolkit Book for CTwoPartQualPanel

#include "twopartqual_panel.hpp"
(Private to src/gui/widgets/edit.)

+ Inheritance diagram for CTwoPartQualPanel:
+ Collaboration diagram for CTwoPartQualPanel:

Public Types

enum  { ID_CTWOPARTQUALPANEL = 10083 , ID_CHOICE12 = 10084 , ID_TEXTCTRL28 = 10085 }
 Control identifiers. More...
 

Public Member Functions

 CTwoPartQualPanel ()
 Constructors. More...
 
 CTwoPartQualPanel (wxWindow *parent, wxWindowID id=ID_CTWOPARTQUALPANEL, const wxString &caption=_("TwoPartQualPanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CTWOPARTQUALPANEL, const wxString &caption=_("TwoPartQualPanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CTwoPartQualPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
virtual void SetValue (string val)
 
virtual string GetValue ()
 
virtual void GetDimensions (int *width, int *height)
 
void SetControlledList (vector< string > choices)
 
void OnTextctrl28TextUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL28 More...
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
- Public Member Functions inherited from CFormattedQualPanel
virtual void OnChildChange (wxWindow *wnd)
 
- Public Member Functions inherited from CQualListItemPanel
virtual void NotifyParentOfChange ()
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 
- Static Public Member Functions inherited from CQualListItemPanel
static void RemoveRepresentedQuals (objects::CSeq_feat &feat, const string &qual_name)
 

Public Attributes

wxChoice * m_ControlledListCtrl
 
wxTextCtrl * m_FreeTextCtrl
 

Additional Inherited Members

- Protected Member Functions inherited from CQualListItemPanel
virtual void x_AdjustForControl (CQualListItemPanel *panel, wxHyperlinkCtrl *itemHyperlinkCtrl)
 
- Protected Attributes inherited from CQualListItemPanel
int m_TotalHeight
 
int m_TotalWidth
 
int m_ScrollRate
 
int m_MinHeight
 
int m_MinWidth
 
int m_NumRows
 
bool m_AllowUpdates
 

Detailed Description

CTwoPartQualPanel class declaration

Definition at line 67 of file twopartqual_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CTWOPARTQUALPANEL 
ID_CHOICE12 
ID_TEXTCTRL28 

Definition at line 118 of file twopartqual_panel.hpp.

Constructor & Destructor Documentation

◆ CTwoPartQualPanel() [1/2]

CTwoPartQualPanel::CTwoPartQualPanel ( )

Constructors.

CTwoPartQualPanel type definition

CTwoPartQualPanel event table definition

CTwoPartQualPanel constructors

Definition at line 67 of file twopartqual_panel.cpp.

References Init().

◆ CTwoPartQualPanel() [2/2]

CTwoPartQualPanel::CTwoPartQualPanel ( wxWindow *  parent,
wxWindowID  id = ID_CTWOPARTQUALPANEL,
const wxString &  caption = _("TwoPartQualPanel"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CTwoPartQualPanel()

CTwoPartQualPanel::~CTwoPartQualPanel ( )

Destructor.

CTwoPartQualPanel destructor

Definition at line 104 of file twopartqual_panel.cpp.

Member Function Documentation

◆ Create()

bool CTwoPartQualPanel::Create ( wxWindow *  parent,
wxWindowID  id = ID_CTWOPARTQUALPANEL,
const wxString &  caption = _("TwoPartQualPanel"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Creation.

CTwoPartQualPanel creator

Definition at line 83 of file twopartqual_panel.cpp.

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

Referenced by CTwoPartQualPanel().

◆ CreateControls()

void CTwoPartQualPanel::CreateControls ( )

Creates the controls and sizers.

Control creation for CTwoPartQualPanel

Definition at line 128 of file twopartqual_panel.cpp.

References ID_CHOICE12, ID_TEXTCTRL28, m_ControlledListCtrl, and m_FreeTextCtrl.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CTwoPartQualPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 238 of file twopartqual_panel.cpp.

◆ GetDimensions()

void CTwoPartQualPanel::GetDimensions ( int width,
int height 
)
virtual

Reimplemented from CFormattedQualPanel.

Definition at line 196 of file twopartqual_panel.cpp.

References m_ControlledListCtrl, m_FreeTextCtrl, and NULL.

◆ GetIconResource()

wxIcon CTwoPartQualPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 251 of file twopartqual_panel.cpp.

◆ GetValue()

string CTwoPartQualPanel::GetValue ( void  )
virtual

Reimplemented from CFormattedQualPanel.

Definition at line 180 of file twopartqual_panel.cpp.

References NStr::IsBlank(), m_ControlledListCtrl, m_FreeTextCtrl, ToStdString(), and val.

◆ Init()

void CTwoPartQualPanel::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 115 of file twopartqual_panel.cpp.

References m_ControlledListCtrl, m_FreeTextCtrl, and NULL.

Referenced by CTwoPartQualPanel().

◆ OnTextctrl28TextUpdated()

void CTwoPartQualPanel::OnTextctrl28TextUpdated ( wxCommandEvent &  event)

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL28

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL28

Definition at line 265 of file twopartqual_panel.cpp.

References NStr::IsBlank(), CQualListItemPanel::NotifyParentOfChange(), and ToStdString().

◆ SetControlledList()

void CTwoPartQualPanel::SetControlledList ( vector< string choices)

Definition at line 215 of file twopartqual_panel.cpp.

References ITERATE, m_ControlledListCtrl, and ToWxString().

Referenced by CSingleGbQualSubPanel::CreateControls().

◆ SetValue()

void CTwoPartQualPanel::SetValue ( string  val)
virtual

◆ ShowToolTips()

bool CTwoPartQualPanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 229 of file twopartqual_panel.cpp.

Member Data Documentation

◆ m_ControlledListCtrl

wxChoice* CTwoPartQualPanel::m_ControlledListCtrl

◆ m_FreeTextCtrl

wxTextCtrl* CTwoPartQualPanel::m_FreeTextCtrl

Definition at line 116 of file twopartqual_panel.hpp.

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


The documentation for this class was generated from the following files:
Modified on Tue Apr 16 20:10:19 2024 by modify_doxy.py rev. 669887