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

Search Toolkit Book for CSubAnnotationPanel

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

+ Inheritance diagram for CSubAnnotationPanel:
+ Collaboration diagram for CSubAnnotationPanel:

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

CGenericPanelm_FeatureTable
 
CRef< CJobAdapterm_JobAdapter
 
ICommandProccessorm_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)
 

Detailed Description

CSubAnnotationPanel class declaration

Definition at line 59 of file subannotation_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CSUBANNOTATIONPANEL 
ID_IMPORT_FTABLE_BTN 
ID_SUBANNOTFEATTBL 

Definition at line 127 of file subannotation_panel.hpp.

Constructor & Destructor Documentation

◆ CSubAnnotationPanel() [1/2]

CSubAnnotationPanel::CSubAnnotationPanel ( )

Constructors.

Definition at line 75 of file subannotation_panel.cpp.

References Init().

◆ CSubAnnotationPanel() [2/2]

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 
)

◆ ~CSubAnnotationPanel()

CSubAnnotationPanel::~CSubAnnotationPanel ( )

Destructor.

Definition at line 113 of file subannotation_panel.cpp.

Member Function Documentation

◆ Create()

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

◆ Create5ColFeatTable()

bool CSubAnnotationPanel::Create5ColFeatTable ( SFeatTableParams input,
string output,
string error,
ICanceled canceled 
)
static

◆ CreateControls()

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

◆ GetAnchor()

virtual wxString CSubAnnotationPanel::GetAnchor ( )
inlinevirtual

Reimplemented from ISubmissionPage.

Definition at line 118 of file subannotation_panel.hpp.

References _.

◆ GetBitmapResource()

wxBitmap CSubAnnotationPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 178 of file subannotation_panel.cpp.

◆ GetIconResource()

wxIcon CSubAnnotationPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 191 of file subannotation_panel.cpp.

◆ GetName()

virtual wxString CSubAnnotationPanel::GetName ( void  ) const
inlinevirtual

Reimplemented from ISubmissionPage.

Definition at line 119 of file subannotation_panel.hpp.

References SYMBOL_CSUBANNOTATIONPANEL_TITLE.

◆ Init()

void CSubAnnotationPanel::Init ( void  )

Initialises member variables.

Definition at line 124 of file subannotation_panel.cpp.

References m_FeatureTable, and NULL.

Referenced by CSubAnnotationPanel().

◆ OnContextHelpClick()

void CSubAnnotationPanel::OnContextHelpClick ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CONTEXT_HELP

Definition at line 205 of file subannotation_panel.cpp.

◆ OnImportFeatTableClick()

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

◆ OnJobFailed()

void CSubAnnotationPanel::OnJobFailed ( const string errMsg,
CJobAdapter adapter 
)
virtual

Implements CJobAdapter::IJobCallback.

Definition at line 313 of file subannotation_panel.cpp.

References NcbiErrorBox().

◆ OnJobResult()

void CSubAnnotationPanel::OnJobResult ( CObject result,
CJobAdapter adapter 
)
virtual

◆ SetSeqEntryHandle()

virtual void CSubAnnotationPanel::SetSeqEntryHandle ( objects::CSeq_entry_Handle  seh)
inlinevirtual

Reimplemented from ISubmissionPage.

Definition at line 117 of file subannotation_panel.hpp.

References m_Seh.

Referenced by CSubmissionWizard::x_UpdateSeqEntryHandle().

◆ ShowToolTips()

bool CSubAnnotationPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 169 of file subannotation_panel.cpp.

◆ TransferDataToWindow()

bool CSubAnnotationPanel::TransferDataToWindow ( )
virtual

◆ x_SetFontAsTextPanel()

void CSubAnnotationPanel::x_SetFontAsTextPanel ( )
private

Member Data Documentation

◆ m_CmdProcessor

ICommandProccessor* CSubAnnotationPanel::m_CmdProcessor
private

Definition at line 138 of file subannotation_panel.hpp.

Referenced by OnImportFeatTableClick().

◆ m_FeatureTable

CGenericPanel* CSubAnnotationPanel::m_FeatureTable
private

◆ m_JobAdapter

CRef<CJobAdapter> CSubAnnotationPanel::m_JobAdapter
private

Definition at line 137 of file subannotation_panel.hpp.

Referenced by TransferDataToWindow().

◆ m_Seh

objects::CSeq_entry_Handle CSubAnnotationPanel::m_Seh
private

◆ m_WorkDir

wxString CSubAnnotationPanel::m_WorkDir
private

Definition at line 139 of file subannotation_panel.hpp.

Referenced by OnImportFeatTableClick().


The documentation for this class was generated from the following files:
Modified on Sun Mar 03 03:12:59 2024 by modify_doxy.py rev. 669887