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

Search Toolkit Book for CRptTypePanel

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

+ Inheritance diagram for CRptTypePanel:
+ Collaboration diagram for CRptTypePanel:

Public Types

enum  { ID_CRPTTYPEPANEL = 10090 }
 Control identifiers. More...
 

Public Member Functions

 CRptTypePanel ()
 Constructors. More...
 
 CRptTypePanel (wxWindow *parent, wxWindowID id=ID_CRPTTYPEPANEL, const wxString &caption=_("RptTypePanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CRPTTYPEPANEL, const wxString &caption=_("RptTypePanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CRptTypePanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
virtual void SetValue (string val)
 
virtual string GetValue ()
 
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)
 
virtual void GetDimensions (int *width, int *height)
 
- Public Member Functions inherited from CQualListItemPanel
virtual void NotifyParentOfChange ()
 

Static Public Member Functions

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

Public Attributes

wxFlexGridSizer * m_TheSizer
 

Private Attributes

wxArrayString m_AcceptedValues
 
vector< wxCheckBox * > m_Boxes
 

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

CRptTypePanel class declaration

Definition at line 69 of file rpttype_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CRPTTYPEPANEL 

Definition at line 113 of file rpttype_panel.hpp.

Constructor & Destructor Documentation

◆ CRptTypePanel() [1/2]

CRptTypePanel::CRptTypePanel ( )

Constructors.

CRptTypePanel type definition

CRptTypePanel event table definition

CRptTypePanel constructors

Definition at line 66 of file rpttype_panel.cpp.

References Init().

◆ CRptTypePanel() [2/2]

CRptTypePanel::CRptTypePanel ( wxWindow *  parent,
wxWindowID  id = ID_CRPTTYPEPANEL,
const wxString &  caption = _("RptTypePanel"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Definition at line 71 of file rpttype_panel.cpp.

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

◆ ~CRptTypePanel()

CRptTypePanel::~CRptTypePanel ( )

Destructor.

CRptTypePanel destructor

Definition at line 103 of file rpttype_panel.cpp.

Member Function Documentation

◆ Create()

bool CRptTypePanel::Create ( wxWindow *  parent,
wxWindowID  id = ID_CRPTTYPEPANEL,
const wxString &  caption = _("RptTypePanel"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Creation.

CRptTypePanel creator

Definition at line 82 of file rpttype_panel.cpp.

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

Referenced by CRptTypePanel().

◆ CreateControls()

void CRptTypePanel::CreateControls ( )

Creates the controls and sizers.

Control creation for CRptTypePanel

Definition at line 138 of file rpttype_panel.cpp.

References ITERATE, m_AcceptedValues, m_Boxes, m_TheSizer, and wxID_ANY.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CRptTypePanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 207 of file rpttype_panel.cpp.

◆ GetIconResource()

wxIcon CRptTypePanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 220 of file rpttype_panel.cpp.

◆ GetValue()

string CRptTypePanel::GetValue ( void  )
virtual

Reimplemented from CFormattedQualPanel.

Definition at line 176 of file rpttype_panel.cpp.

References i, NStr::IsBlank(), m_AcceptedValues, m_Boxes, ToStdString(), and val.

◆ Init()

void CRptTypePanel::Init ( void  )

Initialises member variables.

Definition at line 124 of file rpttype_panel.cpp.

References m_AcceptedValues, m_TheSizer, NULL, and s_PopulateValuesArray().

Referenced by CRptTypePanel().

◆ IsParseable()

bool CRptTypePanel::IsParseable ( const string val)
static

◆ SetValue()

void CRptTypePanel::SetValue ( string  val)
virtual

Reimplemented from CFormattedQualPanel.

Definition at line 156 of file rpttype_panel.cpp.

References NStr::EqualNocase(), i, m_AcceptedValues, m_Boxes, NStr::Split(), ToStdString(), and val.

◆ ShowToolTips()

bool CRptTypePanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 198 of file rpttype_panel.cpp.

Member Data Documentation

◆ m_AcceptedValues

wxArrayString CRptTypePanel::m_AcceptedValues
private

Definition at line 121 of file rpttype_panel.hpp.

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

◆ m_Boxes

vector<wxCheckBox*> CRptTypePanel::m_Boxes
private

Definition at line 122 of file rpttype_panel.hpp.

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

◆ m_TheSizer

wxFlexGridSizer* CRptTypePanel::m_TheSizer

Definition at line 111 of file rpttype_panel.hpp.

Referenced by CreateControls(), and Init().


The documentation for this class was generated from the following files:
Modified on Thu Nov 30 04:52:30 2023 by modify_doxy.py rev. 669887