Public Member Functions | Private Attributes

BlockScopeWxApp Class Reference

#include <BlockScopeWxApp.h>

List of all members.

Public Member Functions

 BlockScopeWxApp ()
 ~BlockScopeWxApp ()

Private Attributes

bool mNeedToUninitialize

Detailed Description

Definition at line 5 of file BlockScopeWxApp.h.


Constructor & Destructor Documentation

BlockScopeWxApp::BlockScopeWxApp (  ) 

Definition at line 27 of file BlockScopeWxApp.cpp.

References mNeedToUninitialize.

{
  mNeedToUninitialize = false;
  if (wxApp::GetInstance()==0)
    {
      wxApp::SetInstance(new DummyWxApp);
      wxInitialize();
      mNeedToUninitialize = true;
    }
}

BlockScopeWxApp::~BlockScopeWxApp (  ) 

Definition at line 38 of file BlockScopeWxApp.cpp.

References mNeedToUninitialize.

{
  if (mNeedToUninitialize) wxUninitialize();
}


Member Data Documentation

Definition at line 11 of file BlockScopeWxApp.h.

Referenced by BlockScopeWxApp(), and ~BlockScopeWxApp().


The documentation for this class was generated from the following files: