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

Search Toolkit Book for CEditFeatLocPanel

#include <gui/packages/pkg_sequence_edit/edit_feat_loc_panel.hpp>

+ Inheritance diagram for CEditFeatLocPanel:
+ Collaboration diagram for CEditFeatLocPanel:

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
 

Detailed Description

CEditFeatLocPanel class declaration

Definition at line 72 of file edit_feat_loc_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

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.

Constructor & Destructor Documentation

◆ CEditFeatLocPanel() [1/2]

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() [2/2]

CEditFeatLocPanel::CEditFeatLocPanel ( wxWindow *  parent,
wxWindowID  id = ID_CEDITFEATLOCPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ ~CEditFeatLocPanel()

CEditFeatLocPanel::~CEditFeatLocPanel ( )

Destructor.

CEditFeatLocPanel destructor

Definition at line 106 of file edit_feat_loc_panel.cpp.

Member Function Documentation

◆ Create()

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().

◆ CreateControls()

void CEditFeatLocPanel::CreateControls ( )

◆ GetAdjustGene()

bool CEditFeatLocPanel::GetAdjustGene ( )

Definition at line 514 of file edit_feat_loc_panel.cpp.

References m_AdjustGeneBtn.

Referenced by CBlkEdtFeatLocationPanel::AddCommand().

◆ GetBitmapResource()

wxBitmap CEditFeatLocPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 238 of file edit_feat_loc_panel.cpp.

◆ GetIconResource()

wxIcon CEditFeatLocPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 251 of file edit_feat_loc_panel.cpp.

◆ GetPolicy()

CRef< edit::CLocationEditPolicy > CEditFeatLocPanel::GetPolicy ( )

◆ GetRetranslate()

bool CEditFeatLocPanel::GetRetranslate ( )

Definition at line 501 of file edit_feat_loc_panel.cpp.

References m_RetranslateBtn.

Referenced by CBlkEdtFeatLocationPanel::AddCommand().

◆ Init()

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().

◆ OnEflPartial3Selected()

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().

◆ OnEflPartial5Selected()

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().

◆ SetAdjustGene()

void CEditFeatLocPanel::SetAdjustGene ( bool  val)

Definition at line 507 of file edit_feat_loc_panel.cpp.

References m_AdjustGene, m_AdjustGeneBtn, and val.

◆ SetPolicy()

void CEditFeatLocPanel::SetPolicy ( CRef< objects::edit::CLocationEditPolicy >  policy)

◆ SetRetranslate()

void CEditFeatLocPanel::SetRetranslate ( bool  val)

Definition at line 494 of file edit_feat_loc_panel.cpp.

References m_Retranslate, m_RetranslateBtn, and val.

◆ ShowToolTips()

bool CEditFeatLocPanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 229 of file edit_feat_loc_panel.cpp.

◆ x_EnableExtend3Btn()

void CEditFeatLocPanel::x_EnableExtend3Btn ( )
private

Definition at line 441 of file edit_feat_loc_panel.cpp.

References m_Extend3Btn, and x_GetPartial3Policy().

Referenced by SetPolicy().

◆ x_EnableExtend5Btn()

void CEditFeatLocPanel::x_EnableExtend5Btn ( )
private

Definition at line 421 of file edit_feat_loc_panel.cpp.

References m_Extend5Btn, and x_GetPartial5Policy().

Referenced by OnEflPartial5Selected(), and SetPolicy().

◆ x_GetMergePolicy()

edit::CLocationEditPolicy::EMergePolicy CEditFeatLocPanel::x_GetMergePolicy ( )
private

Definition at line 380 of file edit_feat_loc_panel.cpp.

References m_JoinOrderMerge, and val.

Referenced by GetPolicy().

◆ x_GetPartial3Policy()

edit::CLocationEditPolicy::EPartialPolicy CEditFeatLocPanel::x_GetPartial3Policy ( )
private

Definition at line 323 of file edit_feat_loc_panel.cpp.

References m_Adjust3Partial, and val.

Referenced by GetPolicy(), OnEflPartial3Selected(), and x_EnableExtend3Btn().

◆ x_GetPartial5Policy()

edit::CLocationEditPolicy::EPartialPolicy CEditFeatLocPanel::x_GetPartial5Policy ( )
private

Definition at line 261 of file edit_feat_loc_panel.cpp.

References m_Adjust5Partial, and val.

Referenced by GetPolicy(), and x_EnableExtend5Btn().

◆ x_SetMergePolicy()

void CEditFeatLocPanel::x_SetMergePolicy ( objects::edit::CLocationEditPolicy::EMergePolicy  merge)
private

Definition at line 402 of file edit_feat_loc_panel.cpp.

References m_JoinOrderMerge.

Referenced by SetPolicy().

◆ x_SetPartial3Policy()

void CEditFeatLocPanel::x_SetPartial3Policy ( objects::edit::CLocationEditPolicy::EPartialPolicy  partial3)
private

Definition at line 351 of file edit_feat_loc_panel.cpp.

References m_Adjust3Partial.

Referenced by SetPolicy().

◆ x_SetPartial5Policy()

void CEditFeatLocPanel::x_SetPartial5Policy ( objects::edit::CLocationEditPolicy::EPartialPolicy  partial5)
private

Definition at line 292 of file edit_feat_loc_panel.cpp.

References m_Adjust5Partial.

Referenced by SetPolicy().

Member Data Documentation

◆ m_Adjust3Partial

wxChoice* CEditFeatLocPanel::m_Adjust3Partial

◆ m_Adjust5Partial

wxChoice* CEditFeatLocPanel::m_Adjust5Partial

◆ m_AdjustGene

bool CEditFeatLocPanel::m_AdjustGene
private

Definition at line 146 of file edit_feat_loc_panel.hpp.

Referenced by Init(), and SetAdjustGene().

◆ m_AdjustGeneBtn

wxCheckBox* CEditFeatLocPanel::m_AdjustGeneBtn

Definition at line 123 of file edit_feat_loc_panel.hpp.

Referenced by CreateControls(), GetAdjustGene(), Init(), and SetAdjustGene().

◆ m_Extend3Btn

wxCheckBox* CEditFeatLocPanel::m_Extend3Btn

◆ m_Extend5Btn

wxCheckBox* CEditFeatLocPanel::m_Extend5Btn

◆ m_JoinOrderMerge

wxChoice* CEditFeatLocPanel::m_JoinOrderMerge

Definition at line 121 of file edit_feat_loc_panel.hpp.

Referenced by CreateControls(), Init(), x_GetMergePolicy(), and x_SetMergePolicy().

◆ m_Retranslate

bool CEditFeatLocPanel::m_Retranslate
private

Definition at line 145 of file edit_feat_loc_panel.hpp.

Referenced by Init(), and SetRetranslate().

◆ m_RetranslateBtn

wxCheckBox* CEditFeatLocPanel::m_RetranslateBtn

Definition at line 122 of file edit_feat_loc_panel.hpp.

Referenced by CreateControls(), GetRetranslate(), Init(), and SetRetranslate().


The documentation for this class was generated from the following files:
Modified on Fri Jul 12 16:19:41 2024 by modify_doxy.py rev. 669887