NCBI C++ ToolKit
|
Search Toolkit Book for CEditHistory
#include <gui/packages/pkg_sequence_edit/edit_history.hpp>
Public Member Functions | |
CEditHistory () | |
Constructors. More... | |
CEditHistory (wxWindow *parent, objects::CBioseq_Handle bsh, wxWindowID id=wxID_ANY, const wxString &caption=_("Edit History"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Edit History"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
Creation. More... | |
~CEditHistory () | |
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... | |
CRef< CCmdComposite > | GetCommand () |
![]() | |
virtual bool | Show (bool show=1) |
Report opening events in dialogs used in the editing package. More... | |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Private Attributes | |
objects::CBioseq_Handle | m_Bioseq |
CGrowableListCtrl * | m_IdListReplaces |
CGrowableListCtrl * | m_IdListReplacedBy |
wxCheckBox * | m_Deleted |
CFlexibleDatePanel * | m_DeletedDate |
CFlexibleDatePanel * | m_ReplacesDate |
CFlexibleDatePanel * | m_ReplacedByDate |
CEditHistory class declaration
Definition at line 62 of file edit_history.hpp.
CEditHistory::CEditHistory | ( | ) |
Constructors.
CEditHistory type definition
CEditHistory event table definition
CEditHistory constructors
Definition at line 82 of file edit_history.cpp.
References Init().
CEditHistory::CEditHistory | ( | wxWindow * | parent, |
objects::CBioseq_Handle | bsh, | ||
wxWindowID | id = wxID_ANY , |
||
const wxString & | caption = _("Edit History") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
CEditHistory::~CEditHistory | ( | ) |
bool CEditHistory::Create | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxString & | caption = _("Edit History") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Creation.
CEditHistory creator
Definition at line 101 of file edit_history.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
void CEditHistory::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CEditHistory
Definition at line 149 of file edit_history.cpp.
References _, CSerialObject::Assign(), CLabel::eContent, NStr::EqualCase(), CSeq_hist_Base::C_Deleted::GetBool(), CSeq_hist_Base::C_Deleted::GetDate(), CSeq_hist_rec_Base::GetDate(), CSeq_hist_Base::GetDeleted(), CSeq_hist_rec_Base::GetIds(), CLabel::GetLabel(), CSeq_hist_Base::GetReplaced_by(), CSeq_hist_Base::GetReplaces(), set< Key, Compare >::insert(), CSeq_hist_Base::C_Deleted::IsBool(), CSeq_hist_Base::C_Deleted::IsDate(), CSeq_hist_rec_Base::IsSetDate(), CSeq_hist_Base::IsSetDeleted(), CSeq_hist_rec_Base::IsSetIds(), CSeq_hist_Base::IsSetReplaced_by(), CSeq_hist_Base::IsSetReplaces(), label, m_Bioseq, m_Deleted, m_DeletedDate, m_IdListReplacedBy, m_IdListReplaces, m_ReplacedByDate, m_ReplacesDate, match(), NPOS, str(), ToWxString(), and wxID_ANY.
Referenced by Create().
wxBitmap CEditHistory::GetBitmapResource | ( | const wxString & | name | ) |
CRef< CCmdComposite > CEditHistory::GetCommand | ( | void | ) |
Definition at line 277 of file edit_history.cpp.
References CSerialObject::Assign(), cmd, CSeqdesc_Base::e_Genbank, set< Key, Compare >::end(), set< Key, Compare >::find(), CFlexibleDatePanel::GetDate(), CGB_block_Base::GetExtra_accessions(), CSeqdesc_Base::GetGenbank(), CGrowableListCtrl::GetItems(), CSeqdesc_CI::GetSeq_entry_Handle(), i, set< Key, Compare >::insert(), m_Bioseq, m_Deleted, m_DeletedDate, m_IdListReplacedBy, m_IdListReplaces, m_ReplacedByDate, m_ReplacesDate, CSeq_inst_Base::ResetHist(), CGB_block_Base::SetExtra_accessions(), CSeqdesc_Base::SetGenbank(), CSeq_inst_Base::SetHist(), and str().
Referenced by CSequenceEditingEventHandler::EditHistory(), and handler_eErr_SEQ_INST_HistoryGiCollision().
wxIcon CEditHistory::GetIconResource | ( | const wxString & | name | ) |
void CEditHistory::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 134 of file edit_history.cpp.
References m_Deleted, m_DeletedDate, m_IdListReplacedBy, m_IdListReplaces, m_ReplacedByDate, m_ReplacesDate, and NULL.
|
static |
|
private |
Definition at line 114 of file edit_history.hpp.
Referenced by CreateControls(), and GetCommand().
|
private |
Definition at line 117 of file edit_history.hpp.
Referenced by CreateControls(), GetCommand(), and Init().
|
private |
Definition at line 118 of file edit_history.hpp.
Referenced by CreateControls(), GetCommand(), and Init().
|
private |
Definition at line 116 of file edit_history.hpp.
Referenced by CreateControls(), GetCommand(), and Init().
|
private |
Definition at line 115 of file edit_history.hpp.
Referenced by CreateControls(), GetCommand(), and Init().
|
private |
Definition at line 120 of file edit_history.hpp.
Referenced by CreateControls(), GetCommand(), and Init().
|
private |
Definition at line 119 of file edit_history.hpp.
Referenced by CreateControls(), GetCommand(), and Init().