NCBI C++ ToolKit
|
Search Toolkit Book for CAddFeatureBetweenDlg
#include <gui/packages/pkg_sequence_edit/add_feature_between_dlg.hpp>
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< CCmdComposite > | GetCommand () |
virtual string | GetErrorMessage () |
void | OnApplyButton (wxCommandEvent &event) |
void | OnFeatLeftChanged (wxCommandEvent &event) |
void | OnFeatRightChanged (wxCommandEvent &event) |
![]() | |
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 |
IWorkbench * | m_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 |
CFeatureFieldNamePanel * | m_FeatLeftConstraint |
CFeatureFieldNamePanel * | m_FeatRightConstraint |
CStringConstraintPanel * | m_StringConstraintPanelLeft |
CStringConstraintPanel * | m_StringConstraintPanelRight |
Additional Inherited Members | |
![]() | |
edit::EExistingText | x_GetExistingTextHandling (int num_conflicts, bool allow_multiple=false) |
![]() | |
IWorkbench * | m_Workbench |
ICommandProccessor * | m_CmdProccessor |
objects::CSeq_entry_Handle | m_TopSeqEntry |
CConstRef< objects::CSeq_submit > | m_SeqSubmit |
string | m_ErrorMessage |
CAddFeatureBetweenDlg class declaration
Definition at line 91 of file add_feature_between_dlg.hpp.
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::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 |
||
) |
Definition at line 91 of file add_feature_between_dlg.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CAddFeatureBetweenDlg::~CAddFeatureBetweenDlg | ( | ) |
Destructor.
CAddFeatureBetweenDlg destructor
Definition at line 126 of file add_feature_between_dlg.cpp.
|
private |
Definition at line 468 of file add_feature_between_dlg.cpp.
References eExtreme_Positional.
Referenced by GetFeatureLocations().
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 |
||
) |
Creation.
CAddFeatureBetweenDlg creator
Definition at line 104 of file add_feature_between_dlg.cpp.
References CBulkCmdDlg::Create(), CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CAddFeatureBetweenDlg().
void CAddFeatureBetweenDlg::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CAddFeatureBetweenDlg
Definition at line 154 of file add_feature_between_dlg.cpp.
References _, ID_APPLY_BUTTON, line1, line2, CFeatureFieldNamePanel::ListPresentFeaturesFirst(), m_ExtendCompleteLeft, m_ExtendCompleteRight, m_ExtendPartialLeft, m_ExtendPartialRight, m_FeatLeftConstraint, m_FeatRightConstraint, m_FeatureTypeLeft, m_FeatureTypeRight, m_FeatureTypeStrings, m_LeaveUp, m_NoFeatNoFeatLeft, m_NoFeatNoFeatRight, m_NoFeatPartialLeft, m_NoFeatPartialRight, m_Notebook, m_StringConstraintPanelLeft, m_StringConstraintPanelRight, m_TopSeqEntry, NULL, OnFeatLeftChanged(), OnFeatRightChanged(), wxFIXED_MINSIZE, and wxID_ANY.
Referenced by Create().
wxBitmap CAddFeatureBetweenDlg::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 495 of file add_feature_between_dlg.cpp.
|
virtual |
Implements CBulkCmdDlg.
Definition at line 517 of file add_feature_between_dlg.cpp.
References CBulkCmdPanel::AddOneCommand(), cmd, GetFeatureLocations(), GetId(), i, m_Notebook, m_TopSeqEntry, and CBulkCmdPanel::SetLoc().
Referenced by OnApplyButton().
|
virtual |
Implements CBulkCmdDlg.
Definition at line 547 of file add_feature_between_dlg.cpp.
References CBulkCmdPanel::GetErrorMessage(), kEmptyStr, and m_Notebook.
|
private |
Definition at line 300 of file add_feature_between_dlg.cpp.
References AddOneFeatureBetween(), CorrectForncRNASubtypes(), CreateEditingActionConstraint(), CFieldNamePanel::eFieldType_Feature, CSeq_inst_Base::eMol_na, eNa_strand_plus, CFeatureFieldNamePanel::GetFieldName(), CSeq_loc::GetId(), CSeq_loc::GetStrand(), CStringConstraintPanel::GetStringConstraint(), GetSubtype(), m_ExtendCompleteLeft, m_ExtendCompleteRight, m_FeatLeftConstraint, m_FeatRightConstraint, m_FeatureTypeLeft, m_FeatureTypeRight, m_NoFeatNoFeatLeft, m_NoFeatNoFeatRight, m_NoFeatPartialLeft, m_NoFeatPartialRight, m_StringConstraintPanelLeft, m_StringConstraintPanelRight, m_Subtype, m_TopSeqEntry, and CEditingActionConstraint::Match().
Referenced by GetCommand().
wxIcon CAddFeatureBetweenDlg::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Get icon resources
Definition at line 508 of file add_feature_between_dlg.cpp.
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().
void CAddFeatureBetweenDlg::OnApplyButton | ( | wxCommandEvent & | event | ) |
Definition at line 565 of file add_feature_between_dlg.cpp.
References cmd, ICommandProccessor::Execute(), GetCommand(), CBioseq_Handle::GetSeq_entry_Handle(), IServiceLocator::GetServiceByType(), GetTopSeqEntryFromScopedObject(), CGBDocument::GetUndoManager(), GetViewObjects(), m_LeaveUp, m_TopSeqEntry, m_Workbench, NON_CONST_ITERATE, and NULL.
void CAddFeatureBetweenDlg::OnFeatLeftChanged | ( | wxCommandEvent & | event | ) |
Definition at line 634 of file add_feature_between_dlg.cpp.
References CFeatureFieldNamePanel::GetChoices(), m_FeatLeftConstraint, m_FeatureTypeLeft, m_StringConstraintPanelLeft, CStringConstraintPanel::SetChoices(), CFeatureFieldNamePanel::SetFieldName(), and str().
Referenced by CreateControls().
void CAddFeatureBetweenDlg::OnFeatRightChanged | ( | wxCommandEvent & | event | ) |
Definition at line 645 of file add_feature_between_dlg.cpp.
References CFeatureFieldNamePanel::GetChoices(), m_FeatRightConstraint, m_FeatureTypeRight, m_StringConstraintPanelRight, CStringConstraintPanel::SetChoices(), CFeatureFieldNamePanel::SetFieldName(), and str().
Referenced by CreateControls().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 486 of file add_feature_between_dlg.cpp.
|
private |
Definition at line 273 of file add_feature_between_dlg.cpp.
References set< Key, Compare >::end(), set< Key, Compare >::find(), CFeatListItem::GetDescription(), GetSortedFeatList(), CFeatListItem::GetSubtype(), CFeatListItem::GetType(), set< Key, Compare >::insert(), CSeqFeatData::IsRegulatory(), ITERATE, m_FeatureTypeStrings, m_Subtype, m_TopSeqEntry, CFeatureTypePanel::s_IsRarelyUsedOrDiscouragedFeatureType(), and ToWxString().
Referenced by Init().
|
private |
Definition at line 151 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), and GetFeatureLocations().
|
private |
Definition at line 152 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), and GetFeatureLocations().
|
private |
Definition at line 151 of file add_feature_between_dlg.hpp.
Referenced by CreateControls().
|
private |
Definition at line 152 of file add_feature_between_dlg.hpp.
Referenced by CreateControls().
|
private |
Definition at line 155 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), GetFeatureLocations(), Init(), and OnFeatLeftChanged().
|
private |
Definition at line 156 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), GetFeatureLocations(), Init(), and OnFeatRightChanged().
|
private |
Definition at line 148 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), GetFeatureLocations(), and OnFeatLeftChanged().
|
private |
Definition at line 149 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), GetFeatureLocations(), and OnFeatRightChanged().
|
private |
Definition at line 150 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), and x_ListFeatures().
|
private |
Definition at line 154 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), and OnApplyButton().
|
private |
Definition at line 151 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), and GetFeatureLocations().
|
private |
Definition at line 152 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), and GetFeatureLocations().
|
private |
Definition at line 151 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), and GetFeatureLocations().
|
private |
Definition at line 152 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), and GetFeatureLocations().
|
private |
Definition at line 147 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), GetCommand(), GetErrorMessage(), and Init().
|
private |
Definition at line 157 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), GetFeatureLocations(), Init(), and OnFeatLeftChanged().
|
private |
Definition at line 158 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), GetFeatureLocations(), Init(), and OnFeatRightChanged().
|
private |
Definition at line 153 of file add_feature_between_dlg.hpp.
Referenced by GetFeatureLocations(), and x_ListFeatures().
|
private |
Definition at line 145 of file add_feature_between_dlg.hpp.
Referenced by CreateControls(), GetCommand(), GetFeatureLocations(), OnApplyButton(), and x_ListFeatures().
|
private |
Definition at line 146 of file add_feature_between_dlg.hpp.
Referenced by OnApplyButton().