NCBI C++ ToolKit
|
Search Toolkit Book for CSubAnnotationPanel
#include <gui/packages/pkg_sequence_edit/subannotation_panel.hpp>
Classes | |
struct | SFeatTableParams |
Public Types | |
enum | { ID_CSUBANNOTATIONPANEL = 6636 , ID_IMPORT_FTABLE_BTN = 6637 , ID_SUBANNOTFEATTBL = 6638 } |
Control identifiers. More... | |
Public Member Functions | |
CSubAnnotationPanel () | |
Constructors. More... | |
CSubAnnotationPanel (wxWindow *parent, ICommandProccessor *proc, const wxString &dir, objects::CSeq_entry_Handle seh, wxWindowID id=ID_CSUBANNOTATIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CSUBANNOTATIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CSubAnnotationPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnImportFeatTableClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ORGINFOBTN More... | |
void | OnContextHelpClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CONTEXT_HELP More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
virtual void | SetSeqEntryHandle (objects::CSeq_entry_Handle seh) |
virtual wxString | GetAnchor () |
virtual wxString | GetName () const |
virtual bool | TransferDataToWindow () |
CJobAdapter::IJobCallback interface implementation | |
virtual void | OnJobResult (CObject *result, CJobAdapter &adapter) |
virtual void | OnJobFailed (const string &, CJobAdapter &adapter) |
Public Member Functions inherited from ISubmissionPage | |
virtual | ~ISubmissionPage () |
virtual bool | StepForward () |
virtual bool | StepBackward () |
virtual bool | IsFirstPage () const |
virtual bool | IsLastPage () const |
virtual void | ApplySubmitBlock (objects::CSubmit_block &block) |
virtual void | ApplyDescriptor (objects::CSeqdesc &desc) |
CSubmissionPageChangeListener * | GetParentWizard (wxWindow *wnd) const |
virtual void | ApplyCommand () |
virtual void | ReportMissingFields (string &text) |
Public Member Functions inherited from CJobAdapter::IJobCallback | |
virtual | ~IJobCallback () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
static bool | Create5ColFeatTable (SFeatTableParams &input, string &output, string &error, ICanceled &canceled) |
Private Member Functions | |
void | x_SetFontAsTextPanel () |
Private Attributes | |
CGenericPanel * | m_FeatureTable |
CRef< CJobAdapter > | m_JobAdapter |
ICommandProccessor * | m_CmdProcessor |
wxString | m_WorkDir |
objects::CSeq_entry_Handle | m_Seh |
Additional Inherited Members | |
Protected Member Functions inherited from ISubmissionPage | |
bool | x_DoStepForward (wxListbook *book) |
bool | x_DoStepBackward (wxListbook *book) |
CSubAnnotationPanel class declaration
Definition at line 59 of file subannotation_panel.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CSUBANNOTATIONPANEL | |
ID_IMPORT_FTABLE_BTN | |
ID_SUBANNOTFEATTBL |
Definition at line 127 of file subannotation_panel.hpp.
CSubAnnotationPanel::CSubAnnotationPanel | ( | ) |
CSubAnnotationPanel::CSubAnnotationPanel | ( | wxWindow * | parent, |
ICommandProccessor * | proc, | ||
const wxString & | dir, | ||
objects::CSeq_entry_Handle | seh, | ||
wxWindowID | id = ID_CSUBANNOTATIONPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 80 of file subannotation_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CSubAnnotationPanel::~CSubAnnotationPanel | ( | ) |
Destructor.
Definition at line 113 of file subannotation_panel.cpp.
bool CSubAnnotationPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CSUBANNOTATIONPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
Definition at line 92 of file subannotation_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CSubAnnotationPanel().
|
static |
Definition at line 252 of file subannotation_panel.cpp.
References count, Error(), CSeqUtils::GetAnnotSelector(), CException::GetMsg(), Info(), input(), ICanceled::IsCanceled(), LOG_POST, output, and CException::what().
Referenced by TransferDataToWindow().
void CSubAnnotationPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Definition at line 136 of file subannotation_panel.cpp.
References _, ID_IMPORT_FTABLE_BTN, ID_SUBANNOTFEATTBL, m_FeatureTable, NULL, and CGenericPanel::SetFindMode().
Referenced by Create().
|
inlinevirtual |
Reimplemented from ISubmissionPage.
Definition at line 118 of file subannotation_panel.hpp.
References _.
wxBitmap CSubAnnotationPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 178 of file subannotation_panel.cpp.
wxIcon CSubAnnotationPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 191 of file subannotation_panel.cpp.
|
inlinevirtual |
Reimplemented from ISubmissionPage.
Definition at line 119 of file subannotation_panel.hpp.
References SYMBOL_CSUBANNOTATIONPANEL_TITLE.
void CSubAnnotationPanel::Init | ( | void | ) |
Initialises member variables.
Definition at line 124 of file subannotation_panel.cpp.
References m_FeatureTable, and NULL.
Referenced by CSubAnnotationPanel().
void CSubAnnotationPanel::OnContextHelpClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CONTEXT_HELP
Definition at line 205 of file subannotation_panel.cpp.
void CSubAnnotationPanel::OnImportFeatTableClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ORGINFOBTN
Definition at line 215 of file subannotation_panel.cpp.
References cmd, Error(), ICommandProccessor::Execute(), CException::GetMsg(), CImportFeatTable::ImportFeaturesFromFile(), LOG_POST, m_CmdProcessor, m_Seh, m_WorkDir, and CException::what().
|
virtual |
Implements CJobAdapter::IJobCallback.
Definition at line 313 of file subannotation_panel.cpp.
References NcbiErrorBox().
|
virtual |
Implements CJobAdapter::IJobCallback.
Definition at line 303 of file subannotation_panel.cpp.
References data, CJobAdapterResult< T >::GetData(), Info(), LOG_POST, m_FeatureTable, result, CGenericPanel::SetText(), and ToWxString().
|
inlinevirtual |
Reimplemented from ISubmissionPage.
Definition at line 117 of file subannotation_panel.hpp.
References m_Seh.
Referenced by CSubmissionWizard::x_UpdateSeqEntryHandle().
|
static |
Should we show tooltips?
Definition at line 169 of file subannotation_panel.cpp.
|
virtual |
Definition at line 236 of file subannotation_panel.cpp.
References CJobAdapter::Cancel(), Create5ColFeatTable(), input(), m_FeatureTable, m_JobAdapter, m_Seh, CRef< C, Locker >::Reset(), CGenericPanel::SetText(), and ToWxString().
|
private |
Definition at line 157 of file subannotation_panel.cpp.
References CTextPanel::GetFont(), CGuiRegistry::GetInstance(), and m_FeatureTable.
|
private |
Definition at line 138 of file subannotation_panel.hpp.
Referenced by OnImportFeatTableClick().
|
private |
Definition at line 124 of file subannotation_panel.hpp.
Referenced by CreateControls(), Init(), OnJobResult(), TransferDataToWindow(), and x_SetFontAsTextPanel().
|
private |
Definition at line 137 of file subannotation_panel.hpp.
Referenced by TransferDataToWindow().
|
private |
Definition at line 140 of file subannotation_panel.hpp.
Referenced by OnImportFeatTableClick(), SetSeqEntryHandle(), and TransferDataToWindow().
|
private |
Definition at line 139 of file subannotation_panel.hpp.
Referenced by OnImportFeatTableClick().