NCBI C++ ToolKit
|
Search Toolkit Book for CFeatureCreateDialog
#include <gui/widgets/seq/feature_create_dlg.hpp>
Public Types | |
enum | { ID_CFEATURECREATEDIALOG = 10015 , ID_CHOICE6 = 10016 , ID_TEXTCTRL2 = 10017 , ID_TEXTCTRL3 = 10019 , ID_GRID1 = 10018 } |
Control identifiers. More... | |
Public Member Functions | |
CFeatureCreateDialog () | |
Constructors. More... | |
CFeatureCreateDialog (wxWindow *parent, wxWindowID id=ID_CFEATURECREATEDIALOG, const wxString &caption=_("Feature Create Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(300, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CFEATURECREATEDIALOG, const wxString &caption=_("Feature Create Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(300, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
Creation. More... | |
~CFeatureCreateDialog () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
wxString | GetLbl () const |
void | SetLbl (wxString value) |
wxString | GetComments () const |
void | SetComments (wxString value) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | SetConstraints (vector< objects::CSeqFeatData::ESubtype > &options, objects::CSeqFeatData::ESubtype selected) |
void | SetIO (TConstScopedObjects &in, TConstScopedObjects &out) |
void | OnFeatureTypeChanged (wxCommandEvent &event) |
virtual bool | TransferDataToWindow () |
virtual bool | TransferDataFromWindow () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
wxString | m_Label |
wxString | m_Comments |
Protected Member Functions | |
void | x_InitFeatTypes () |
void | x_UpdateQualifiers () |
Protected Attributes | |
TConstScopedObjects * | m_pIn |
TConstScopedObjects * | m_pOut |
vector< objects::CSeqFeatData::ESubtype > | m_Options |
objects::CSeqFeatData::ESubtype | m_Selected |
wxChoice * | m_pFeatType |
wxGrid * | m_pQualifiers |
CFeatureCreateDialog class declaration
Definition at line 78 of file feature_create_dlg.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CFEATURECREATEDIALOG | |
ID_CHOICE6 | |
ID_TEXTCTRL2 | |
ID_TEXTCTRL3 | |
ID_GRID1 |
Definition at line 127 of file feature_create_dlg.hpp.
CFeatureCreateDialog::CFeatureCreateDialog | ( | ) |
Constructors.
CFeatureCreateDialog type definition
CFeatureCreateDialog event table definition
CFeatureCreateDialog constructors
Definition at line 84 of file feature_create_dlg.cpp.
References Init().
CFeatureCreateDialog::CFeatureCreateDialog | ( | wxWindow * | parent, |
wxWindowID | id = ID_CFEATURECREATEDIALOG , |
||
const wxString & | caption = _("Feature Create Dialog") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(300, 300) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 89 of file feature_create_dlg.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CFeatureCreateDialog::~CFeatureCreateDialog | ( | ) |
bool CFeatureCreateDialog::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CFEATURECREATEDIALOG , |
||
const wxString & | caption = _("Feature Create Dialog") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(300, 300) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Creation.
CFeatureCreateDialog creator
Definition at line 100 of file feature_create_dlg.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CFeatureCreateDialog().
void CFeatureCreateDialog::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CFeatureCreateDialog
Definition at line 147 of file feature_create_dlg.cpp.
References _, ID_CHOICE6, ID_GRID1, ID_TEXTCTRL2, ID_TEXTCTRL3, m_Comments, m_Label, m_pFeatType, m_pQualifiers, wxID_ANY, and wxT.
Referenced by Create().
wxBitmap CFeatureCreateDialog::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 237 of file feature_create_dlg.cpp.
|
inline |
Definition at line 109 of file feature_create_dlg.hpp.
References m_Comments.
Referenced by CDataMiningPanel::x_CreateFeature().
wxIcon CFeatureCreateDialog::GetIconResource | ( | const wxString & | name | ) |
|
inline |
Definition at line 106 of file feature_create_dlg.hpp.
References m_Label.
Referenced by CDataMiningPanel::x_CreateFeature().
void CFeatureCreateDialog::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 132 of file feature_create_dlg.cpp.
References m_pFeatType, m_pIn, m_pOut, m_pQualifiers, and NULL.
Referenced by CFeatureCreateDialog().
void CFeatureCreateDialog::OnFeatureTypeChanged | ( | wxCommandEvent & | event | ) |
Definition at line 259 of file feature_create_dlg.cpp.
References x_UpdateQualifiers().
|
inline |
Definition at line 110 of file feature_create_dlg.hpp.
References m_Comments, and value.
void CFeatureCreateDialog::SetConstraints | ( | vector< objects::CSeqFeatData::ESubtype > & | options, |
objects::CSeqFeatData::ESubtype | selected | ||
) |
Definition at line 320 of file feature_create_dlg.cpp.
References m_Options, and m_Selected.
Referenced by CDataMiningPanel::x_CreateFeature().
void CFeatureCreateDialog::SetIO | ( | TConstScopedObjects & | in, |
TConstScopedObjects & | out | ||
) |
Definition at line 314 of file feature_create_dlg.cpp.
References in(), m_pIn, m_pOut, and out().
Referenced by CDataMiningPanel::x_CreateFeature().
|
inline |
Definition at line 107 of file feature_create_dlg.hpp.
References m_Label, and value.
Referenced by CDataMiningPanel::x_CreateFeature().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 228 of file feature_create_dlg.cpp.
|
virtual |
Definition at line 334 of file feature_create_dlg.cpp.
References CSeq_feat::AddQualifier(), CSeq_feat_Base::eExp_ev_not_experimental, CCdregion_Base::eFrame_one, CSeqFeatData::eSubtype_cdregion, CSeqFeatData::eSubtype_exon, CSeqFeatData::eSubtype_gene, CSeqFeatData::eSubtype_imp, CSeqFeatData::eSubtype_mRNA, CSeqFeatData::eSubtype_region, CSeqFeatData::eSubtype_rRNA, CSeqFeatData::eSubtype_site, CSeqFeatData::eSubtype_tRNA, i, ITERATE, m_pFeatType, m_pIn, m_pOut, m_pQualifiers, CSeq_feat_Base::SetData(), CSeq_feat_Base::SetExp_ev(), CSeq_feat_Base::SetLocation(), and ToStdString().
|
virtual |
Definition at line 327 of file feature_create_dlg.cpp.
References x_InitFeatTypes(), and x_UpdateQualifiers().
|
protected |
Definition at line 266 of file feature_create_dlg.cpp.
References CFeatListItem::GetDescription(), CSeqFeatData::GetFeatList(), CFeatListItem::GetSubtype(), ITERATE, m_Options, m_pFeatType, m_Selected, and ToWxString().
Referenced by TransferDataToWindow().
|
protected |
Definition at line 290 of file feature_create_dlg.cpp.
References CSeqFeatData::GetLegalQualifiers(), CSeqFeatData::GetQualifierAsString(), m_pFeatType, m_pQualifiers, and ToWxString().
Referenced by OnFeatureTypeChanged(), and TransferDataToWindow().
wxString CFeatureCreateDialog::m_Comments |
Definition at line 125 of file feature_create_dlg.hpp.
Referenced by CreateControls(), GetComments(), and SetComments().
wxString CFeatureCreateDialog::m_Label |
Definition at line 124 of file feature_create_dlg.hpp.
Referenced by CreateControls(), GetLbl(), and SetLbl().
|
protected |
Definition at line 149 of file feature_create_dlg.hpp.
Referenced by SetConstraints(), and x_InitFeatTypes().
|
protected |
Definition at line 152 of file feature_create_dlg.hpp.
Referenced by CreateControls(), Init(), TransferDataFromWindow(), x_InitFeatTypes(), and x_UpdateQualifiers().
|
protected |
Definition at line 146 of file feature_create_dlg.hpp.
Referenced by Init(), SetIO(), and TransferDataFromWindow().
|
protected |
Definition at line 147 of file feature_create_dlg.hpp.
Referenced by Init(), SetIO(), and TransferDataFromWindow().
|
protected |
Definition at line 153 of file feature_create_dlg.hpp.
Referenced by CreateControls(), Init(), TransferDataFromWindow(), and x_UpdateQualifiers().
|
protected |
Definition at line 150 of file feature_create_dlg.hpp.
Referenced by SetConstraints(), and x_InitFeatTypes().