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

Search Toolkit Book for CAddFeatureBetweenDlg

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

+ Inheritance diagram for CAddFeatureBetweenDlg:
+ Collaboration diagram for CAddFeatureBetweenDlg:

Public Member Functions

 CAddFeatureBetweenDlg ()
 Constructors. More...
 
 CAddFeatureBetweenDlg (wxWindow *parent, objects::CSeq_entry_Handle seh, IWorkbench *workbench, wxWindowID id=10029, const wxString &caption=_("Add Features"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=10029, const wxString &caption=_("Add Features"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CAddFeatureBetweenDlg ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
virtual CRef< CCmdCompositeGetCommand ()
 
virtual string GetErrorMessage ()
 
void OnApplyButton (wxCommandEvent &event)
 
void OnFeatLeftChanged (wxCommandEvent &event)
 
void OnFeatRightChanged (wxCommandEvent &event)
 
- Public Member Functions inherited from CBulkCmdDlg
 CBulkCmdDlg ()
 Constructors. More...
 
 CBulkCmdDlg (IWorkbench *wb)
 
bool Create (wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
 
bool Create (wxWindow *parent, IWorkbench *wb, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
 
 ~CBulkCmdDlg ()
 Destructor. More...
 
virtual void OnChildChange (wxWindow *wnd)
 
virtual void ExecuteCmd (CRef< CCmdComposite > cmd)
 
bool GetTopLevelSeqEntryAndProcessor ()
 
TConstScopedObjects GetSelectedObjects ()
 
void UpdateChildrenFeaturePanels (wxSizer *sizer)
 
void onCancelPressed (wxCommandEvent &event)
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 

Private Member Functions

void x_ListFeatures ()
 
void GetFeatureLocations (vector< CRef< objects::CSeq_loc > > &locs)
 
void AddOneFeatureBetween (vector< CRef< objects::CSeq_loc > > &locs, TSignedSeqPos feat_left, TSignedSeqPos feat_right, bool partial_left, bool partial_right, objects::ENa_strand strand, const CSeq_id *id)
 

Private Attributes

objects::CSeq_entry_Handle m_TopSeqEntry
 
IWorkbenchm_Workbench
 
wxNotebook * m_Notebook
 
wxListBox * m_FeatureTypeLeft
 
wxListBox * m_FeatureTypeRight
 
wxArrayString m_FeatureTypeStrings
 
wxRadioButton * m_NoFeatPartialLeft
 
wxRadioButton * m_NoFeatNoFeatLeft
 
wxRadioButton * m_ExtendCompleteLeft
 
wxRadioButton * m_ExtendPartialLeft
 
wxRadioButton * m_NoFeatPartialRight
 
wxRadioButton * m_NoFeatNoFeatRight
 
wxRadioButton * m_ExtendCompleteRight
 
wxRadioButton * m_ExtendPartialRight
 
vector< objects::CSeqFeatData::ESubtype > m_Subtype
 
wxCheckBox * m_LeaveUp
 
CFeatureFieldNamePanelm_FeatLeftConstraint
 
CFeatureFieldNamePanelm_FeatRightConstraint
 
CStringConstraintPanelm_StringConstraintPanelLeft
 
CStringConstraintPanelm_StringConstraintPanelRight
 

Additional Inherited Members

- Protected Member Functions inherited from CBulkCmdDlg
edit::EExistingText x_GetExistingTextHandling (int num_conflicts, bool allow_multiple=false)
 
- Protected Attributes inherited from CBulkCmdDlg
IWorkbenchm_Workbench
 
ICommandProccessorm_CmdProccessor
 
objects::CSeq_entry_Handle m_TopSeqEntry
 
CConstRef< objects::CSeq_submit > m_SeqSubmit
 
string m_ErrorMessage
 

Detailed Description

CAddFeatureBetweenDlg class declaration

Definition at line 91 of file add_feature_between_dlg.hpp.

Constructor & Destructor Documentation

◆ CAddFeatureBetweenDlg() [1/2]

CAddFeatureBetweenDlg::CAddFeatureBetweenDlg ( )

Constructors.

CAddFeatureBetweenDlg type definition

CAddFeatureBetweenDlg event table definition

CAddFeatureBetweenDlg constructors

Definition at line 86 of file add_feature_between_dlg.cpp.

References Init().

◆ CAddFeatureBetweenDlg() [2/2]

CAddFeatureBetweenDlg::CAddFeatureBetweenDlg ( wxWindow *  parent,
objects::CSeq_entry_Handle  seh,
IWorkbench workbench,
wxWindowID  id = 10029,
const wxString &  caption = _("Add Features"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CAddFeatureBetweenDlg()

CAddFeatureBetweenDlg::~CAddFeatureBetweenDlg ( )

Destructor.

CAddFeatureBetweenDlg destructor

Definition at line 126 of file add_feature_between_dlg.cpp.

Member Function Documentation

◆ AddOneFeatureBetween()

void CAddFeatureBetweenDlg::AddOneFeatureBetween ( vector< CRef< objects::CSeq_loc > > &  locs,
TSignedSeqPos  feat_left,
TSignedSeqPos  feat_right,
bool  partial_left,
bool  partial_right,
objects::ENa_strand  strand,
const CSeq_id id 
)
private

Definition at line 468 of file add_feature_between_dlg.cpp.

References eExtreme_Positional.

Referenced by GetFeatureLocations().

◆ Create()

bool CAddFeatureBetweenDlg::Create ( wxWindow *  parent,
wxWindowID  id = 10029,
const wxString &  caption = _("Add Features"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CAddFeatureBetweenDlg::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CAddFeatureBetweenDlg::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 495 of file add_feature_between_dlg.cpp.

◆ GetCommand()

CRef< CCmdComposite > CAddFeatureBetweenDlg::GetCommand ( void  )
virtual

◆ GetErrorMessage()

string CAddFeatureBetweenDlg::GetErrorMessage ( )
virtual

Implements CBulkCmdDlg.

Definition at line 547 of file add_feature_between_dlg.cpp.

References CBulkCmdPanel::GetErrorMessage(), kEmptyStr, and m_Notebook.

◆ GetFeatureLocations()

void CAddFeatureBetweenDlg::GetFeatureLocations ( vector< CRef< objects::CSeq_loc > > &  locs)
private

◆ GetIconResource()

wxIcon CAddFeatureBetweenDlg::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 508 of file add_feature_between_dlg.cpp.

◆ Init()

void CAddFeatureBetweenDlg::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 137 of file add_feature_between_dlg.cpp.

References m_FeatLeftConstraint, m_FeatRightConstraint, m_Notebook, m_StringConstraintPanelLeft, m_StringConstraintPanelRight, NULL, and x_ListFeatures().

Referenced by CAddFeatureBetweenDlg().

◆ OnApplyButton()

void CAddFeatureBetweenDlg::OnApplyButton ( wxCommandEvent &  event)

◆ OnFeatLeftChanged()

void CAddFeatureBetweenDlg::OnFeatLeftChanged ( wxCommandEvent &  event)

◆ OnFeatRightChanged()

void CAddFeatureBetweenDlg::OnFeatRightChanged ( wxCommandEvent &  event)

◆ ShowToolTips()

bool CAddFeatureBetweenDlg::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 486 of file add_feature_between_dlg.cpp.

◆ x_ListFeatures()

void CAddFeatureBetweenDlg::x_ListFeatures ( )
private

Member Data Documentation

◆ m_ExtendCompleteLeft

wxRadioButton * CAddFeatureBetweenDlg::m_ExtendCompleteLeft
private

Definition at line 151 of file add_feature_between_dlg.hpp.

Referenced by CreateControls(), and GetFeatureLocations().

◆ m_ExtendCompleteRight

wxRadioButton * CAddFeatureBetweenDlg::m_ExtendCompleteRight
private

Definition at line 152 of file add_feature_between_dlg.hpp.

Referenced by CreateControls(), and GetFeatureLocations().

◆ m_ExtendPartialLeft

wxRadioButton * CAddFeatureBetweenDlg::m_ExtendPartialLeft
private

Definition at line 151 of file add_feature_between_dlg.hpp.

Referenced by CreateControls().

◆ m_ExtendPartialRight

wxRadioButton * CAddFeatureBetweenDlg::m_ExtendPartialRight
private

Definition at line 152 of file add_feature_between_dlg.hpp.

Referenced by CreateControls().

◆ m_FeatLeftConstraint

CFeatureFieldNamePanel* CAddFeatureBetweenDlg::m_FeatLeftConstraint
private

◆ m_FeatRightConstraint

CFeatureFieldNamePanel* CAddFeatureBetweenDlg::m_FeatRightConstraint
private

◆ m_FeatureTypeLeft

wxListBox* CAddFeatureBetweenDlg::m_FeatureTypeLeft
private

◆ m_FeatureTypeRight

wxListBox* CAddFeatureBetweenDlg::m_FeatureTypeRight
private

◆ m_FeatureTypeStrings

wxArrayString CAddFeatureBetweenDlg::m_FeatureTypeStrings
private

Definition at line 150 of file add_feature_between_dlg.hpp.

Referenced by CreateControls(), and x_ListFeatures().

◆ m_LeaveUp

wxCheckBox* CAddFeatureBetweenDlg::m_LeaveUp
private

Definition at line 154 of file add_feature_between_dlg.hpp.

Referenced by CreateControls(), and OnApplyButton().

◆ m_NoFeatNoFeatLeft

wxRadioButton * CAddFeatureBetweenDlg::m_NoFeatNoFeatLeft
private

Definition at line 151 of file add_feature_between_dlg.hpp.

Referenced by CreateControls(), and GetFeatureLocations().

◆ m_NoFeatNoFeatRight

wxRadioButton * CAddFeatureBetweenDlg::m_NoFeatNoFeatRight
private

Definition at line 152 of file add_feature_between_dlg.hpp.

Referenced by CreateControls(), and GetFeatureLocations().

◆ m_NoFeatPartialLeft

wxRadioButton* CAddFeatureBetweenDlg::m_NoFeatPartialLeft
private

Definition at line 151 of file add_feature_between_dlg.hpp.

Referenced by CreateControls(), and GetFeatureLocations().

◆ m_NoFeatPartialRight

wxRadioButton* CAddFeatureBetweenDlg::m_NoFeatPartialRight
private

Definition at line 152 of file add_feature_between_dlg.hpp.

Referenced by CreateControls(), and GetFeatureLocations().

◆ m_Notebook

wxNotebook* CAddFeatureBetweenDlg::m_Notebook
private

Definition at line 147 of file add_feature_between_dlg.hpp.

Referenced by CreateControls(), GetCommand(), GetErrorMessage(), and Init().

◆ m_StringConstraintPanelLeft

CStringConstraintPanel* CAddFeatureBetweenDlg::m_StringConstraintPanelLeft
private

◆ m_StringConstraintPanelRight

CStringConstraintPanel* CAddFeatureBetweenDlg::m_StringConstraintPanelRight
private

◆ m_Subtype

vector<objects::CSeqFeatData::ESubtype> CAddFeatureBetweenDlg::m_Subtype
private

Definition at line 153 of file add_feature_between_dlg.hpp.

Referenced by GetFeatureLocations(), and x_ListFeatures().

◆ m_TopSeqEntry

objects::CSeq_entry_Handle CAddFeatureBetweenDlg::m_TopSeqEntry
private

◆ m_Workbench

IWorkbench* CAddFeatureBetweenDlg::m_Workbench
private

Definition at line 146 of file add_feature_between_dlg.hpp.

Referenced by OnApplyButton().


The documentation for this class was generated from the following files:
Modified on Thu Jun 13 17:33:21 2024 by modify_doxy.py rev. 669887