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

Search Toolkit Book for CRNAFieldNamePanel

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

+ Inheritance diagram for CRNAFieldNamePanel:
+ Collaboration diagram for CRNAFieldNamePanel:

Public Types

enum  { ID_CRNAFIELDNAMEPANEL = 6060 , ID_CRNAFIELDNAME_RNA_TYPE , ID_CRNAFIELDNAME_NCRNA_CLASS , ID_CRNAFIELDNAME_RNA_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

 CRNAFieldNamePanel ()
 Constructors. More...
 
 CRNAFieldNamePanel (wxWindow *parent, CRNAFieldNamePanel *sibling=NULL, wxWindowID id=ID_CRNAFIELDNAMEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CRNAFIELDNAMEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CRNAFieldNamePanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void OnRnaTypeSelected (wxCommandEvent &event)
 wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_RNA_TYPE More...
 
void OnRnaFieldSelected (wxCommandEvent &event)
 
void OnncRNAClassSelected (wxCommandEvent &event)
 
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)
 
string GetRnaType ()
 
bool SetRnaType (const string &rna_type)
 
string GetRnaTypeOnly (void)
 
string GetNcrnaType (void)
 
string GetRnaField (void)
 
virtual void ClearValues (void)
 
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< stringGetChoices (bool &allow_other)
 
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 vector< stringGetRNATypes ()
 
static vector< stringGetRNAFields ()
 
static string s_GetMacroFieldName (const string &rna_type, const string &qual_field, const string &target, const string &selected_field=kEmptyStr)
 
- 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

wxStaticText * m_RnaTypeLabel
 
wxChoice * m_RNAType
 
wxComboBox * m_NcrnaClass
 
wxListBox * m_RnaField
 

Private Member Functions

void x_EnableNcRnaClass ()
 

Private Attributes

CRNAFieldNamePanelm_Sibling
 

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

CRNAFieldNamePanel class declaration

Definition at line 71 of file rna_field_name_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_CRNAFIELDNAMEPANEL 
ID_CRNAFIELDNAME_RNA_TYPE 
ID_CRNAFIELDNAME_NCRNA_CLASS 
ID_CRNAFIELDNAME_RNA_FIELD 

Definition at line 124 of file rna_field_name_panel.hpp.

Constructor & Destructor Documentation

◆ CRNAFieldNamePanel() [1/2]

CRNAFieldNamePanel::CRNAFieldNamePanel ( )

Constructors.

CRNAFieldNamePanel type definition

CRNAFieldNamePanel event table definition

CRNAFieldNamePanel constructors

Definition at line 68 of file rna_field_name_panel.cpp.

References Init().

◆ CRNAFieldNamePanel() [2/2]

CRNAFieldNamePanel::CRNAFieldNamePanel ( wxWindow *  parent,
CRNAFieldNamePanel sibling = NULL,
wxWindowID  id = ID_CRNAFIELDNAMEPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ ~CRNAFieldNamePanel()

CRNAFieldNamePanel::~CRNAFieldNamePanel ( )

Destructor.

CRNAFieldNamePanel destructor

Definition at line 105 of file rna_field_name_panel.cpp.

Member Function Documentation

◆ ClearValues()

void CRNAFieldNamePanel::ClearValues ( void  )
virtual

Reimplemented from CFieldNamePanel.

Definition at line 185 of file rna_field_name_panel.cpp.

References _, m_NcrnaClass, m_RnaField, and m_RNAType.

◆ Create()

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

Creation.

CRNAFieldNamePanel creator

Definition at line 85 of file rna_field_name_panel.cpp.

References CreateControls(), and ncbi::grid::netcache::search::fields::size.

Referenced by CRNAFieldNamePanel().

◆ CreateControls()

void CRNAFieldNamePanel::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CRNAFieldNamePanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 208 of file rna_field_name_panel.cpp.

◆ GetFieldName()

string CRNAFieldNamePanel::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 280 of file rna_field_name_panel.cpp.

References GetRnaType(), NStr::IsBlank(), m_RnaField, and val.

Referenced by GetRnaField().

◆ GetIconResource()

wxIcon CRNAFieldNamePanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 221 of file rna_field_name_panel.cpp.

◆ GetMacroFieldName()

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

Reimplemented from CFieldNamePanel.

Definition at line 433 of file rna_field_name_panel.cpp.

References m_RnaField, m_RNAType, s_GetMacroFieldName(), ToStdString(), and val.

◆ GetNcrnaType()

string CRNAFieldNamePanel::GetNcrnaType ( void  )

Definition at line 270 of file rna_field_name_panel.cpp.

References m_NcrnaClass.

Referenced by GetSubtype().

◆ GetRnaField()

string CRNAFieldNamePanel::GetRnaField ( void  )

Definition at line 275 of file rna_field_name_panel.cpp.

References GetFieldName().

◆ GetRNAFields()

vector< string > CRNAFieldNamePanel::GetRNAFields ( )
static

◆ GetRnaType()

string CRNAFieldNamePanel::GetRnaType ( )

◆ GetRnaTypeOnly()

string CRNAFieldNamePanel::GetRnaTypeOnly ( void  )

◆ GetRNATypes()

vector< string > CRNAFieldNamePanel::GetRNATypes ( )
static

◆ Init()

void CRNAFieldNamePanel::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 116 of file rna_field_name_panel.cpp.

References m_NcrnaClass, m_RnaField, m_RNAType, m_RnaTypeLabel, and NULL.

Referenced by CRNAFieldNamePanel().

◆ OnncRNAClassSelected()

void CRNAFieldNamePanel::OnncRNAClassSelected ( wxCommandEvent &  event)

Definition at line 394 of file rna_field_name_panel.cpp.

References CFieldNamePanel::x_UpdateParent().

◆ OnRnaFieldSelected()

void CRNAFieldNamePanel::OnRnaFieldSelected ( wxCommandEvent &  event)

Definition at line 388 of file rna_field_name_panel.cpp.

References CFieldNamePanel::x_UpdateParent().

◆ OnRnaTypeSelected()

void CRNAFieldNamePanel::OnRnaTypeSelected ( wxCommandEvent &  event)

wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_RNA_TYPE

wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_RNA_TYPE

Definition at line 381 of file rna_field_name_panel.cpp.

References x_EnableNcRnaClass(), and CFieldNamePanel::x_UpdateParent().

◆ s_GetMacroFieldName()

string CRNAFieldNamePanel::s_GetMacroFieldName ( const string rna_type,
const string qual_field,
const string target,
const string selected_field = kEmptyStr 
)
static

◆ SetFieldName()

bool CRNAFieldNamePanel::SetFieldName ( const string field)
virtual

◆ SetRnaType()

bool CRNAFieldNamePanel::SetRnaType ( const string rna_type)

◆ ShowToolTips()

bool CRNAFieldNamePanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 199 of file rna_field_name_panel.cpp.

◆ x_EnableNcRnaClass()

void CRNAFieldNamePanel::x_EnableNcRnaClass ( )
private

Member Data Documentation

◆ m_NcrnaClass

wxComboBox* CRNAFieldNamePanel::m_NcrnaClass

◆ m_RnaField

wxListBox* CRNAFieldNamePanel::m_RnaField

◆ m_RNAType

wxChoice* CRNAFieldNamePanel::m_RNAType

◆ m_RnaTypeLabel

wxStaticText* CRNAFieldNamePanel::m_RnaTypeLabel

Definition at line 130 of file rna_field_name_panel.hpp.

Referenced by CreateControls(), and Init().

◆ m_Sibling

CRNAFieldNamePanel* CRNAFieldNamePanel::m_Sibling
private

Definition at line 151 of file rna_field_name_panel.hpp.

Referenced by CreateControls(), GetRnaType(), GetRnaTypeOnly(), and SetRnaType().


The documentation for this class was generated from the following files:
Modified on Fri Dec 01 04:51:46 2023 by modify_doxy.py rev. 669887