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

Search Toolkit Book for CFeatureTypePanel

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

+ Inheritance diagram for CFeatureTypePanel:
+ Collaboration diagram for CFeatureTypePanel:

Public Member Functions

 CFeatureTypePanel ()
 Constructors. More...
 
 CFeatureTypePanel (wxWindow *parent, wxWindowID id=10179, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxSIMPLE_BORDER|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=10179, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxSIMPLE_BORDER|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CFeatureTypePanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void OnListbox1Selected (wxCommandEvent &event)
 wxEVT_COMMAND_LISTBOX_SELECTED event handler for ID_LISTBOX1 More...
 
void ListAnyOption (void)
 
void ListAllOption (void)
 
void ListPresentFeaturesFirst (const objects::CSeq_entry_Handle &entry, vector< const objects::CFeatListItem * > *featlist=nullptr)
 
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)
 
void SetListAllFeats (bool flag)
 
virtual void SetShowLegalOnly (bool show)
 
- Public Member Functions inherited from CFieldNamePanel
 CFieldNamePanel ()
 Constructors. More...
 
 ~CFieldNamePanel ()
 Destructor. More...
 
virtual vector< stringGetChoices (bool &allow_other)
 
virtual vector< stringGetMacroValues ()
 
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 bool ShowToolTips ()
 Should we show tooltips? More...
 
static bool s_IsRarelyUsedOrDiscouragedFeatureType (int subtype)
 
- 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_List
 

Private Attributes

vector< stringm_Featlist
 
bool m_list_all_feats
 
bool m_show_legal_only
 

Additional Inherited Members

- 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
}
 
- Protected Member Functions inherited from CFieldNamePanel
void x_UpdateParent (void)
 
bool x_IsParentAECRDlg (void)
 
void x_UpdateAECRDlgLayout (void)
 
bool x_ShouldDecreaseStrConstrPanel (void)
 

Detailed Description

CFeatureTypePanel class declaration

Definition at line 65 of file feature_type_panel.hpp.

Constructor & Destructor Documentation

◆ CFeatureTypePanel() [1/2]

CFeatureTypePanel::CFeatureTypePanel ( )

Constructors.

CFeatureTypePanel type definition

CFeatureTypePanel constructors

Definition at line 67 of file feature_type_panel.cpp.

References Init().

◆ CFeatureTypePanel() [2/2]

CFeatureTypePanel::CFeatureTypePanel ( wxWindow *  parent,
wxWindowID  id = 10179,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxSIMPLE_BORDER|wxTAB_TRAVERSAL 
)

◆ ~CFeatureTypePanel()

CFeatureTypePanel::~CFeatureTypePanel ( )

Destructor.

CFeatureTypePanel destructor

Definition at line 103 of file feature_type_panel.cpp.

Member Function Documentation

◆ ClearValues()

void CFeatureTypePanel::ClearValues ( void  )
virtual

Reimplemented from CFieldNamePanel.

Definition at line 156 of file feature_type_panel.cpp.

References m_List.

Referenced by CFeatureFieldNamePanel::ClearValues().

◆ Create()

bool CFeatureTypePanel::Create ( wxWindow *  parent,
wxWindowID  id = 10179,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxSIMPLE_BORDER|wxTAB_TRAVERSAL 
)

Creation.

CFeatureTypePanel creator

Definition at line 83 of file feature_type_panel.cpp.

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

Referenced by CFeatureTypePanel().

◆ CreateControls()

void CFeatureTypePanel::CreateControls ( )

Creates the controls and sizers.

Control creation for CFeatureTypePanel

Definition at line 128 of file feature_type_panel.cpp.

References ID_LISTBOX1, and m_List.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CFeatureTypePanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 218 of file feature_type_panel.cpp.

◆ GetFieldName()

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

◆ GetIconResource()

wxIcon CFeatureTypePanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 231 of file feature_type_panel.cpp.

◆ Init()

void CFeatureTypePanel::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 114 of file feature_type_panel.cpp.

References m_List, m_list_all_feats, m_show_legal_only, and NULL.

Referenced by CFeatureTypePanel().

◆ ListAllOption()

void CFeatureTypePanel::ListAllOption ( void  )

Definition at line 151 of file feature_type_panel.cpp.

References m_List, and ToWxString().

◆ ListAnyOption()

void CFeatureTypePanel::ListAnyOption ( void  )

◆ ListPresentFeaturesFirst()

void CFeatureTypePanel::ListPresentFeaturesFirst ( const objects::CSeq_entry_Handle &  entry,
vector< const objects::CFeatListItem * > *  featlist = nullptr 
)

Definition at line 163 of file feature_type_panel.cpp.

