NCBI C++ ToolKit
|
Search Toolkit Book for CFlatFileDemoDlg
#include "flat_file_demo_dlg.hpp"
(Private to src/gui/widgets/seq/demo
.)
Public Types | |
enum | { ID_HIT_MATRIX_DEMO_DLG = 10001 , ID_WINDOW = 10000 , ID_FILE = 10007 , ID_ACC_TEXT = 10004 , ID_ACC = 10005 , ID_BUTTON1 = 10002 } |
Control identifiers. More... | |
Public Member Functions | |
CFlatFileDemoDlg () | |
Constructors. More... | |
CFlatFileDemoDlg (wxWindow *parent, wxWindowID id=ID_HIT_MATRIX_DEMO_DLG, const wxString &caption=_("CFlatFileDemoDlg"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 368), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxMAXIMIZE_BOX|wxMINIMIZE_BOX) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_HIT_MATRIX_DEMO_DLG, const wxString &caption=_("CFlatFileDemoDlg"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 368), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxMAXIMIZE_BOX|wxMINIMIZE_BOX) |
Creation. More... | |
~CFlatFileDemoDlg () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnCloseWindow (wxCloseEvent &event) |
wxEVT_CLOSE_WINDOW event handler for ID_HIT_MATRIX_DEMO_DLG More... | |
void | OnLoadFileClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FILE More... | |
void | OnAccClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ACC More... | |
void | OnSaveText (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1 More... | |
void | OnCancelClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
wxStaticText * | m_LoadedStatus |
wxTextCtrl * | m_AccInput |
Private Attributes | |
CRef< CObjectManager > | m_ObjMgr |
CRef< CScope > | m_Scope |
CFlatFileDemoDlg class declaration
Definition at line 75 of file flat_file_demo_dlg.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_HIT_MATRIX_DEMO_DLG | |
ID_WINDOW | |
ID_FILE | |
ID_ACC_TEXT | |
ID_ACC | |
ID_BUTTON1 |
Definition at line 132 of file flat_file_demo_dlg.hpp.
CFlatFileDemoDlg::CFlatFileDemoDlg | ( | ) |
Constructors.
CFlatFileDemoDlg type definition
CFlatFileDemoDlg event table definition
CFlatFileDemoDlg constructors
Definition at line 101 of file flat_file_demo_dlg.cpp.
References Init().
CFlatFileDemoDlg::CFlatFileDemoDlg | ( | wxWindow * | parent, |
wxWindowID | id = ID_HIT_MATRIX_DEMO_DLG , |
||
const wxString & | caption = _("CFlatFileDemoDlg") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 368) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxMAXIMIZE_BOX|wxMINIMIZE_BOX |
||
) |
Definition at line 106 of file flat_file_demo_dlg.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CFlatFileDemoDlg::~CFlatFileDemoDlg | ( | ) |
bool CFlatFileDemoDlg::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_HIT_MATRIX_DEMO_DLG , |
||
const wxString & | caption = _("CFlatFileDemoDlg") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 368) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxMAXIMIZE_BOX|wxMINIMIZE_BOX |
||
) |
Creation.
CFlatFileDemoDlg creator
Definition at line 117 of file flat_file_demo_dlg.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CFlatFileDemoDlg().
void CFlatFileDemoDlg::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CFlatFileDemoDlg
Definition at line 170 of file flat_file_demo_dlg.cpp.
References _, ID_ACC, ID_ACC_TEXT, ID_BUTTON1, ID_FILE, ID_WINDOW, m_AccInput, m_LoadedStatus, ShowToolTips(), and wxT.
Referenced by Create().
wxBitmap CFlatFileDemoDlg::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 247 of file flat_file_demo_dlg.cpp.
wxIcon CFlatFileDemoDlg::GetIconResource | ( | const wxString & | name | ) |
void CFlatFileDemoDlg::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 149 of file flat_file_demo_dlg.cpp.
References CScope::AddDefaults(), CObjectManager::GetInstance(), m_AccInput, m_LoadedStatus, m_ObjMgr, m_Scope, NULL, CGBDataLoader::RegisterInObjectManager(), and CRef< C, Locker >::Reset().
Referenced by CFlatFileDemoDlg().
void CFlatFileDemoDlg::OnAccClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ACC
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ACC
Definition at line 273 of file flat_file_demo_dlg.cpp.
References _, CLabel::eDefault, CLabel::GetLabel(), CRef< C, Locker >::GetPointer(), ID_BUTTON1, ID_WINDOW, CTextPanel::InitWidget(), label, m_AccInput, m_LoadedStatus, m_Scope, msg(), ToStdString(), and ToWxString().
void CFlatFileDemoDlg::OnCancelClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
wxEVT_CLOSE_WINDOW event handler for ID_HIT_MATRIX_DEMO_DLG
Definition at line 368 of file flat_file_demo_dlg.cpp.
void CFlatFileDemoDlg::OnCloseWindow | ( | wxCloseEvent & | event | ) |
wxEVT_CLOSE_WINDOW event handler for ID_HIT_MATRIX_DEMO_DLG
wxEVT_CLOSE_WINDOW event handler for ID_HIT_MATRIX_DEMO_DLG
Definition at line 378 of file flat_file_demo_dlg.cpp.
void CFlatFileDemoDlg::OnLoadFileClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FILE
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FILE
Definition at line 316 of file flat_file_demo_dlg.cpp.
References _, CScope::AddBioseq(), CScope::AddTopLevelSeqEntry(), CTypeInfo::Create(), Error(), eSerial_AsnText, CClassTypeInfoBase::GetClassInfoByName(), CException::GetMsg(), CRef< C, Locker >::GetPointer(), ID_BUTTON1, ID_WINDOW, CTextPanel::InitWidget(), LOG_POST, m_LoadedStatus, m_Scope, CObjectIStream::Open(), CException::ReportAll(), CRef< C, Locker >::Reset(), and ToWxString().
void CFlatFileDemoDlg::OnSaveText | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1
Definition at line 387 of file flat_file_demo_dlg.cpp.
References _, CTextItemPanel::GetContext(), ITextItem::GetItemBlock(), CTextItemPanel::GetRootItem(), ITextItem::GetText(), CTextPanel::GetWidget(), and ID_WINDOW.
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 238 of file flat_file_demo_dlg.cpp.
Referenced by CreateControls().
wxTextCtrl* CFlatFileDemoDlg::m_AccInput |
Definition at line 130 of file flat_file_demo_dlg.hpp.
Referenced by CreateControls(), Init(), and OnAccClick().
wxStaticText* CFlatFileDemoDlg::m_LoadedStatus |
Definition at line 129 of file flat_file_demo_dlg.hpp.
Referenced by CreateControls(), Init(), OnAccClick(), and OnLoadFileClick().
|
private |
Definition at line 143 of file flat_file_demo_dlg.hpp.
Referenced by Init().
Definition at line 144 of file flat_file_demo_dlg.hpp.
Referenced by Init(), OnAccClick(), and OnLoadFileClick().