NCBI C++ ToolKit
|
Search Toolkit Book for CConstraintPanel
#include <gui/packages/pkg_sequence_edit/constraint_panel.hpp>
Public Member Functions | |
CConstraintPanel () | |
CConstraintPanel (wxWindow *parent, objects::CSeq_entry_Handle seh, vector< const objects::CFeatListItem * > *featlist=nullptr, bool load_macro_fields=false, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxSIMPLE_BORDER) | |
bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) |
~CConstraintPanel () | |
void | Init () |
void | CreateControls () |
void | OnPageChanged (wxBookCtrlEvent &event) |
void | SetSelection (int page) |
CFieldNamePanel * | GetFieldNamePanel (void) |
CRef< edit::CStringConstraint > | GetStringConstraint (void) |
string | GetMacroStringConstraint (const string &field_name) |
CStringConstraintPanel * | GetStringConstraintPanel () |
string | GetFieldType (void) const |
bool | SetFieldName (const string &field) |
void | ClearValues (void) |
void | ListPresentFeaturesFirst (objects::CSeq_entry_Handle seh) |
virtual void | UpdateEditor (void) |
virtual CRef< CEditingActionConstraint > | GetConstraint (const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class) |
wxBitmap | GetBitmapResource (const wxString &name) |
wxIcon | GetIconResource (const wxString &name) |
![]() | |
virtual | ~CFieldNamePanelParent () |
![]() | |
virtual | ~IConstraintPanelBase () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Private Attributes | |
wxChoicebook * | m_Notebook |
CStringConstraintPanel * | m_StringConstraintPanel |
CFeatureFieldNamePanel * | m_feat_field_panel |
objects::CSeq_entry_Handle | m_TopSeqEntry |
vector< const objects::CFeatListItem * > * | m_featlist |
bool | m_LoadMacroFields { false } |
Definition at line 77 of file constraint_panel.hpp.
CConstraintPanel::CConstraintPanel | ( | ) |
CConstraintPanel event table definition
CConstraintPanel constructors
Definition at line 80 of file constraint_panel.cpp.
References Init().
CConstraintPanel::CConstraintPanel | ( | wxWindow * | parent, |
objects::CSeq_entry_Handle | seh, | ||
vector< const objects::CFeatListItem * > * | featlist = nullptr , |
||
bool | load_macro_fields = false , |
||
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL|wxSIMPLE_BORDER |
||
) |
Definition at line 85 of file constraint_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
|
inline |
Definition at line 99 of file constraint_panel.hpp.
void CConstraintPanel::ClearValues | ( | void | ) |
Definition at line 252 of file constraint_panel.cpp.
References CStringConstraintPanel::ClearValues(), CFieldNamePanel::ClearValues(), GetFieldNamePanel(), and m_StringConstraintPanel.
Referenced by CAdvancedConstraintPanel::ClearValues().
bool CConstraintPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
CConstraintPanel creator
Definition at line 104 of file constraint_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CConstraintPanel().
void CConstraintPanel::CreateControls | ( | ) |
Control creation for CConstraintPanel
Definition at line 137 of file constraint_panel.cpp.
References _, CDBLinkFieldType::GetFieldNames(), CMolInfoFieldType::GetFieldNames(), CPubFieldType::GetFieldNames(), CMiscFieldType::GetMacroFieldNames(), CMolInfoFieldType::GetMacroFieldNames(), CPubFieldType::GetMacroFieldNames(), CMiscFieldType::GetStrings(), ID_CONSTRAINT_CHOICEBOOK, kDefinitionLineLabel, kFieldTypeSeqId, kFileSeqId, CFeatureFieldNamePanel::ListPresentFeaturesFirst(), m_feat_field_panel, m_featlist, m_LoadMacroFields, m_Notebook, m_StringConstraintPanel, m_TopSeqEntry, NULL, CCDSGeneProtFieldNamePanel::SetFieldName(), CFieldHandlerNamePanel::SetFieldName(), CRNAFieldNamePanel::SetFieldName(), CSourceFieldNamePanel::SetFieldName(), CFieldHandlerNamePanel::SetFieldNames(), CFieldHandlerNamePanel::SetMacroFieldNames(), CFieldHandlerNamePanel::SetMacroSelf(), UpdateEditor(), wxFIXED_MINSIZE, and wxID_ANY.
Referenced by Create().
wxBitmap CConstraintPanel::GetBitmapResource | ( | const wxString & | name | ) |
Get bitmap resources
Definition at line 272 of file constraint_panel.cpp.
|
virtual |
Implements IConstraintPanelBase.
Definition at line 340 of file constraint_panel.cpp.
References CreateEditingActionConstraint(), CFieldNamePanel::GetFieldName(), GetFieldNamePanel(), GetFieldType(), CFieldNamePanel::GetFieldTypeFromName(), GetStringConstraint(), and GetSubtype().
Referenced by CBulkEditFeatDlg::GetCommand(), and CEditCdsFrame::GetCommand().
CFieldNamePanel * CConstraintPanel::GetFieldNamePanel | ( | void | ) |
Definition at line 224 of file constraint_panel.cpp.
References m_Notebook.
Referenced by ClearValues(), CConvertCdsToMiscFeat::GetCommand(), CParseTextDlg::GetCommand(), GetConstraint(), CTextSubpanel::OnSelectButton(), CTextSubpanel::SetClusters(), CCorrectGenesDialog::x_GetConstrainedList(), CAttribTableColumnIdPanel::x_GetConstraintField(), and CTableReaderMacro::x_GetStringConstraint().
string CConstraintPanel::GetFieldType | ( | void | ) | const |
Definition at line 241 of file constraint_panel.cpp.
References m_Notebook.
Referenced by CConvertCdsToMiscFeat::GetCommand(), CParseTextDlg::GetCommand(), GetConstraint(), CTextSubpanel::OnSelectButton(), CTextSubpanel::SetClusters(), CCorrectGenesDialog::x_GetConstrainedList(), and CAttribTableColumnIdPanel::x_GetConstraintField().
wxIcon CConstraintPanel::GetIconResource | ( | const wxString & | name | ) |
Get icon resources
Definition at line 285 of file constraint_panel.cpp.
Definition at line 236 of file constraint_panel.cpp.
References CStringConstraintPanel::GetMacroStringConstraint(), and m_StringConstraintPanel.
Referenced by CTableReaderMacro::x_GetStringConstraint().
CRef< edit::CStringConstraint > CConstraintPanel::GetStringConstraint | ( | void | ) |
Definition at line 231 of file constraint_panel.cpp.
References CStringConstraintPanel::GetStringConstraint(), and m_StringConstraintPanel.
Referenced by CConvertCdsToMiscFeat::GetCommand(), CParseTextDlg::GetCommand(), GetConstraint(), CTextSubpanel::OnSelectButton(), CCorrectGenesDialog::x_GetConstrainedList(), and CAttribTableColumnIdPanel::x_TableReaderCommon().
|
inline |
Definition at line 112 of file constraint_panel.hpp.
References m_StringConstraintPanel.
Referenced by CConvertCdsToMiscFeat::CreateControls().
void CConstraintPanel::Init | ( | void | ) |
Member initialisation
Definition at line 123 of file constraint_panel.cpp.
References m_feat_field_panel, m_Notebook, m_StringConstraintPanel, and NULL.
Referenced by CConstraintPanel().
|
inline |
Definition at line 116 of file constraint_panel.hpp.
References CFeatureFieldNamePanel::ListPresentFeaturesFirst(), and m_feat_field_panel.
Referenced by CAttribTableColumnIdPanel::SetTopLevelEntry(), and CTextSubpanel::UpdateChildrenFeaturePanels().
void CConstraintPanel::OnPageChanged | ( | wxBookCtrlEvent & | event | ) |
Definition at line 334 of file constraint_panel.cpp.
References UpdateEditor().
Definition at line 303 of file constraint_panel.cpp.
References m_Notebook, CFieldNamePanel::SetFieldName(), and UpdateEditor().
Referenced by CEditCdsFrame::CreateControls().
void CConstraintPanel::SetSelection | ( | int | page | ) |
Definition at line 294 of file constraint_panel.cpp.
References m_Notebook, and UpdateEditor().
Referenced by CConvertCdsToMiscFeat::CreateControls(), CCorrectGenesDialog::CreateControls(), CEditCdsFrame::CreateControls(), and CAdvancedConstraintPanel::SetSelection().
|
static |
Should we show tooltips?
Definition at line 263 of file constraint_panel.cpp.
|
virtual |
Implements CFieldNamePanelParent.
Definition at line 319 of file constraint_panel.cpp.
References CFieldNamePanel::GetChoices(), CFieldNamePanel::GetMacroValues(), m_Notebook, m_StringConstraintPanel, and CStringConstraintPanel::SetChoices().
Referenced by CreateControls(), OnPageChanged(), SetFieldName(), and SetSelection().
|
private |
Definition at line 132 of file constraint_panel.hpp.
Referenced by CreateControls(), Init(), and ListPresentFeaturesFirst().
|
private |
Definition at line 134 of file constraint_panel.hpp.
Referenced by CreateControls().
Definition at line 135 of file constraint_panel.hpp.
Referenced by CreateControls().
|
private |
Definition at line 130 of file constraint_panel.hpp.
Referenced by CreateControls(), GetFieldNamePanel(), GetFieldType(), Init(), SetFieldName(), SetSelection(), and UpdateEditor().
|
private |
Definition at line 131 of file constraint_panel.hpp.
Referenced by ClearValues(), CreateControls(), GetMacroStringConstraint(), GetStringConstraint(), GetStringConstraintPanel(), Init(), and UpdateEditor().
|
private |
Definition at line 133 of file constraint_panel.hpp.
Referenced by CreateControls().