NCBI C++ ToolKit
|
Search Toolkit Book for CEditFeatLocPanel
#include <gui/packages/pkg_sequence_edit/edit_feat_loc_panel.hpp>
Public Types | |
enum | { ID_CEDITFEATLOCPANEL = 6430 , ID_EFL_PARTIAL5 = 6431 , ID_EFL_EXTEND5 = 6432 , ID_EFL_PARTIAL3 = 6433 , ID_EFL_EXTEND3 = 6434 , ID_EFL_JOM = 6435 , ID_EFL_RETRANSLATE = 6436 , ID_EFL_ADJUST_GENE = 6437 } |
Control identifiers. More... | |
Public Member Functions | |
CEditFeatLocPanel () | |
Constructors. More... | |
CEditFeatLocPanel (wxWindow *parent, wxWindowID id=ID_CEDITFEATLOCPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CEDITFEATLOCPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CEditFeatLocPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnEflPartial5Selected (wxCommandEvent &event) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_EFL_PARTIAL5 More... | |
void | OnEflPartial3Selected (wxCommandEvent &event) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_EFL_PARTIAL3 More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | SetPolicy (CRef< objects::edit::CLocationEditPolicy > policy) |
CRef< objects::edit::CLocationEditPolicy > | GetPolicy () |
void | SetRetranslate (bool val) |
bool | GetRetranslate () |
void | SetAdjustGene (bool val) |
bool | GetAdjustGene () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
wxChoice * | m_Adjust5Partial |
wxCheckBox * | m_Extend5Btn |
wxChoice * | m_Adjust3Partial |
wxCheckBox * | m_Extend3Btn |
wxChoice * | m_JoinOrderMerge |
wxCheckBox * | m_RetranslateBtn |
wxCheckBox * | m_AdjustGeneBtn |
Private Member Functions | |
objects::edit::CLocationEditPolicy::EPartialPolicy | x_GetPartial5Policy () |
objects::edit::CLocationEditPolicy::EPartialPolicy | x_GetPartial3Policy () |
objects::edit::CLocationEditPolicy::EMergePolicy | x_GetMergePolicy () |
void | x_SetPartial5Policy (objects::edit::CLocationEditPolicy::EPartialPolicy partial5) |
void | x_SetPartial3Policy (objects::edit::CLocationEditPolicy::EPartialPolicy partial3) |
void | x_SetMergePolicy (objects::edit::CLocationEditPolicy::EMergePolicy merge) |
void | x_EnableExtend5Btn () |
void | x_EnableExtend3Btn () |
Private Attributes | |
bool | m_Retranslate |
bool | m_AdjustGene |
CEditFeatLocPanel class declaration
Definition at line 72 of file edit_feat_loc_panel.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CEDITFEATLOCPANEL | |
ID_EFL_PARTIAL5 | |
ID_EFL_EXTEND5 | |
ID_EFL_PARTIAL3 | |
ID_EFL_EXTEND3 | |
ID_EFL_JOM | |
ID_EFL_RETRANSLATE | |
ID_EFL_ADJUST_GENE |
Definition at line 125 of file edit_feat_loc_panel.hpp.
CEditFeatLocPanel::CEditFeatLocPanel | ( | ) |
Constructors.
CEditFeatLocPanel type definition
CEditFeatLocPanel event table definition
CEditFeatLocPanel constructors
Definition at line 70 of file edit_feat_loc_panel.cpp.
References Init().
CEditFeatLocPanel::CEditFeatLocPanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CEDITFEATLOCPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 75 of file edit_feat_loc_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CEditFeatLocPanel::~CEditFeatLocPanel | ( | ) |
bool CEditFeatLocPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CEDITFEATLOCPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CEditFeatLocPanel creator
Definition at line 86 of file edit_feat_loc_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CEditFeatLocPanel().
void CEditFeatLocPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CEditFeatLocPanel
Definition at line 137 of file edit_feat_loc_panel.cpp.
References _, ID_EFL_ADJUST_GENE, ID_EFL_EXTEND3, ID_EFL_EXTEND5, ID_EFL_JOM, ID_EFL_PARTIAL3, ID_EFL_PARTIAL5, ID_EFL_RETRANSLATE, m_Adjust3Partial, m_Adjust5Partial, m_AdjustGeneBtn, m_Extend3Btn, m_Extend5Btn, m_JoinOrderMerge, and m_RetranslateBtn.
Referenced by Create().
bool CEditFeatLocPanel::GetAdjustGene | ( | ) |
Definition at line 514 of file edit_feat_loc_panel.cpp.
References m_AdjustGeneBtn.
Referenced by CBlkEdtFeatLocationPanel::AddCommand().
wxBitmap CEditFeatLocPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 238 of file edit_feat_loc_panel.cpp.
wxIcon CEditFeatLocPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Get icon resources
Definition at line 251 of file edit_feat_loc_panel.cpp.
CRef< edit::CLocationEditPolicy > CEditFeatLocPanel::GetPolicy | ( | ) |
Definition at line 481 of file edit_feat_loc_panel.cpp.
References m_Extend3Btn, m_Extend5Btn, x_GetMergePolicy(), x_GetPartial3Policy(), and x_GetPartial5Policy().
Referenced by CBlkEdtFeatLocationPanel::AddCommand().
bool CEditFeatLocPanel::GetRetranslate | ( | ) |
Definition at line 501 of file edit_feat_loc_panel.cpp.
References m_RetranslateBtn.
Referenced by CBlkEdtFeatLocationPanel::AddCommand().
void CEditFeatLocPanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 117 of file edit_feat_loc_panel.cpp.
References m_Adjust3Partial, m_Adjust5Partial, m_AdjustGene, m_AdjustGeneBtn, m_Extend3Btn, m_Extend5Btn, m_JoinOrderMerge, m_Retranslate, m_RetranslateBtn, and NULL.
Referenced by CEditFeatLocPanel().
void CEditFeatLocPanel::OnEflPartial3Selected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_EFL_PARTIAL3
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_PARTIAL3
Definition at line 534 of file edit_feat_loc_panel.cpp.
References m_Extend3Btn, and x_GetPartial3Policy().
void CEditFeatLocPanel::OnEflPartial5Selected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_EFL_PARTIAL5
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_PARTIAL5
Definition at line 524 of file edit_feat_loc_panel.cpp.
References x_EnableExtend5Btn().
void CEditFeatLocPanel::SetAdjustGene | ( | bool | val | ) |
Definition at line 507 of file edit_feat_loc_panel.cpp.
References m_AdjustGene, m_AdjustGeneBtn, and val.
void CEditFeatLocPanel::SetPolicy | ( | CRef< objects::edit::CLocationEditPolicy > | policy | ) |
Definition at line 461 of file edit_feat_loc_panel.cpp.
References m_Extend3Btn, m_Extend5Btn, x_EnableExtend3Btn(), x_EnableExtend5Btn(), x_SetMergePolicy(), x_SetPartial3Policy(), and x_SetPartial5Policy().
void CEditFeatLocPanel::SetRetranslate | ( | bool | val | ) |
Definition at line 494 of file edit_feat_loc_panel.cpp.
References m_Retranslate, m_RetranslateBtn, and val.
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 229 of file edit_feat_loc_panel.cpp.
|
private |
Definition at line 441 of file edit_feat_loc_panel.cpp.
References m_Extend3Btn, and x_GetPartial3Policy().
Referenced by SetPolicy().
|
private |
Definition at line 421 of file edit_feat_loc_panel.cpp.
References m_Extend5Btn, and x_GetPartial5Policy().
Referenced by OnEflPartial5Selected(), and SetPolicy().
|
private |
Definition at line 380 of file edit_feat_loc_panel.cpp.
References m_JoinOrderMerge, and val.
Referenced by GetPolicy().
|
private |
Definition at line 323 of file edit_feat_loc_panel.cpp.
References m_Adjust3Partial, and val.
Referenced by GetPolicy(), OnEflPartial3Selected(), and x_EnableExtend3Btn().
|
private |
Definition at line 261 of file edit_feat_loc_panel.cpp.
References m_Adjust5Partial, and val.
Referenced by GetPolicy(), and x_EnableExtend5Btn().
|
private |
Definition at line 402 of file edit_feat_loc_panel.cpp.
References m_JoinOrderMerge.
Referenced by SetPolicy().
|
private |
Definition at line 351 of file edit_feat_loc_panel.cpp.
References m_Adjust3Partial.
Referenced by SetPolicy().
|
private |
Definition at line 292 of file edit_feat_loc_panel.cpp.
References m_Adjust5Partial.
Referenced by SetPolicy().
wxChoice* CEditFeatLocPanel::m_Adjust3Partial |
Definition at line 119 of file edit_feat_loc_panel.hpp.
Referenced by CreateControls(), Init(), x_GetPartial3Policy(), and x_SetPartial3Policy().
wxChoice* CEditFeatLocPanel::m_Adjust5Partial |
Definition at line 117 of file edit_feat_loc_panel.hpp.
Referenced by CreateControls(), Init(), x_GetPartial5Policy(), and x_SetPartial5Policy().
|
private |
Definition at line 146 of file edit_feat_loc_panel.hpp.
Referenced by Init(), and SetAdjustGene().
wxCheckBox* CEditFeatLocPanel::m_AdjustGeneBtn |
Definition at line 123 of file edit_feat_loc_panel.hpp.
Referenced by CreateControls(), GetAdjustGene(), Init(), and SetAdjustGene().
wxCheckBox* CEditFeatLocPanel::m_Extend3Btn |
Definition at line 120 of file edit_feat_loc_panel.hpp.
Referenced by CreateControls(), GetPolicy(), Init(), OnEflPartial3Selected(), SetPolicy(), and x_EnableExtend3Btn().
wxCheckBox* CEditFeatLocPanel::m_Extend5Btn |
Definition at line 118 of file edit_feat_loc_panel.hpp.
Referenced by CreateControls(), GetPolicy(), Init(), SetPolicy(), and x_EnableExtend5Btn().
wxChoice* CEditFeatLocPanel::m_JoinOrderMerge |
Definition at line 121 of file edit_feat_loc_panel.hpp.
Referenced by CreateControls(), Init(), x_GetMergePolicy(), and x_SetMergePolicy().
|
private |
Definition at line 145 of file edit_feat_loc_panel.hpp.
Referenced by Init(), and SetRetranslate().
wxCheckBox* CEditFeatLocPanel::m_RetranslateBtn |
Definition at line 122 of file edit_feat_loc_panel.hpp.
Referenced by CreateControls(), GetRetranslate(), Init(), and SetRetranslate().