CWGLDemoApp Class Reference

Search Toolkit Book for CWGLDemoApp

Inheritance diagram for CWGLDemoApp:

Inheritance graph
[legend]
Collaboration diagram for CWGLDemoApp:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 64 of file w_gl_demo.cpp.

Public Member Functions

virtual void Init (void)
 Event Map.
virtual int Run (void)
 Run the application.
virtual void Exit (void)
 Cleanup on application exit.
 DECLARE_EVENT_MAP ()
void OnExit ()

Protected Member Functions

void x_Create ()
void x_Destroy ()

Protected Attributes

CRef< CResourceManager > m_ResourceManager
auto_ptr< CFrameWindow > m_Frame
auto_ptr< CDemoControlsClientm_Client
auto_ptr< CRulerDemoGroupm_RulerGroup


Member Function Documentation

CWGLDemoApp::DECLARE_EVENT_MAP  ) 
 

void CWGLDemoApp::Exit void   )  [virtual]
 

Cleanup on application exit.

Perform cleanup before exiting. The default behavior of this is "do nothing". If you have special cleanup logic that needs to be performed, then you must override this method with your own logic.

Reimplemented from CNcbiApplication.

Definition at line 128 of file w_gl_demo.cpp.

References SetDiagStream().

void CWGLDemoApp::Init void   )  [virtual]
 

Event Map.

Reimplemented from CNcbiApplication.

Definition at line 103 of file w_gl_demo.cpp.

References auto_ptr< X >::release().

void CWGLDemoApp::OnExit  ) 
 

Definition at line 175 of file w_gl_demo.cpp.

References m_Frame.

int CWGLDemoApp::Run void   )  [virtual]
 

Run the application.

It is defined as a pure virtual method -- so you must(!) supply the Run() method to implement the application-specific logic.

Returns:
Exit code.

Implements CNcbiApplication.

Definition at line 112 of file w_gl_demo.cpp.

References m_Frame, m_RulerGroup, x_Create(), and x_Destroy().

void CWGLDemoApp::x_Create void   )  [protected]
 

create backbone of top-level menu

add Client and merge client menus

Definition at line 134 of file w_gl_demo.cpp.

References CreateMenuItems(), auto_ptr< X >::get(), m_Client, m_Frame, m_ResourceManager, m_RulerGroup, and auto_ptr< X >::reset().

Referenced by Run().

void CWGLDemoApp::x_Destroy  )  [protected]
 

Definition at line 169 of file w_gl_demo.cpp.

References m_Frame.

Referenced by Run().


Member Data Documentation

auto_ptr<CDemoControlsClient> CWGLDemoApp::m_Client [protected]
 

Definition at line 83 of file w_gl_demo.cpp.

Referenced by x_Create().

auto_ptr<CFrameWindow> CWGLDemoApp::m_Frame [protected]
 

Definition at line 82 of file w_gl_demo.cpp.

Referenced by OnExit(), Run(), x_Create(), and x_Destroy().

CRef<CResourceManager> CWGLDemoApp::m_ResourceManager [protected]
 

Definition at line 81 of file w_gl_demo.cpp.

Referenced by x_Create().

auto_ptr<CRulerDemoGroup> CWGLDemoApp::m_RulerGroup [protected]
 

Definition at line 85 of file w_gl_demo.cpp.

Referenced by Run(), and x_Create().


The documentation for this class was generated from the following file:
Generated on Mon Dec 7 15:19:45 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:21 2009 by modify_doxy.py rev. 173732