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

Search Toolkit Book for CSingleSequencePanel

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

+ Inheritance diagram for CSingleSequencePanel:
+ Collaboration diagram for CSingleSequencePanel:

Public Types

enum  {
  ID_CSINGLESEQUENCEPANEL = 6600 , ID_SINGLESEQID = 6601 , ID_SEQNAMETEXTCTRL = 6602 , ID_SEQCOMPLETECHK = 6603 ,
  ID_SEQCIRCULARCHK = 6604 , ID_ORGANELLE_CHOICE
}
 Control identifiers. More...
 

Public Member Functions

 CSingleSequencePanel ()
 Constructors. More...
 
 CSingleSequencePanel (wxWindow *parent, objects::CSeq_entry_Handle seh, objects::CSubSource::ESubtype subtype, bool is_organelle=false, const vector< objects::CBioSource::EGenome > &organelle_types=vector< objects::CBioSource::EGenome >(), wxWindowID id=ID_CSINGLESEQUENCEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CSINGLESEQUENCEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CSingleSequencePanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void EnableTextCtrl (bool value)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
void SetValue (objects::CBioseq_Handle bh)
 
void ClearValue ()
 
string GetSeqId ()
 
string GetModifierValue ()
 
string GetOrganelleValue ()
 
bool IsComplete ()
 
bool IsCircular ()
 
bool AddToUpdateCommand (CCmdComposite &cmd)
 
void OnChangeSeqId (wxCommandEvent &event)
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 
static bool NeedsRow (objects::CBioseq_Handle bh, objects::CSubSource::ESubtype subtype)
 
static bool NeedsOrganelleRow (objects::CBioseq_Handle bh, const vector< objects::CBioSource::EGenome > &organelle_types)
 
static bool RemoveNamedValue (CCmdComposite &cmd, objects::CSubSource::ESubtype subtype, objects::CBioseq_Handle bh)
 

Private Attributes

objects::CSeq_entry_Handle m_Seh
 
objects::CSubSource::ESubtype m_Subtype
 
bool m_is_organelle
 
vector< objects::CBioSource::EGenome > m_organelle_types
 
wxChoice * m_SeqId
 
wxStaticText * m_LengthLabel
 
wxTextCtrl * m_NameCtrl
 
wxChoice * m_OrganelleCtrl
 
wxCheckBox * m_Complete
 
wxCheckBox * m_Circular
 

Detailed Description

CSingleSequencePanel class declaration

Definition at line 68 of file single_sequence_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CSINGLESEQUENCEPANEL 
ID_SINGLESEQID 
ID_SEQNAMETEXTCTRL 
ID_SEQCOMPLETECHK 
ID_SEQCIRCULARCHK 
ID_ORGANELLE_CHOICE 

Definition at line 149 of file single_sequence_panel.hpp.

Constructor & Destructor Documentation

◆ CSingleSequencePanel() [1/2]

CSingleSequencePanel::CSingleSequencePanel ( )

Constructors.

Definition at line 79 of file single_sequence_panel.cpp.

References Init().

◆ CSingleSequencePanel() [2/2]

CSingleSequencePanel::CSingleSequencePanel ( wxWindow *  parent,
objects::CSeq_entry_Handle  seh,
objects::CSubSource::ESubtype  subtype,
bool  is_organelle = false,
const vector< objects::CBioSource::EGenome > &  organelle_types = vector<objects::CBioSource::EGenome>(),
wxWindowID  id = ID_CSINGLESEQUENCEPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ ~CSingleSequencePanel()

CSingleSequencePanel::~CSingleSequencePanel ( )

Destructor.

Definition at line 119 of file single_sequence_panel.cpp.

Member Function Documentation

◆ AddToUpdateCommand()

bool CSingleSequencePanel::AddToUpdateCommand ( CCmdComposite cmd)

◆ ClearValue()

void CSingleSequencePanel::ClearValue ( )

Definition at line 380 of file single_sequence_panel.cpp.

References m_Circular, m_Complete, m_LengthLabel, m_NameCtrl, m_OrganelleCtrl, m_SeqId, and wxT.

Referenced by OnChangeSeqId().

◆ Create()

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

Creation.

Definition at line 98 of file single_sequence_panel.cpp.

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

Referenced by CSingleSequencePanel().

◆ CreateControls()

void CSingleSequencePanel::CreateControls ( )

◆ EnableTextCtrl()

void CSingleSequencePanel::EnableTextCtrl ( bool  value)

Definition at line 224 of file single_sequence_panel.cpp.

References m_NameCtrl, and rapidjson::value.

◆ GetBitmapResource()

wxBitmap CSingleSequencePanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 244 of file single_sequence_panel.cpp.

◆ GetIconResource()

wxIcon CSingleSequencePanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 257 of file single_sequence_panel.cpp.

◆ GetModifierValue()

string CSingleSequencePanel::GetModifierValue ( )

Definition at line 410 of file single_sequence_panel.cpp.

References m_NameCtrl, ToStdString(), and val.

Referenced by AddToUpdateCommand().

◆ GetOrganelleValue()

string CSingleSequencePanel::GetOrganelleValue ( )

Definition at line 418 of file single_sequence_panel.cpp.

References m_OrganelleCtrl, ToStdString(), and val.

◆ GetSeqId()

string CSingleSequencePanel::GetSeqId ( )
inline

Definition at line 122 of file single_sequence_panel.hpp.

References m_SeqId, and ToStdString().

Referenced by AddToUpdateCommand(), and OnChangeSeqId().

◆ Init()

void CSingleSequencePanel::Init ( void  )

Initialises member variables.

Definition at line 130 of file single_sequence_panel.cpp.

References m_Circular, m_Complete, m_LengthLabel, m_NameCtrl, m_OrganelleCtrl, m_SeqId, and NULL.

Referenced by CSingleSequencePanel().

◆ IsCircular()

bool CSingleSequencePanel::IsCircular ( )
inline

Definition at line 126 of file single_sequence_panel.hpp.

References m_Circular.

Referenced by AddToUpdateCommand().

◆ IsComplete()

bool CSingleSequencePanel::IsComplete ( )
inline

Definition at line 125 of file single_sequence_panel.hpp.

References m_Complete.

Referenced by AddToUpdateCommand().

◆ NeedsOrganelleRow()

bool CSingleSequencePanel::NeedsOrganelleRow ( objects::CBioseq_Handle  bh,
const vector< objects::CBioSource::EGenome > &  organelle_types 
)
static

◆ NeedsRow()

bool CSingleSequencePanel::NeedsRow ( objects::CBioseq_Handle  bh,
objects::CSubSource::ESubtype  subtype 
)
static

◆ OnChangeSeqId()

void CSingleSequencePanel::OnChangeSeqId ( wxCommandEvent &  event)

Definition at line 393 of file single_sequence_panel.cpp.

References ClearValue(), GetSeqId(), m_Seh, and SetValue().

◆ RemoveNamedValue()

bool CSingleSequencePanel::RemoveNamedValue ( CCmdComposite cmd,
objects::CSubSource::ESubtype  subtype,
objects::CBioseq_Handle  bh 
)
static

◆ SetValue()

void CSingleSequencePanel::SetValue ( objects::CBioseq_Handle  bh)

◆ ShowToolTips()

bool CSingleSequencePanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 235 of file single_sequence_panel.cpp.

Member Data Documentation

◆ m_Circular

wxCheckBox* CSingleSequencePanel::m_Circular
private

Definition at line 146 of file single_sequence_panel.hpp.

Referenced by ClearValue(), CreateControls(), Init(), IsCircular(), and SetValue().

◆ m_Complete

wxCheckBox* CSingleSequencePanel::m_Complete
private

Definition at line 145 of file single_sequence_panel.hpp.

Referenced by ClearValue(), CreateControls(), Init(), IsComplete(), and SetValue().

◆ m_is_organelle

bool CSingleSequencePanel::m_is_organelle
private

Definition at line 138 of file single_sequence_panel.hpp.

Referenced by AddToUpdateCommand(), CreateControls(), and SetValue().

◆ m_LengthLabel

wxStaticText* CSingleSequencePanel::m_LengthLabel
private

Definition at line 142 of file single_sequence_panel.hpp.

Referenced by ClearValue(), CreateControls(), Init(), and SetValue().

◆ m_NameCtrl

wxTextCtrl* CSingleSequencePanel::m_NameCtrl
private

◆ m_organelle_types

vector<objects::CBioSource::EGenome> CSingleSequencePanel::m_organelle_types
private

Definition at line 139 of file single_sequence_panel.hpp.

Referenced by AddToUpdateCommand(), CreateControls(), and SetValue().

◆ m_OrganelleCtrl

wxChoice* CSingleSequencePanel::m_OrganelleCtrl
private

◆ m_Seh

objects::CSeq_entry_Handle CSingleSequencePanel::m_Seh
private

Definition at line 136 of file single_sequence_panel.hpp.

Referenced by AddToUpdateCommand(), CreateControls(), and OnChangeSeqId().

◆ m_SeqId

wxChoice* CSingleSequencePanel::m_SeqId
private

Definition at line 141 of file single_sequence_panel.hpp.

Referenced by ClearValue(), CreateControls(), GetSeqId(), Init(), and SetValue().

◆ m_Subtype

objects::CSubSource::ESubtype CSingleSequencePanel::m_Subtype
private

Definition at line 137 of file single_sequence_panel.hpp.

Referenced by AddToUpdateCommand(), CreateControls(), and SetValue().


The documentation for this class was generated from the following files:
Modified on Tue May 28 05:50:20 2024 by modify_doxy.py rev. 669887