NCBI C++ ToolKit
|
Search Toolkit Book for CInferencePanel
#include <gui/widgets/edit/inference_panel.hpp>
Public Types | |
enum | { ID_CTWOPARTQUALPANEL = 10083 , ID_CHOICE12 = 10084 , ID_CHOICE13 = 10096 } |
Control identifiers. More... | |
Public Member Functions | |
CInferencePanel () | |
Constructors. More... | |
CInferencePanel (wxWindow *parent, wxWindowID id=ID_CTWOPARTQUALPANEL, 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 wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
Creation. More... | |
~CInferencePanel () | |
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) |
virtual void | OnChildChange (wxWindow *wnd) |
void | OnChoice13Selected (wxCommandEvent &event) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE13 More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
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_CategoryCtrl |
wxChoice * | m_TypeCtrl |
wxBoxSizer * | m_ExtraCtrlSizer |
Private Attributes | |
int | m_TopWidth |
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 |
CInferencePanel class declaration
Definition at line 73 of file inference_panel.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CTWOPARTQUALPANEL | |
ID_CHOICE12 | |
ID_CHOICE13 |
Definition at line 124 of file inference_panel.hpp.
CInferencePanel::CInferencePanel | ( | ) |
Constructors.
CInferencePanel type definition
CInferencePanel event table definition
CInferencePanel constructors
Definition at line 75 of file inference_panel.cpp.
References Init().
CInferencePanel::CInferencePanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CTWOPARTQUALPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 80 of file inference_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CInferencePanel::~CInferencePanel | ( | ) |
bool CInferencePanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CTWOPARTQUALPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Creation.
CInferencePanel creator
Definition at line 91 of file inference_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CInferencePanel().
void CInferencePanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CInferencePanel
Definition at line 137 of file inference_panel.cpp.
References _, ID_CHOICE12, ID_CHOICE13, m_CategoryCtrl, m_ExtraCtrlSizer, m_TopWidth, CQualListItemPanel::m_TotalHeight, CQualListItemPanel::m_TotalWidth, and m_TypeCtrl.
Referenced by Create().
wxBitmap CInferencePanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 509 of file inference_panel.cpp.
Reimplemented from CFormattedQualPanel.
Definition at line 485 of file inference_panel.cpp.
References CQualListItemPanel::m_TotalHeight, CQualListItemPanel::m_TotalWidth, and NULL.
wxIcon CInferencePanel::GetIconResource | ( | const wxString & | name | ) |
|
virtual |
Reimplemented from CFormattedQualPanel.
Definition at line 367 of file inference_panel.cpp.
References NStr::Equal(), NStr::EqualNocase(), NStr::Find(), NStr::IsBlank(), ITERATE, m_CategoryCtrl, m_ExtraCtrlSizer, m_TypeCtrl, NStr::ReplaceInPlace(), NStr::Split(), NStr::StartsWith(), text(), tmp, ToStdString(), and val.
Referenced by CEditInferencePanel::AddCommand(), OnChoice13Selected(), and CInferenceListPanel::x_GetInferences().
void CInferencePanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 123 of file inference_panel.cpp.
References m_CategoryCtrl, m_ExtraCtrlSizer, m_TypeCtrl, and NULL.
Referenced by CInferencePanel().
|
virtual |
Reimplemented from CFormattedQualPanel.
Definition at line 479 of file inference_panel.cpp.
References CQualListItemPanel::NotifyParentOfChange().
void CInferencePanel::OnChoice13Selected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE13
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE13
Definition at line 536 of file inference_panel.cpp.
References GetValue(), CQualListItemPanel::NotifyParentOfChange(), SetValue(), and val.
|
virtual |
Reimplemented from CFormattedQualPanel.
Definition at line 211 of file inference_panel.cpp.
References _, database, NStr::EqualNocase(), i, m_CategoryCtrl, m_ExtraCtrlSizer, m_TopWidth, CQualListItemPanel::m_TotalHeight, CQualListItemPanel::m_TotalWidth, m_TypeCtrl, NStr::StartsWith(), ToStdString(), ToWxString(), types, val, dtl::version, and wxID_ANY.
Referenced by CEditInferencePanel::CreateControls(), OnChoice13Selected(), and CInferenceListPanel::x_AddInference().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 500 of file inference_panel.cpp.
wxChoice* CInferencePanel::m_CategoryCtrl |
Definition at line 120 of file inference_panel.hpp.
Referenced by CreateControls(), GetValue(), Init(), and SetValue().
wxBoxSizer* CInferencePanel::m_ExtraCtrlSizer |
Definition at line 122 of file inference_panel.hpp.
Referenced by CreateControls(), GetValue(), Init(), and SetValue().
|
private |
Definition at line 132 of file inference_panel.hpp.
Referenced by CreateControls(), and SetValue().
wxChoice* CInferencePanel::m_TypeCtrl |
Definition at line 121 of file inference_panel.hpp.
Referenced by CreateControls(), GetValue(), Init(), and SetValue().