NCBI C++ ToolKit
|
Search Toolkit Book for CFieldNamePanel
#include <gui/widgets/edit/field_name_panel.hpp>
Public Member Functions | |
CFieldNamePanel () | |
Constructors. More... | |
~CFieldNamePanel () | |
Destructor. More... | |
virtual string | GetFieldName (const bool subfield=false)=0 |
Returns the name of the field as selected in the panel. More... | |
virtual bool | SetFieldName (const string &field)=0 |
virtual vector< string > | GetChoices (bool &allow_other) |
virtual vector< string > | GetMacroValues () |
virtual void | ClearValues (void) |
virtual void | SetShowLegalOnly (bool show) |
virtual string | GetMacroFieldName (const string &target, const string &selected_field=kEmptyStr) |
virtual string | GetMacroFieldLabel (const string &target, const string &selected_field=kEmptyStr) |
Static Public Member Functions | |
static string | GetFieldTypeName (EFieldType field_type) |
static EFieldType | GetFieldTypeFromName (const string &field_type_name) |
static bool | IsFeature (const string &target) |
static bool | IsDescriptor (const string &target) |
Protected Member Functions | |
void | x_UpdateParent (void) |
bool | x_IsParentAECRDlg (void) |
void | x_UpdateAECRDlgLayout (void) |
bool | x_ShouldDecreaseStrConstrPanel (void) |
CFieldNamePanel class declaration
Definition at line 50 of file field_name_panel.hpp.
Definition at line 70 of file field_name_panel.hpp.
|
inline |
Constructors.
Definition at line 54 of file field_name_panel.hpp.
|
inline |
Destructor.
Definition at line 57 of file field_name_panel.hpp.
|
inlinevirtual |
Reimplemented in CStructCommentFieldPanel, CSourceFieldNamePanel, CDualRNAFieldNamePanel, CRNAFieldNamePanel, CFieldHandlerNamePanel, CFeatureTypePanel, CFeatureFieldNamePanel, and CCDSGeneProtFieldNamePanel.
Definition at line 65 of file field_name_panel.hpp.
Referenced by CQualApplyPanel::ClearValues(), CQualEditPanel::ClearValues(), CQualConvertPanel::ClearValues(), CQualParsePanel::ClearValues(), CQualRemoveOutsidePanel::ClearValues(), CQualCopyPanel::ClearValues(), CQualSwapPanel::ClearValues(), CQualRemovePanel::ClearValues(), and CConstraintPanel::ClearValues().
Reimplemented in CSourceFieldNamePanel, CFieldHandlerNamePanel, CFeatureFieldNamePanel, CCDSGeneProtFieldNamePanel, CSingleChoicePanel, CFieldConstraintPanel, and CFieldChoicePanel.
Definition at line 45 of file field_name_panel.cpp.
Referenced by CAdvStringConstraintPanel< T >::CreateControls(), CMacroAdvStringConstraintPanel< T >::CreateControls(), CFieldChoicePanel::GetChoices(), CConstraintPanel::UpdateEditor(), CAdvStringConstraintPanel< T >::UpdateEditor(), and CMacroAdvStringConstraintPanel< T >::UpdateEditor().
Returns the name of the field as selected in the panel.
In case of names composed of multiple words, for example, feature_name + qualifier when the subfield parameter is true, the qualifier name is returned only.
Implemented in CSourceFieldNamePanel, CFileIdPanel, CSeqIdPanel, CDualRNAFieldNamePanel, CRNAFieldNamePanel, CFieldHandlerNamePanel, CFeatureTypePanel, CFeatureFieldNamePanel, CCDSGeneProtFieldNamePanel, CProteinFieldPanel, CMiscFieldPanel, CGeneralIDPanel, CGeneFieldPanel, CFieldConstraintPanel, CFieldChoicePanel, CDbxrefNamePanel, CStructFieldValuePanel, and CStructCommentFieldPanel.
Referenced by CConvertCdsToMiscFeat::GetCommand(), CParseTextDlg::GetCommand(), CConstraintPanel::GetConstraint(), CQualChoicePanel::GetField(), CFieldChoicePanel::GetField1(), CFieldChoicePanel::GetField2(), CMacroAdvStringConstraintPanel< T >::GetFuncWithArgs(), CPresentMatcherPanel< T >::GetLabel(), CSameMatcherPanel< T >::GetLabel(), CAdvStringConstraintPanel< T >::GetLabel(), CPresentMatcherPanel< T >::GetMatcher(), CSameMatcherPanel< T >::GetMatcher(), CAdvStringConstraintPanel< T >::GetMatcher(), CMacroAdvStringConstraintPanel< T >::GetMatcher(), CSelectQualdDlg::OnSelect(), CTextSubpanel::OnSelectButton(), CTextSubpanel::SetClusters(), CSelectQualdDlg::SetField(), CCorrectGenesDialog::x_GetConstrainedList(), CAttribTableColumnIdPanel::x_GetConstraintField(), and CTableReaderMacro::x_GetStringConstraint().
|
static |
Definition at line 170 of file field_name_panel.cpp.
References eFieldType_BankITComment, eFieldType_CDSGeneProt, eFieldType_Comment, eFieldType_DBLink, eFieldType_Dbxref, eFieldType_DefLine, eFieldType_Feature, eFieldType_FileId, eFieldType_FlatFile, eFieldType_Gene, eFieldType_GeneralId, eFieldType_LocalId, eFieldType_Misc, eFieldType_MolInfo, eFieldType_Protein, eFieldType_Pub, eFieldType_RNA, eFieldType_SeqId, eFieldType_Source, eFieldType_StructuredComment, eFieldType_Taxname, eFieldType_TaxnameAfterBinomial, eFieldType_Unknown, NStr::eNocase, NStr::EqualNocase(), kBankITComment, kComment, kDefinitionLineLabel, kFieldTypeSeqId, kFileSeqId, kFlatFile, kGeneralId, kLocalId, kTaxnameAfterBinomial, NStr::StartsWith(), and val.
Referenced by CFieldChoicePanel::AutoMatch(), IActionPanel::CreateAction1(), IActionPanel::CreateAction2_imp(), CQualChoicePanel::CreateEditingAction(), IActionPanel::GetAutopopulateValue(), CAECRFrame::GetCommand(), CParseTextDlg::GetCommand(), CConstraintPanel::GetConstraint(), CFieldChoicePanel::GetFieldType(), CFieldChoicePanel::GetFieldTypes(), CAddConstraint::OnAccept(), CFieldChoicePanel::OnFieldTypeChoiceSelected(), CSelectQualdDlg::OnFieldTypeSelected(), CAttribTableColumnIdPanel::OnMatchColumnClick(), CSelectQualdDlg::OnSelect(), CFieldChoicePanel::SetFieldName(), CSelectQualdDlg::UpdateEditor(), and CAttribTableColumnIdPanel::x_GuessQualifiers().
|
static |
Definition at line 92 of file field_name_panel.cpp.
References eFieldType_BankITComment, eFieldType_CDSGeneProt, eFieldType_Comment, eFieldType_DBLink, eFieldType_Dbxref, eFieldType_DefLine, eFieldType_Feature, eFieldType_FileId, eFieldType_FlatFile, eFieldType_Gene, eFieldType_GeneralId, eFieldType_LocalId, eFieldType_Misc, eFieldType_MolInfo, eFieldType_Protein, eFieldType_Pub, eFieldType_RNA, eFieldType_SeqId, eFieldType_Source, eFieldType_StructuredComment, eFieldType_Taxname, eFieldType_TaxnameAfterBinomial, eFieldType_Unknown, kBankITComment, kComment, kDefinitionLineLabel, kFieldTypeSeqId, kFileSeqId, kFlatFile, kGeneralId, kLocalId, kTaxnameAfterBinomial, and val.
Referenced by CFieldChoicePanel::AutoMatch(), CFieldChoicePanel::CreateControls(), CSelectQualdDlg::CreateControls(), CPresentMatcherPanel< T >::GetMatcher(), CSameMatcherPanel< T >::GetMatcher(), CAdvStringConstraintPanel< T >::GetMatcher(), CAttribTableColumnIdPanel::OnMatchColumnClick(), CAttribTableColumnIdPanel::OnMatchTypeSelected(), CFieldChoicePanel::SetFieldName(), CFieldChoicePanel::SetFieldType(), CAttribTableColumnIdPanel::UpdateCol(), and CAttribTableColumnIdPanel::x_GuessQualifiers().
|
inlinevirtual |
Reimplemented in CFieldHandlerNamePanel.
Definition at line 69 of file field_name_panel.hpp.
References kEmptyStr.
Referenced by CMacroAdvStringConstraintPanel< T >::GetMatcher().
|
inlinevirtual |
Reimplemented in CStructCommentFieldPanel, CSourceFieldNamePanel, CFileIdPanel, CSeqIdPanel, CRNAFieldNamePanel, CFieldHandlerNamePanel, CFeatureFieldNamePanel, and CCDSGeneProtFieldNamePanel.
Definition at line 68 of file field_name_panel.hpp.
References kEmptyStr.
Referenced by CMacroAdvStringConstraintPanel< T >::GetMatcher(), CMacroAdvStringConstraintPanel< T >::GetQualName(), CSelectQualdDlg::OnSelect(), CSelectQualdDlg::SetField(), and CTableReaderMacro::x_GetStringConstraint().
|
virtual |
Reimplemented in CFieldHandlerNamePanel.
Definition at line 51 of file field_name_panel.cpp.
Referenced by CMacroAdvStringConstraintPanel< T >::CreateControls(), CConstraintPanel::UpdateEditor(), and CMacroAdvStringConstraintPanel< T >::UpdateEditor().
Definition at line 242 of file field_name_panel.cpp.
Referenced by CMacroFeatsOnSeqPanel::GetFuncWithArgs(), and CMacroFeatsOnSeqPanel::GetLocationConstraint().
Definition at line 228 of file field_name_panel.cpp.
Referenced by CMacroAddConstraint::CreateControls(), CMacroFeatsOnSeqPanel::GetFuncWithArgs(), CMacroFeatsOnSeqPanel::GetLocationConstraint(), CFieldHandlerNamePanel::GetMacroFieldName(), CSourceFieldNamePanel::GetMacroFieldName(), CFeatureFieldNamePanel::s_GetMacroFieldName(), CCDSGeneProtFieldNamePanel::s_GetMacroFieldName(), CRNAFieldNamePanel::s_GetMacroFieldName(), and CTableReaderMacro::x_GetMatchFieldConstraint().
Implemented in CStructFieldValuePanel, CStructCommentFieldPanel, CSourceFieldNamePanel, CFileIdPanel, CSeqIdPanel, CDualRNAFieldNamePanel, CRNAFieldNamePanel, CFieldHandlerNamePanel, CFeatureTypePanel, CFeatureFieldNamePanel, CCDSGeneProtFieldNamePanel, CProteinFieldPanel, CMiscFieldPanel, CGeneralIDPanel, CGeneFieldPanel, CFieldConstraintPanel, CFieldChoicePanel, and CDbxrefNamePanel.
Referenced by CSelectQualdDlg::SetField(), CConstraintPanel::SetFieldName(), CFieldChoicePanel::SetFieldName(), CSelectQualdDlg::SetFieldType(), CFieldChoicePanel::SetFieldType(), and CFieldChoicePanel::SetOneFieldName().
|
inlinevirtual |
Reimplemented in CFieldChoicePanel, CFeatureTypePanel, and CFeatureFieldNamePanel.
Definition at line 66 of file field_name_panel.hpp.
Referenced by CFieldChoicePanel::SetFieldType().
|
protected |
Definition at line 70 of file field_name_panel.cpp.
Referenced by CFieldChoicePanel::SetFieldType(), and CFieldConstraintPanel::UpdateEditor().
|
protected |
Definition at line 79 of file field_name_panel.cpp.
Referenced by CFieldConstraintPanel::CreateControls().
|
protected |
Definition at line 75 of file field_name_panel.cpp.
Referenced by CFieldConstraintPanel::UpdateEditor().
|
protected |
Definition at line 57 of file field_name_panel.cpp.
References NULL, and CFieldNamePanelParent::UpdateEditor().
Referenced by CSingleChoicePanel::OnFieldChoiceSelected(), CStructCommentFieldPanel::OnFieldNameEnter(), CCDSGeneProtFieldNamePanel::OnFieldSelected(), CFieldHandlerNamePanel::OnFieldSelected(), CFieldChoicePanel::OnFieldTypeChoiceSelected(), CFeatureTypePanel::OnListbox1Selected(), CSourceFieldNamePanel::OnLocationBtnSelected(), CRNAFieldNamePanel::OnncRNAClassSelected(), CSourceFieldNamePanel::OnOriginBtnSelected(), CFeatureFieldNamePanel::OnQualifierListboxSelected(), CRNAFieldNamePanel::OnRnaFieldSelected(), CDualRNAFieldNamePanel::OnRnaFieldSelected(), CRNAFieldNamePanel::OnRnaTypeSelected(), CDualRNAFieldNamePanel::OnRnaTypeSelected(), CSourceFieldNamePanel::OnSrcSublistSelected(), CSourceFieldNamePanel::OnTaxonomyBtnSelected(), CSourceFieldNamePanel::OnTextQualBtnSelected(), CFieldChoicePanel::SetFieldName(), CGeneFieldPanel::SetFieldName(), CMiscFieldPanel::SetFieldName(), CProteinFieldPanel::SetFieldName(), CFieldHandlerNamePanel::SetFieldName(), CRNAFieldNamePanel::SetFieldName(), CDualRNAFieldNamePanel::SetFieldName(), CSourceFieldNamePanel::SetFieldName(), CDualRNAFieldNamePanel::SetFieldName2(), CFieldConstraintPanel::UpdateEditor(), and CStructCommentFieldPanel::x_UpdatePanel().