References compile_time_bits::const_bitset< _Bits, T >::empty(), set< Key, Compare >::end(), set< Key, Compare >::find(), CFeatListItem::GetDescription(), CSeqFeatData::GetLegalQualifiers(), GetSortedFeatList(), CFeatListItem::GetSubtype(), CFeatListItem::GetType(), i, set< Key, Compare >::insert(), CSeqFeatData::IsRegulatory(), ITERATE, m_Featlist, m_List, m_list_all_feats, m_show_legal_only, s_IsRarelyUsedOrDiscouragedFeatureType(), CSeqFeatData::SubtypeNameToValue(), ToWxString(), and types.

Referenced by CBulkEditFeatDlg::CreateControls(), CConvertFeatDlg::CreateControls(), CExtendPartialFeatDlg::CreateControls(), CFuseFeaturesDlg::CreateControls(), CGeneFeatFromOtherFeatDlg::CreateControls(), CRmDupFeaturesDlg::CreateControls(), CResolveIntersectingFeats::CreateControls(), CSelectFeatures::CreateControls(), CMacroFeatsOnSeqPanel::CreateControls(), CUpdateSeqPanel::CreateControls(), CFeatureFieldNamePanel::ListPresentFeaturesFirst(), CBulkCmdDlg::UpdateChildrenFeaturePanels(), CCdsFromGeneMrnaExon::UpdateChildrenFeaturePanels(), CCdsToMatPeptide::UpdateChildrenFeaturePanels(), CFuseFeaturesDlg::UpdateChildrenFeaturePanels(), CmRNAFromGeneCdsExon::UpdateChildrenFeaturePanels(), CRmDupFeaturesDlg::UpdateChildrenFeaturePanels(), CResolveIntersectingFeats::UpdateChildrenFeaturePanels(), CFieldSubpanel::UpdateChildrenFeaturePanels(), CSelectFeatures::UpdateChildrenFeaturePanels(), CtRNAFromGene::UpdateChildrenFeaturePanels(), CBulkEditFeatDlg::UpdateChildrenFeaturePanels(), CParseTextDlg::UpdateChildrenFeaturePanels(), CAttribTableColumnIdPanel::UpdateChildrenFeaturePanels(), CAECRFrame::UpdateChildrenFeaturePanels(), and CUpdateSeqPanel::UpdatePanel().

◆ OnListbox1Selected()

void CFeatureTypePanel::OnListbox1Selected ( wxCommandEvent &  event)

wxEVT_COMMAND_LISTBOX_SELECTED event handler for ID_LISTBOX1

wxEVT_COMMAND_LISTBOX_SELECTED event handler for ID_LISTBOX1

Definition at line 245 of file feature_type_panel.cpp.

References CFieldNamePanel::x_UpdateParent().

◆ s_IsRarelyUsedOrDiscouragedFeatureType()

bool CFeatureTypePanel::s_IsRarelyUsedOrDiscouragedFeatureType ( int  subtype)
static

◆ SetFieldName()

bool CFeatureTypePanel::SetFieldName ( const string field)
virtual

◆ SetListAllFeats()

void CFeatureTypePanel::SetListAllFeats ( bool  flag)
inline

Definition at line 119 of file feature_type_panel.hpp.

References m_list_all_feats.

Referenced by CConvertFeatDlg::CreateControls().

◆ SetShowLegalOnly()

void CFeatureTypePanel::SetShowLegalOnly ( bool  show)
virtual

Reimplemented from CFieldNamePanel.

Definition at line 275 of file feature_type_panel.cpp.

References m_show_legal_only.

Referenced by CFeatureFieldNamePanel::SetShowLegalOnly().

◆ ShowToolTips()

bool CFeatureTypePanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 209 of file feature_type_panel.cpp.

Member Data Documentation

◆ m_Featlist

vector<string> CFeatureTypePanel::m_Featlist
private

Definition at line 123 of file feature_type_panel.hpp.

Referenced by ListPresentFeaturesFirst().

◆ m_List

wxListBox* CFeatureTypePanel::m_List

◆ m_list_all_feats

bool CFeatureTypePanel::m_list_all_feats
private

Definition at line 124 of file feature_type_panel.hpp.

Referenced by Init(), ListPresentFeaturesFirst(), and SetListAllFeats().

◆ m_show_legal_only

bool CFeatureTypePanel::m_show_legal_only
private

Definition at line 125 of file feature_type_panel.hpp.

Referenced by Init(), ListPresentFeaturesFirst(), and SetShowLegalOnly().


The documentation for this class was generated from the following files:
Modified on Sat Apr 13 11:44:54 2024 by modify_doxy.py rev. 669887