NCBI C++ ToolKit
|
Search Toolkit Book for CCDSExceptionPanel
#include "cds_exception_panel.hpp"
(Private to src/gui/widgets/edit
.)
Public Types | |
enum | { ID_CCDSEXCEPTIONPANEL = 10103 , ID_SCROLLEDWINDOW4 = 10102 } |
Control identifiers. More... | |
Public Member Functions | |
CCDSExceptionPanel () | |
Constructors. More... | |
CCDSExceptionPanel (wxWindow *parent, objects::CSeq_feat &feat, objects::CScope &scope, wxWindowID id=ID_CCDSEXCEPTIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CCDSEXCEPTIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CCDSExceptionPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
virtual bool | TransferDataToWindow () |
virtual bool | TransferDataFromWindow () |
void | SetExceptions (objects::CCdregion &cds) |
virtual void | OnChildChange (wxWindow *wnd) |
void | OnDelete (wxHyperlinkEvent &event) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
![]() | |
virtual void | NotifyParentOfChange () |
virtual void | GetDimensions (int *width, int *height) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
![]() | |
static void | RemoveRepresentedQuals (objects::CSeq_feat &feat, const string &qual_name) |
Public Attributes | |
wxBoxSizer * | m_LabelSizer |
wxScrolledWindow * | m_ScrolledWindow |
wxFlexGridSizer * | m_Sizer |
Private Member Functions | |
void | x_AddRow (CRef< objects::CCode_break > code_break) |
int | x_FindRow (wxWindow *wnd, wxSizerItemList &itemList) |
Private Attributes | |
objects::CScope * | m_Scope |
CRef< objects::CSeq_feat > | m_EditedFeat |
Additional Inherited Members | |
![]() | |
virtual void | x_AdjustForControl (CQualListItemPanel *panel, wxHyperlinkCtrl *itemHyperlinkCtrl) |
![]() | |
int | m_TotalHeight |
int | m_TotalWidth |
int | m_ScrollRate |
int | m_MinHeight |
int | m_MinWidth |
int | m_NumRows |
bool | m_AllowUpdates |
CCDSExceptionPanel class declaration
Definition at line 77 of file cds_exception_panel.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CCDSEXCEPTIONPANEL | |
ID_SCROLLEDWINDOW4 |
Definition at line 134 of file cds_exception_panel.hpp.
CCDSExceptionPanel::CCDSExceptionPanel | ( | ) |
Constructors.
CCDSExceptionPanel type definition
CCDSExceptionPanel event table definition
CCDSExceptionPanel constructors
Definition at line 70 of file cds_exception_panel.cpp.
References Init().
CCDSExceptionPanel::CCDSExceptionPanel | ( | wxWindow * | parent, |
objects::CSeq_feat & | feat, | ||
objects::CScope & | scope, | ||
wxWindowID | id = ID_CCDSEXCEPTIONPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
CCDSExceptionPanel::~CCDSExceptionPanel | ( | ) |
bool CCDSExceptionPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CCDSEXCEPTIONPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CCDSExceptionPanel creator
Definition at line 92 of file cds_exception_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
void CCDSExceptionPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CCDSExceptionPanel
Definition at line 137 of file cds_exception_panel.cpp.
References _, ID_SCROLLEDWINDOW4, m_LabelSizer, CQualListItemPanel::m_MinHeight, CQualListItemPanel::m_MinWidth, m_ScrolledWindow, CQualListItemPanel::m_ScrollRate, m_Sizer, CQualListItemPanel::m_TotalHeight, and CQualListItemPanel::m_TotalWidth.
Referenced by Create().
wxBitmap CCDSExceptionPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 361 of file cds_exception_panel.cpp.
wxIcon CCDSExceptionPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Get icon resources
Definition at line 374 of file cds_exception_panel.cpp.
void CCDSExceptionPanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 123 of file cds_exception_panel.cpp.
References m_LabelSizer, m_ScrolledWindow, m_Sizer, and NULL.
|
virtual |
Reimplemented from CQualListItemPanel.
Definition at line 333 of file cds_exception_panel.cpp.
References CQualListItemPanel::m_AllowUpdates, m_Sizer, TransferDataFromWindow(), and TransferDataToWindow().
void CCDSExceptionPanel::OnDelete | ( | wxHyperlinkEvent & | event | ) |
Definition at line 405 of file cds_exception_panel.cpp.
References CCdregion_Base::IsSetCode_break(), m_EditedFeat, m_Sizer, NULL, row, CCdregion_Base::SetCode_break(), TransferDataFromWindow(), TransferDataToWindow(), and x_FindRow().
void CCDSExceptionPanel::SetExceptions | ( | objects::CCdregion & | cds | ) |
Definition at line 313 of file cds_exception_panel.cpp.
References CSerialObject::Assign(), CCode_break_Base::C_Aa::e_not_set, CSeq_loc_Base::e_not_set, CCdregion_Base::IsSetCode_break(), m_EditedFeat, and CCdregion_Base::SetCode_break().
Referenced by CCDSTranslationPanel::AdjustForStopCodonHyperlinkClicked(), CCDSTranslationPanel::Retranslate(), and CEditObjectSeq_feat::x_SetTranslExcept().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 352 of file cds_exception_panel.cpp.
|
virtual |
Definition at line 291 of file cds_exception_panel.cpp.
References m_EditedFeat, m_Sizer, CCdregion_Base::ResetCode_break(), row, and CCdregion_Base::SetCode_break().
Referenced by CCDSTranslationPanel::AdjustForStopCodonHyperlinkClicked(), OnChildChange(), OnDelete(), and CCDSTranslationPanel::Retranslate().
|
virtual |
Definition at line 205 of file cds_exception_panel.cpp.
References CCdregion_Base::IsSetCode_break(), CQualListItemPanel::m_AllowUpdates, m_EditedFeat, m_ScrolledWindow, CQualListItemPanel::m_ScrollRate, m_Sizer, CQualListItemPanel::m_TotalHeight, CQualListItemPanel::m_TotalWidth, NULL, s_IsEmpty(), CCdregion_Base::SetCode_break(), CSingleCDSExceptionPanel::SetCodeBreak(), CSingleCDSExceptionPanel::TransferDataToWindow(), and x_AddRow().
Referenced by OnChildChange(), and OnDelete().
|
private |
Definition at line 177 of file cds_exception_panel.cpp.
References m_EditedFeat, m_Scope, m_ScrolledWindow, m_Sizer, row, wxID_ANY, wxT, and CQualListItemPanel::x_AdjustForControl().
Referenced by TransferDataToWindow().
|
private |
|
private |
Definition at line 141 of file cds_exception_panel.hpp.
Referenced by OnDelete(), SetExceptions(), TransferDataFromWindow(), TransferDataToWindow(), and x_AddRow().
wxBoxSizer* CCDSExceptionPanel::m_LabelSizer |
Definition at line 130 of file cds_exception_panel.hpp.
Referenced by CreateControls(), and Init().
|
private |
Definition at line 140 of file cds_exception_panel.hpp.
Referenced by x_AddRow().
wxScrolledWindow* CCDSExceptionPanel::m_ScrolledWindow |
Definition at line 131 of file cds_exception_panel.hpp.
Referenced by CreateControls(), Init(), TransferDataToWindow(), and x_AddRow().
wxFlexGridSizer* CCDSExceptionPanel::m_Sizer |
Definition at line 132 of file cds_exception_panel.hpp.
Referenced by CreateControls(), Init(), OnChildChange(), OnDelete(), TransferDataFromWindow(), TransferDataToWindow(), and x_AddRow().