NCBI C++ ToolKit
|
Search Toolkit Book for CAutodefFeatClausePanel
#include <gui/packages/pkg_sequence_edit/autodef_feat_clause_panel.hpp>
Public Types | |
enum | { ID_CAUTODEFFEATCLAUSEPANEL = 10205 , ID_AD_LISTCHOICE = 10200 , ID_TEXTCTRL5 = 10061 , ID_AD_PRODUCT_CLAUSE = 10201 , ID_AD_ALTSPLICE_ADD = 10202 , ID_AD_NCRNA_NOTE = 10203 , ID_AD_WINDOW9 = 10224 , ID_SUPPRESSFEATURETYPELIST = 10225 , ID_AD_MOBILE_ELEMENT = 10226 , ID_AD_GENE_CLUSTER = 10227 , ID_AD_LOCUS_TAG = 10228 , ID_AD_ALT_SPLICE_PHRASE = 10229 , ID_AD_MISC_FEAT_SUBFEAT = 10006 } |
Control identifiers. More... | |
Public Member Functions | |
CAutodefFeatClausePanel () | |
Constructors. More... | |
CAutodefFeatClausePanel (wxWindow *parent, wxWindowID id=ID_CAUTODEFFEATCLAUSEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CAUTODEFFEATCLAUSEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CAutodefFeatClausePanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnAdListchoiceSelected (wxCommandEvent &event) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_AD_LISTCHOICE More... | |
void | OnLeftDown (wxMouseEvent &event) |
wxEVT_LEFT_DOWN event handler for ID_SUPPRESSFEATURETYPELIST More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | SetParams (SAutodefParams *params) |
void | PopulateParams (SAutodefParams ¶ms) |
void | Clear () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
wxChoice * | m_FeatureListChoice |
wxTextCtrl * | m_CustomPhrase |
wxChoice * | m_ProductClauseChoice |
wxCheckBox * | m_AppendAltSplice |
wxCheckBox * | m_UseNcRNAComment |
CAutodefOptFeatPanel * | m_OptFeatPanel |
wxTextCtrl * | m_SuppressedFeatureTypeList |
wxCheckBox * | m_SuppressTransposon |
wxCheckBox * | m_SupressGeneCluster |
wxCheckBox * | m_SuppressLocusTags |
wxCheckBox * | m_SuppressAltSplice |
wxCheckBox * | m_SuppressMiscFeatSubFeat |
Private Member Functions | |
void | x_UpdateSuppressedFeatureTypeList () |
void | x_AllowFeatureOptions (bool val=true) |
Private Attributes | |
set< objects::CFeatListItem > | m_SuppressedFeatures |
CAutodefFeatClausePanel class declaration
Definition at line 77 of file autodef_feat_clause_panel.hpp.
anonymous enum |
Control identifiers.
Definition at line 135 of file autodef_feat_clause_panel.hpp.
CAutodefFeatClausePanel::CAutodefFeatClausePanel | ( | ) |
Constructors.
CAutodefFeatClausePanel type definition
CAutodefFeatClausePanel event table definition
CAutodefFeatClausePanel constructors
Definition at line 75 of file autodef_feat_clause_panel.cpp.
References Init().
CAutodefFeatClausePanel::CAutodefFeatClausePanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CAUTODEFFEATCLAUSEPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 80 of file autodef_feat_clause_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CAutodefFeatClausePanel::~CAutodefFeatClausePanel | ( | ) |
Destructor.
CAutodefFeatClausePanel destructor
Definition at line 111 of file autodef_feat_clause_panel.cpp.
void CAutodefFeatClausePanel::Clear | ( | void | ) |
Definition at line 292 of file autodef_feat_clause_panel.cpp.
References CAutodefOptFeatPanel::Clear(), set< Key, Compare >::clear(), m_AppendAltSplice, m_FeatureListChoice, m_OptFeatPanel, m_ProductClauseChoice, m_SuppressAltSplice, m_SuppressedFeatures, m_SuppressLocusTags, m_SuppressMiscFeatSubFeat, m_SuppressTransposon, m_SupressGeneCluster, m_UseNcRNAComment, and x_UpdateSuppressedFeatureTypeList().
Referenced by CAutodefDlg::Clear(), and SetParams().
bool CAutodefFeatClausePanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CAUTODEFFEATCLAUSEPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CAutodefFeatClausePanel creator
Definition at line 91 of file autodef_feat_clause_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CAutodefFeatClausePanel().
void CAutodefFeatClausePanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CAutodefFeatClausePanel
Definition at line 146 of file autodef_feat_clause_panel.cpp.
References _, ID_AD_ALT_SPLICE_PHRASE, ID_AD_ALTSPLICE_ADD, ID_AD_GENE_CLUSTER, ID_AD_LISTCHOICE, ID_AD_LOCUS_TAG, ID_AD_MISC_FEAT_SUBFEAT, ID_AD_MOBILE_ELEMENT, ID_AD_NCRNA_NOTE, ID_AD_PRODUCT_CLAUSE, ID_AD_WINDOW9, ID_SUPPRESSFEATURETYPELIST, ID_TEXTCTRL5, m_AppendAltSplice, m_CustomPhrase, m_FeatureListChoice, m_OptFeatPanel, m_ProductClauseChoice, m_SuppressAltSplice, m_SuppressedFeatureTypeList, m_SuppressLocusTags, m_SuppressMiscFeatSubFeat, m_SuppressTransposon, m_SupressGeneCluster, m_UseNcRNAComment, NULL, OnLeftDown(), and wxID_ANY.
Referenced by Create().
wxBitmap CAutodefFeatClausePanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 269 of file autodef_feat_clause_panel.cpp.
wxIcon CAutodefFeatClausePanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Get icon resources
Definition at line 282 of file autodef_feat_clause_panel.cpp.
void CAutodefFeatClausePanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 122 of file autodef_feat_clause_panel.cpp.
References set< Key, Compare >::clear(), m_AppendAltSplice, m_CustomPhrase, m_FeatureListChoice, m_OptFeatPanel, m_ProductClauseChoice, m_SuppressAltSplice, m_SuppressedFeatures, m_SuppressedFeatureTypeList, m_SuppressLocusTags, m_SuppressMiscFeatSubFeat, m_SuppressTransposon, m_SupressGeneCluster, m_UseNcRNAComment, and NULL.
Referenced by CAutodefFeatClausePanel().
void CAutodefFeatClausePanel::OnAdListchoiceSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_AD_LISTCHOICE
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_AD_LISTCHOICE
Definition at line 590 of file autodef_feat_clause_panel.cpp.
References m_CustomPhrase, m_FeatureListChoice, val, and x_AllowFeatureOptions().
void CAutodefFeatClausePanel::OnLeftDown | ( | wxMouseEvent & | event | ) |
wxEVT_LEFT_DOWN event handler for ID_SUPPRESSFEATURETYPELIST
wxEVT_LEFT_DOWN event handler for ID_SUPPRESSFEATURETYPELIST
Definition at line 559 of file autodef_feat_clause_panel.cpp.
References set< Key, Compare >::clear(), CFeatureCheckDialog::GetSelected(), m_SuppressedFeatures, CFeatureCheckDialog::SetSelected(), CFeatureCheckDialog::ShowModal(), and x_UpdateSuppressedFeatureTypeList().
Referenced by CreateControls().
void CAutodefFeatClausePanel::PopulateParams | ( | SAutodefParams & | params | ) |
Definition at line 436 of file autodef_feat_clause_panel.cpp.
References SAutodefParams::m_AltSpliceFlag, m_AppendAltSplice, SAutodefParams::m_CustomFeatureClause, m_CustomPhrase, m_FeatureListChoice, SAutodefParams::m_FeatureListType, SAutodefParams::m_GeneClusterOppStrand, SAutodefParams::m_NuclearCopyFlag, m_OptFeatPanel, m_ProductClauseChoice, SAutodefParams::m_ProductFlag, SAutodefParams::m_SpecifyNuclearProduct, m_SuppressAltSplice, m_SuppressedFeatures, SAutodefParams::m_SuppressedFeatures, SAutodefParams::m_SuppressFeatureAltSplice, m_SuppressLocusTags, SAutodefParams::m_SuppressLocusTags, m_SuppressMiscFeatSubFeat, SAutodefParams::m_SuppressMiscFeatSubfeatures, SAutodefParams::m_SuppressMobileElementSubfeatures, m_SuppressTransposon, m_SupressGeneCluster, m_UseNcRNAComment, SAutodefParams::m_UseNcRNAComment, CAutodefOptFeatPanel::PopulateParams(), and val.
Referenced by CAutodefDlg::PopulateParams().
void CAutodefFeatClausePanel::SetParams | ( | SAutodefParams * | params | ) |
Definition at line 338 of file autodef_feat_clause_panel.cpp.
References Clear(), NStr::IsBlank(), SAutodefParams::m_AltSpliceFlag, m_AppendAltSplice, SAutodefParams::m_CustomFeatureClause, m_CustomPhrase, m_FeatureListChoice, SAutodefParams::m_FeatureListType, SAutodefParams::m_GeneClusterOppStrand, SAutodefParams::m_NuclearCopyFlag, m_OptFeatPanel, m_ProductClauseChoice, SAutodefParams::m_ProductFlag, SAutodefParams::m_SpecifyNuclearProduct, m_SuppressAltSplice, m_SuppressedFeatures, SAutodefParams::m_SuppressedFeatures, SAutodefParams::m_SuppressFeatureAltSplice, m_SuppressLocusTags, SAutodefParams::m_SuppressLocusTags, m_SuppressMiscFeatSubFeat, SAutodefParams::m_SuppressMiscFeatSubfeatures, SAutodefParams::m_SuppressMobileElementSubfeatures, m_SuppressTransposon, m_SupressGeneCluster, m_UseNcRNAComment, SAutodefParams::m_UseNcRNAComment, CAutodefOptFeatPanel::SetParams(), and x_UpdateSuppressedFeatureTypeList().
Referenced by CAutodefDlg::SetParams().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 260 of file autodef_feat_clause_panel.cpp.
Definition at line 571 of file autodef_feat_clause_panel.cpp.
References m_AppendAltSplice, m_OptFeatPanel, m_ProductClauseChoice, m_SuppressAltSplice, m_SuppressedFeatureTypeList, m_SuppressLocusTags, m_SuppressMiscFeatSubFeat, m_SuppressTransposon, m_SupressGeneCluster, m_UseNcRNAComment, and val.
Referenced by OnAdListchoiceSelected().
|
private |
Definition at line 311 of file autodef_feat_clause_panel.cpp.
References set< Key, Compare >::empty(), NStr::IsBlank(), ITERATE, label, m_SuppressedFeatures, m_SuppressedFeatureTypeList, set< Key, Compare >::size(), and ToWxString().
Referenced by Clear(), OnLeftDown(), and SetParams().
wxCheckBox* CAutodefFeatClausePanel::m_AppendAltSplice |
Definition at line 125 of file autodef_feat_clause_panel.hpp.
Referenced by Clear(), CreateControls(), Init(), PopulateParams(), SetParams(), and x_AllowFeatureOptions().
wxTextCtrl* CAutodefFeatClausePanel::m_CustomPhrase |
Definition at line 123 of file autodef_feat_clause_panel.hpp.
Referenced by CreateControls(), Init(), OnAdListchoiceSelected(), PopulateParams(), and SetParams().
wxChoice* CAutodefFeatClausePanel::m_FeatureListChoice |
Definition at line 122 of file autodef_feat_clause_panel.hpp.
Referenced by Clear(), CreateControls(), Init(), OnAdListchoiceSelected(), PopulateParams(), and SetParams().
CAutodefOptFeatPanel* CAutodefFeatClausePanel::m_OptFeatPanel |
Definition at line 127 of file autodef_feat_clause_panel.hpp.
Referenced by Clear(), CreateControls(), Init(), PopulateParams(), SetParams(), and x_AllowFeatureOptions().
wxChoice* CAutodefFeatClausePanel::m_ProductClauseChoice |
Definition at line 124 of file autodef_feat_clause_panel.hpp.
Referenced by Clear(), CreateControls(), Init(), PopulateParams(), SetParams(), and x_AllowFeatureOptions().
wxCheckBox* CAutodefFeatClausePanel::m_SuppressAltSplice |
Definition at line 132 of file autodef_feat_clause_panel.hpp.
Referenced by Clear(), CreateControls(), Init(), PopulateParams(), SetParams(), and x_AllowFeatureOptions().
|
private |
Definition at line 156 of file autodef_feat_clause_panel.hpp.
Referenced by Clear(), Init(), OnLeftDown(), PopulateParams(), SetParams(), and x_UpdateSuppressedFeatureTypeList().
wxTextCtrl* CAutodefFeatClausePanel::m_SuppressedFeatureTypeList |
Definition at line 128 of file autodef_feat_clause_panel.hpp.
Referenced by CreateControls(), Init(), x_AllowFeatureOptions(), and x_UpdateSuppressedFeatureTypeList().
wxCheckBox* CAutodefFeatClausePanel::m_SuppressLocusTags |
Definition at line 131 of file autodef_feat_clause_panel.hpp.
Referenced by Clear(), CreateControls(), Init(), PopulateParams(), SetParams(), and x_AllowFeatureOptions().
wxCheckBox* CAutodefFeatClausePanel::m_SuppressMiscFeatSubFeat |
Definition at line 133 of file autodef_feat_clause_panel.hpp.
Referenced by Clear(), CreateControls(), Init(), PopulateParams(), SetParams(), and x_AllowFeatureOptions().
wxCheckBox* CAutodefFeatClausePanel::m_SuppressTransposon |
Definition at line 129 of file autodef_feat_clause_panel.hpp.
Referenced by Clear(), CreateControls(), Init(), PopulateParams(), SetParams(), and x_AllowFeatureOptions().
wxCheckBox* CAutodefFeatClausePanel::m_SupressGeneCluster |
Definition at line 130 of file autodef_feat_clause_panel.hpp.
Referenced by Clear(), CreateControls(), Init(), PopulateParams(), SetParams(), and x_AllowFeatureOptions().
wxCheckBox* CAutodefFeatClausePanel::m_UseNcRNAComment |
Definition at line 126 of file autodef_feat_clause_panel.hpp.
Referenced by Clear(), CreateControls(), Init(), PopulateParams(), SetParams(), and x_AllowFeatureOptions().