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

Search Toolkit Book for CTaxTreeTestDlg

#include "taxtree_testdlg.hpp"
(Private to src/gui/widgets/tax_tree/demo.)

+ Inheritance diagram for CTaxTreeTestDlg:
+ Collaboration diagram for CTaxTreeTestDlg:

Public Types

enum  {
  ID_CTAXTREETESTDLG = 10000 , ID_TEXTCTRL1 = 10001 , ID_BUTTON1 = 10002 , ID_BUTTON2 = 10003 ,
  ID_TREECTRL = 10005
}
 Control identifiers. More...
 

Public Member Functions

 CTaxTreeTestDlg ()
 Constructors. More...
 
 CTaxTreeTestDlg (wxWindow *parent, wxWindowID id=ID_CTAXTREETESTDLG, const wxString &caption=_("Taxonomy Tree Test Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CTAXTREETESTDLG, const wxString &caption=_("Taxonomy Tree Test Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CTaxTreeTestDlg ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void OnSubmitClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1 More...
 
void OnRelatedClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON2 More...
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
objects::CEntrez2Client & x_GetClient ()
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 

Public Attributes

wxTextCtrl * m_Input
 
CTaxTreeBrowserm_Tree
 
CRef< objects::CEntrez2Client > m_Client
 
CRef< objects::CObjectManager > m_ObjMgr
 
CRef< objects::CScope > m_Scope
 
CRef< CTaxTreeDataSourcem_DataSource
 

Detailed Description

CTaxTreeTestDlg class declaration

Definition at line 73 of file taxtree_testdlg.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CTAXTREETESTDLG 
ID_TEXTCTRL1 
ID_BUTTON1 
ID_BUTTON2 
ID_TREECTRL 

Definition at line 121 of file taxtree_testdlg.hpp.

Constructor & Destructor Documentation

◆ CTaxTreeTestDlg() [1/2]

CTaxTreeTestDlg::CTaxTreeTestDlg ( )

Constructors.

CTaxTreeTestDlg type definition

CTaxTreeTestDlg event table definition

CTaxTreeTestDlg constructors

Definition at line 102 of file taxtree_testdlg.cpp.

References Init().

◆ CTaxTreeTestDlg() [2/2]

CTaxTreeTestDlg::CTaxTreeTestDlg ( wxWindow *  parent,
wxWindowID  id = ID_CTAXTREETESTDLG,
const wxString &  caption = _("Taxonomy Tree Test Dialog"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Definition at line 107 of file taxtree_testdlg.cpp.

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

◆ ~CTaxTreeTestDlg()

CTaxTreeTestDlg::~CTaxTreeTestDlg ( )

Destructor.

CTaxTreeTestDlg destructor

Definition at line 139 of file taxtree_testdlg.cpp.

Member Function Documentation

◆ Create()

bool CTaxTreeTestDlg::Create ( wxWindow *  parent,
wxWindowID  id = ID_CTAXTREETESTDLG,
const wxString &  caption = _("Taxonomy Tree Test Dialog"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Creation.

CTaxTreeTestDlg creator

Definition at line 118 of file taxtree_testdlg.cpp.

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

Referenced by CTaxTreeTestDlg().

◆ CreateControls()

void CTaxTreeTestDlg::CreateControls ( )

Creates the controls and sizers.

Control creation for CTaxTreeTestDlg

Definition at line 163 of file taxtree_testdlg.cpp.

References _, ID_BUTTON1, ID_BUTTON2, ID_TEXTCTRL1, ID_TREECTRL, m_Input, and m_Tree.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CTaxTreeTestDlg::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 217 of file taxtree_testdlg.cpp.

◆ GetIconResource()

wxIcon CTaxTreeTestDlg::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 230 of file taxtree_testdlg.cpp.

◆ Init()

void CTaxTreeTestDlg::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 150 of file taxtree_testdlg.cpp.

References m_Input, m_Tree, and NULL.

Referenced by CTaxTreeTestDlg().

◆ OnRelatedClick()

void CTaxTreeTestDlg::OnRelatedClick ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON2

Definition at line 314 of file taxtree_testdlg.cpp.

References CTaxTreeBrowser::GetSelectedUids(), GI_TO, m_Tree, NcbiMessageBox(), NStr::NumericToString(), and x_GetClient().

◆ OnSubmitClick()

void CTaxTreeTestDlg::OnSubmitClick ( wxCommandEvent &  event)

◆ ShowToolTips()

bool CTaxTreeTestDlg::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 208 of file taxtree_testdlg.cpp.

◆ x_GetClient()

CEntrez2Client & CTaxTreeTestDlg::x_GetClient ( )

Definition at line 336 of file taxtree_testdlg.cpp.

References m_Client, and CRef< C, Locker >::Reset().

Referenced by OnRelatedClick(), and OnSubmitClick().

Member Data Documentation

◆ m_Client

CRef<objects::CEntrez2Client> CTaxTreeTestDlg::m_Client

Definition at line 129 of file taxtree_testdlg.hpp.

Referenced by x_GetClient().

◆ m_DataSource

CRef<CTaxTreeDataSource> CTaxTreeTestDlg::m_DataSource

Definition at line 132 of file taxtree_testdlg.hpp.

Referenced by OnSubmitClick().

◆ m_Input

wxTextCtrl* CTaxTreeTestDlg::m_Input

Definition at line 118 of file taxtree_testdlg.hpp.

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

◆ m_ObjMgr

CRef<objects::CObjectManager> CTaxTreeTestDlg::m_ObjMgr

Definition at line 130 of file taxtree_testdlg.hpp.

Referenced by OnSubmitClick().

◆ m_Scope

CRef<objects::CScope> CTaxTreeTestDlg::m_Scope

Definition at line 131 of file taxtree_testdlg.hpp.

Referenced by OnSubmitClick().

◆ m_Tree

CTaxTreeBrowser* CTaxTreeTestDlg::m_Tree

Definition at line 119 of file taxtree_testdlg.hpp.

Referenced by CreateControls(), Init(), OnRelatedClick(), and OnSubmitClick().


The documentation for this class was generated from the following files:
Modified on Fri Jun 07 13:36:38 2024 by modify_doxy.py rev. 669887