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

Search Toolkit Book for CCDSGeneProtFieldNamePanel

#include <gui/widgets/edit/cds_gene_prot_field_name_panel.hpp>

+ Inheritance diagram for CCDSGeneProtFieldNamePanel:
+ Collaboration diagram for CCDSGeneProtFieldNamePanel:

Public Types

enum  { ID_CCDSGENEPROTFIELDNAMEPANEL = 6080 , ID_CCDSGENEPROTFIELDNAME_FIELD }
 
- Public Types inherited from CFieldNamePanel
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< stringGetChoices (bool &allow_other)
 
virtual string GetMacroFieldName (const string &target, const string &selected_field=kEmptyStr)
 
- Public Member Functions inherited from CFieldNamePanel
 CFieldNamePanel ()
 Constructors. More...
 
 ~CFieldNamePanel ()
 Destructor. More...
 
virtual vector< stringGetMacroValues ()
 
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< stringGetStrings ()
 
- Static Public Member Functions inherited from CFieldNamePanel
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

- Protected Member Functions inherited from CFieldNamePanel
void x_UpdateParent (void)
 
bool x_IsParentAECRDlg (void)
 
void x_UpdateAECRDlgLayout (void)
 
bool x_ShouldDecreaseStrConstrPanel (void)
 

Detailed Description

CCDSGeneProtFieldNamePanel class declaration

Definition at line 69 of file cds_gene_prot_field_name_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_CCDSGENEPROTFIELDNAMEPANEL 
ID_CCDSGENEPROTFIELDNAME_FIELD 

Definition at line 130 of file cds_gene_prot_field_name_panel.hpp.

Constructor & Destructor Documentation

◆ CCDSGeneProtFieldNamePanel() [1/2]

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() [2/2]

CCDSGeneProtFieldNamePanel::CCDSGeneProtFieldNamePanel ( wxWindow *  parent,
wxWindowID  id = ID_CCDSGENEPROTFIELDNAMEPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ ~CCDSGeneProtFieldNamePanel()

CCDSGeneProtFieldNamePanel::~CCDSGeneProtFieldNamePanel ( )

Destructor.

CCDSGeneProtFieldNamePanel destructor

Definition at line 103 of file cds_gene_prot_field_name_panel.cpp.

Member Function Documentation

◆ ClearValues()

void CCDSGeneProtFieldNamePanel::ClearValues ( void  )
virtual

Reimplemented from CFieldNamePanel.

Definition at line 145 of file cds_gene_prot_field_name_panel.cpp.

References m_Field.

◆ Create()

bool CCDSGeneProtFieldNamePanel::Create ( wxWindow *  parent,
wxWindowID  id = ID_CCDSGENEPROTFIELDNAMEPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ CreateControls()

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().

◆ GetBitmapResource()

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.

◆ GetChoices()

vector< string > CCDSGeneProtFieldNamePanel::GetChoices ( bool allow_other)
virtual

Reimplemented from CFieldNamePanel.

Definition at line 257 of file cds_gene_prot_field_name_panel.cpp.

References GetFieldName().

◆ GetFieldName()

string CCDSGeneProtFieldNamePanel::GetFieldName ( const bool  subfield = false)
virtual

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.

References m_Field, and val.

Referenced by GetChoices(), GetMacroFieldName(), and GetSubtype().

◆ GetIconResource()

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.

◆ GetMacroFieldName()

string CCDSGeneProtFieldNamePanel::GetMacroFieldName ( const string target,
const string selected_field = kEmptyStr 
)
virtual

Reimplemented from CFieldNamePanel.

Definition at line 274 of file cds_gene_prot_field_name_panel.cpp.

References GetFieldName(), and s_GetMacroFieldName().

◆ GetStrings()

vector< string > CCDSGeneProtFieldNamePanel::GetStrings ( )
static

◆ Init()

void CCDSGeneProtFieldNamePanel::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 114 of file cds_gene_prot_field_name_panel.cpp.

References m_Field, and NULL.

Referenced by CCDSGeneProtFieldNamePanel().

◆ OnFieldSelected()

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().

◆ s_GetMacroFieldName()

string CCDSGeneProtFieldNamePanel::s_GetMacroFieldName ( const string field_name,
const string target,
const string selected_field = kEmptyStr 
)
static

◆ SetFieldName()

bool CCDSGeneProtFieldNamePanel::SetFieldName ( const string field)
virtual

◆ ShowToolTips()

bool CCDSGeneProtFieldNamePanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 155 of file cds_gene_prot_field_name_panel.cpp.

Member Data Documentation

◆ m_Field

wxListBox* CCDSGeneProtFieldNamePanel::m_Field

The documentation for this class was generated from the following files:
Modified on Sat May 25 14:16:20 2024 by modify_doxy.py rev. 669887