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

Search Toolkit Book for CFlatFileDemoDlg

#include "flat_file_demo_dlg.hpp"
(Private to src/gui/widgets/seq/demo.)

+ Inheritance diagram for CFlatFileDemoDlg:
+ Collaboration diagram for CFlatFileDemoDlg:

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< CObjectManagerm_ObjMgr
 
CRef< CScopem_Scope
 

Detailed Description

CFlatFileDemoDlg class declaration

Definition at line 75 of file flat_file_demo_dlg.hpp.

Member Enumeration Documentation

◆ anonymous enum

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.

Constructor & Destructor Documentation

◆ CFlatFileDemoDlg() [1/2]

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() [2/2]

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 
)

◆ ~CFlatFileDemoDlg()

CFlatFileDemoDlg::~CFlatFileDemoDlg ( )

Destructor.

CFlatFileDemoDlg destructor

Definition at line 138 of file flat_file_demo_dlg.cpp.

Member Function Documentation

◆ Create()

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().

◆ CreateControls()

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().

◆ GetBitmapResource()

wxBitmap CFlatFileDemoDlg::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 247 of file flat_file_demo_dlg.cpp.

◆ GetIconResource()

wxIcon CFlatFileDemoDlg::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 260 of file flat_file_demo_dlg.cpp.

◆ Init()

void CFlatFileDemoDlg::Init ( void  )

◆ OnAccClick()

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().

◆ OnCancelClick()

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.

◆ OnCloseWindow()

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.

◆ OnLoadFileClick()

void CFlatFileDemoDlg::OnLoadFileClick ( wxCommandEvent &  event)

◆ OnSaveText()

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.

◆ ShowToolTips()

bool CFlatFileDemoDlg::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 238 of file flat_file_demo_dlg.cpp.

Referenced by CreateControls().

Member Data Documentation

◆ m_AccInput

wxTextCtrl* CFlatFileDemoDlg::m_AccInput

Definition at line 130 of file flat_file_demo_dlg.hpp.

Referenced by CreateControls(), Init(), and OnAccClick().

◆ m_LoadedStatus

wxStaticText* CFlatFileDemoDlg::m_LoadedStatus

Definition at line 129 of file flat_file_demo_dlg.hpp.

Referenced by CreateControls(), Init(), OnAccClick(), and OnLoadFileClick().

◆ m_ObjMgr

CRef<CObjectManager> CFlatFileDemoDlg::m_ObjMgr
private

Definition at line 143 of file flat_file_demo_dlg.hpp.

Referenced by Init().

◆ m_Scope

CRef<CScope> CFlatFileDemoDlg::m_Scope
private

Definition at line 144 of file flat_file_demo_dlg.hpp.

Referenced by Init(), OnAccClick(), and OnLoadFileClick().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:10 2024 by modify_doxy.py rev. 669887