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

Search Toolkit Book for COrgGeneralPanel

#include <gui/widgets/edit/orggeneral_panel.hpp>

+ Inheritance diagram for COrgGeneralPanel:
+ Collaboration diagram for COrgGeneralPanel:

Public Types

enum  {
  ID_CORGGENERALPANEL = 6580 , ID_ORGTAXNAME = 6581 , ID_ORGSTRAIN = 6582 , ID_ORGISOLATE = 6583 ,
  ID_ORGCULTIVAR = 6584 , ID_ORGBREED = 6585
}
 Control identifiers. More...
 

Public Member Functions

 COrgGeneralPanel ()
 Constructors. More...
 
 COrgGeneralPanel (wxWindow *parent, ICommandProccessor *cmdproc, objects::CSeq_entry_Handle seh, wxWindowID id=ID_CORGGENERALPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CORGGENERALPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~COrgGeneralPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void ApplyBioSource (objects::CBioSource &src)
 
virtual bool TransferDataToWindow ()
 
virtual bool TransferDataFromWindow ()
 
virtual void ApplyCommand ()
 
virtual void ReportMissingFields (string &text)
 
virtual wxString GetAnchor ()
 
virtual wxString GetName () const
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
void SetSeqEntryHandle (objects::CSeq_entry_Handle seh)
 
- 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
 

Static Public Member Functions

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

Private Member Functions

void x_Reset ()
 
bool x_ApplyChangesToSource (objects::CBioSource &src)
 
bool x_HasTaxnameChanged (const objects::CBioSource &orig_src, const objects::CBioSource &edited_src)
 

Private Attributes

CRef< objects::CBioSource > m_Source
 
ICommandProccessorm_CmdProcessor
 
objects::CSeq_entry_Handle m_Seh
 
wxTextCtrl * m_Taxname
 
wxTextCtrl * m_Strain
 
wxTextCtrl * m_Isolate
 
wxTextCtrl * m_Cultivar
 
wxTextCtrl * m_Breed
 

Additional Inherited Members

- Protected Member Functions inherited from ISubmissionPage
bool x_DoStepForward (wxListbook *book)
 
bool x_DoStepBackward (wxListbook *book)
 

Detailed Description

COrgGeneralPanel class declaration

Definition at line 62 of file orggeneral_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CORGGENERALPANEL 
ID_ORGTAXNAME 
ID_ORGSTRAIN 
ID_ORGISOLATE 
ID_ORGCULTIVAR 
ID_ORGBREED 

Definition at line 139 of file orggeneral_panel.hpp.

Constructor & Destructor Documentation

◆ COrgGeneralPanel() [1/2]

COrgGeneralPanel::COrgGeneralPanel ( )

Constructors.

Definition at line 79 of file orggeneral_panel.cpp.

References Init().

◆ COrgGeneralPanel() [2/2]

COrgGeneralPanel::COrgGeneralPanel ( wxWindow *  parent,
ICommandProccessor cmdproc,
objects::CSeq_entry_Handle  seh,
wxWindowID  id = ID_CORGGENERALPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ ~COrgGeneralPanel()

COrgGeneralPanel::~COrgGeneralPanel ( )

Destructor.

Definition at line 120 of file orggeneral_panel.cpp.

Member Function Documentation

◆ ApplyBioSource()

void COrgGeneralPanel::ApplyBioSource ( objects::CBioSource &  src)

◆ ApplyCommand()

void COrgGeneralPanel::ApplyCommand ( )
virtual

◆ Create()

bool COrgGeneralPanel::Create ( wxWindow *  parent,
wxWindowID  id = ID_CORGGENERALPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

Creation.

Definition at line 99 of file orggeneral_panel.cpp.

References CreateControls(), and ncbi::grid::netcache::search::fields::size.

◆ CreateControls()

void COrgGeneralPanel::CreateControls ( )

Creates the controls and sizers.

Definition at line 147 of file orggeneral_panel.cpp.

References _, ID_ORGBREED, ID_ORGCULTIVAR, ID_ORGISOLATE, ID_ORGSTRAIN, ID_ORGTAXNAME, m_Breed, m_Cultivar, m_Isolate, m_Strain, and m_Taxname.

Referenced by Create().

◆ GetAnchor()

virtual wxString COrgGeneralPanel::GetAnchor ( void  )
inlinevirtual

Reimplemented from ISubmissionPage.

Definition at line 100 of file orggeneral_panel.hpp.

References _.

◆ GetBitmapResource()

wxBitmap COrgGeneralPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 216 of file orggeneral_panel.cpp.

◆ GetIconResource()

wxIcon COrgGeneralPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 229 of file orggeneral_panel.cpp.

◆ GetName()

virtual wxString COrgGeneralPanel::GetName ( void  ) const
inlinevirtual

Reimplemented from ISubmissionPage.

Definition at line 101 of file orggeneral_panel.hpp.

References SYMBOL_CORGGENERALPANEL_TITLE.

◆ Init()

void COrgGeneralPanel::Init ( void  )

Initialises member variables.

Definition at line 131 of file orggeneral_panel.cpp.

References m_Breed, m_Cultivar, m_Isolate, m_Strain, m_Taxname, and NULL.

◆ ReportMissingFields()

void COrgGeneralPanel::ReportMissingFields ( string text)
virtual

Reimplemented from ISubmissionPage.

Definition at line 477 of file orggeneral_panel.cpp.

References m_Breed, m_Cultivar, m_Isolate, m_Strain, m_Taxname, and text().

◆ SetSeqEntryHandle()

void COrgGeneralPanel::SetSeqEntryHandle ( objects::CSeq_entry_Handle  seh)
inlinevirtual

Reimplemented from ISubmissionPage.

Definition at line 120 of file orggeneral_panel.hpp.

References m_Seh.

Referenced by COrganismInfoPanel::SetSeqEntryHandle().

◆ ShowToolTips()

bool COrgGeneralPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 207 of file orggeneral_panel.cpp.

◆ TransferDataFromWindow()

bool COrgGeneralPanel::TransferDataFromWindow ( )
virtual

Definition at line 403 of file orggeneral_panel.cpp.

References m_Source, and x_ApplyChangesToSource().

◆ TransferDataToWindow()

bool COrgGeneralPanel::TransferDataToWindow ( )
virtual

◆ x_ApplyChangesToSource()

bool COrgGeneralPanel::x_ApplyChangesToSource ( objects::CBioSource &  src)
private

◆ x_HasTaxnameChanged()

bool COrgGeneralPanel::x_HasTaxnameChanged ( const objects::CBioSource &  orig_src,
const objects::CBioSource &  edited_src 
)
private

◆ x_Reset()

void COrgGeneralPanel::x_Reset ( void  )
private

Definition at line 245 of file orggeneral_panel.cpp.

References m_Breed, m_Cultivar, m_Isolate, m_Strain, m_Taxname, and wxT.

Referenced by TransferDataToWindow().

Member Data Documentation

◆ m_Breed

wxTextCtrl* COrgGeneralPanel::m_Breed
private

◆ m_CmdProcessor

ICommandProccessor* COrgGeneralPanel::m_CmdProcessor
private

Definition at line 124 of file orggeneral_panel.hpp.

Referenced by ApplyCommand().

◆ m_Cultivar

wxTextCtrl* COrgGeneralPanel::m_Cultivar
private

◆ m_Isolate

wxTextCtrl* COrgGeneralPanel::m_Isolate
private

◆ m_Seh

objects::CSeq_entry_Handle COrgGeneralPanel::m_Seh
private

Definition at line 125 of file orggeneral_panel.hpp.

Referenced by ApplyCommand(), and SetSeqEntryHandle().

◆ m_Source

CRef<objects::CBioSource> COrgGeneralPanel::m_Source
private

◆ m_Strain

wxTextCtrl* COrgGeneralPanel::m_Strain
private

◆ m_Taxname

wxTextCtrl* COrgGeneralPanel::m_Taxname
private

The documentation for this class was generated from the following files:
Modified on Tue Apr 23 07:40:58 2024 by modify_doxy.py rev. 669887