NCBI C++ ToolKit
|
Search Toolkit Book for CCDSGeneProtFieldNamePanel
#include <gui/widgets/edit/cds_gene_prot_field_name_panel.hpp>
Public Types | |
enum | { ID_CCDSGENEPROTFIELDNAMEPANEL = 6080 , ID_CCDSGENEPROTFIELDNAME_FIELD } |
![]() | |
enum | EFieldType { eFieldType_Unknown = 0 , eFieldType_Source , eFieldType_Feature , eFieldType_CDSGeneProt , eFieldType_RNA , eFieldType_Gene , eFieldType_Protein , eFieldType_MolInfo , eFieldType_Pub , eFieldType_StructuredComment , eFieldType_BankITComment , eFieldType_Comment , eFieldType_DBLink , eFieldType_Dbxref , eFieldType_Misc , eFieldType_DefLine , eFieldType_TaxnameAfterBinomial , eFieldType_FlatFile , eFieldType_FileId , eFieldType_GeneralId , eFieldType_LocalId , eFieldType_SeqId , eFieldType_Taxname } |
Public Member Functions | |
CCDSGeneProtFieldNamePanel () | |
Constructors. More... | |
CCDSGeneProtFieldNamePanel (wxWindow *parent, wxWindowID id=ID_CCDSGENEPROTFIELDNAMEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CCDSGENEPROTFIELDNAMEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CCDSGeneProtFieldNamePanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnFieldSelected (wxCommandEvent &event) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_FIELD More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
virtual string | GetFieldName (const bool subfield=false) |
Returns the name of the field as selected in the panel. More... | |
virtual bool | SetFieldName (const string &field) |
virtual void | ClearValues (void) |
virtual vector< string > | GetChoices (bool &allow_other) |
virtual string | GetMacroFieldName (const string &target, const string &selected_field=kEmptyStr) |
![]() | |
CFieldNamePanel () | |
Constructors. More... | |
~CFieldNamePanel () | |
Destructor. More... | |
virtual vector< string > | GetMacroValues () |
virtual void | SetShowLegalOnly (bool show) |
virtual string | GetMacroFieldLabel (const string &target, const string &selected_field=kEmptyStr) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
static string | s_GetMacroFieldName (const string &field_name, const string &target, const string &selected_field=kEmptyStr) |
static vector< string > | GetStrings () |
![]() | |
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) |
Public Attributes | |
wxListBox * | m_Field |
Additional Inherited Members | |
![]() | |
void | x_UpdateParent (void) |
bool | x_IsParentAECRDlg (void) |
void | x_UpdateAECRDlgLayout (void) |
bool | x_ShouldDecreaseStrConstrPanel (void) |
CCDSGeneProtFieldNamePanel class declaration
Definition at line 69 of file cds_gene_prot_field_name_panel.hpp.
anonymous enum |
Enumerator | |
---|---|
ID_CCDSGENEPROTFIELDNAMEPANEL | |
ID_CCDSGENEPROTFIELDNAME_FIELD |
Definition at line 130 of file cds_gene_prot_field_name_panel.hpp.
CCDSGeneProtFieldNamePanel::CCDSGeneProtFieldNamePanel | ( | ) |
Constructors.
CCDSGeneProtFieldNamePanel type definition
CCDSGeneProtFieldNamePanel event table definition
CCDSGeneProtFieldNamePanel constructors
Definition at line 67 of file cds_gene_prot_field_name_panel.cpp.
References Init().
CCDSGeneProtFieldNamePanel::CCDSGeneProtFieldNamePanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CCDSGENEPROTFIELDNAMEPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 72 of file cds_gene_prot_field_name_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CCDSGeneProtFieldNamePanel::~CCDSGeneProtFieldNamePanel | ( | ) |
Destructor.
CCDSGeneProtFieldNamePanel destructor
Definition at line 103 of file cds_gene_prot_field_name_panel.cpp.
|
virtual |
Reimplemented from CFieldNamePanel.
Definition at line 145 of file cds_gene_prot_field_name_panel.cpp.
References m_Field.
bool CCDSGeneProtFieldNamePanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CCDSGENEPROTFIELDNAMEPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CCDSGeneProtFieldNamePanel creator
Definition at line 83 of file cds_gene_prot_field_name_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CCDSGeneProtFieldNamePanel().
void CCDSGeneProtFieldNamePanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CCDSGeneProtFieldNamePanel
Definition at line 126 of file cds_gene_prot_field_name_panel.cpp.
References GetStrings(), ID_CCDSGENEPROTFIELDNAME_FIELD, ITERATE, m_Field, and ToWxString().
Referenced by Create().
wxBitmap CCDSGeneProtFieldNamePanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 164 of file cds_gene_prot_field_name_panel.cpp.
Reimplemented from CFieldNamePanel.
Definition at line 257 of file cds_gene_prot_field_name_panel.cpp.
References GetFieldName().
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.
Implements CFieldNamePanel.
Definition at line 198 of file cds_gene_prot_field_name_panel.cpp.
Referenced by GetChoices(), GetMacroFieldName(), and GetSubtype().
wxIcon CCDSGeneProtFieldNamePanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Get icon resources
Definition at line 177 of file cds_gene_prot_field_name_panel.cpp.
|
virtual |
Reimplemented from CFieldNamePanel.
Definition at line 274 of file cds_gene_prot_field_name_panel.cpp.
References GetFieldName(), and s_GetMacroFieldName().
|
static |
Definition at line 225 of file cds_gene_prot_field_name_panel.cpp.
Referenced by CFieldChoicePanel::AutoMatchCGP(), CMacroEditorContext::CMacroEditorContext(), and CreateControls().
void CCDSGeneProtFieldNamePanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 114 of file cds_gene_prot_field_name_panel.cpp.
Referenced by CCDSGeneProtFieldNamePanel().
void CCDSGeneProtFieldNamePanel::OnFieldSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_FIELD
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CCDSGENEPROTFIELDNAME_FIELD
Definition at line 191 of file cds_gene_prot_field_name_panel.cpp.
References CFieldNamePanel::x_UpdateParent().
|
static |
Definition at line 279 of file cds_gene_prot_field_name_panel.cpp.
References NStr::EqualNocase(), CFieldNamePanel::IsFeature(), NPOS, and str().
Referenced by GetMacroFieldName(), and CTableReaderMacro::x_GetMatchFieldConstraint().
Implements CFieldNamePanel.
Definition at line 210 of file cds_gene_prot_field_name_panel.cpp.
References i, m_Field, QualifierNamesAreEquivalent(), ncbi::grid::netcache::search::fields::size, and ToStdString().
Referenced by CConstraintPanel::CreateControls(), and CQualChoicePanel::CreateControls().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 155 of file cds_gene_prot_field_name_panel.cpp.
wxListBox* CCDSGeneProtFieldNamePanel::m_Field |
Definition at line 119 of file cds_gene_prot_field_name_panel.hpp.
Referenced by ClearValues(), CreateControls(), GetFieldName(), Init(), and SetFieldName().