Hugintrunk
0.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
hugin1
toolbox
ToolboxApp.h
Go to the documentation of this file.
1
// -*- c-basic-offset: 4 -*-
10
/*
11
* This is free software; you can redistribute it and/or
12
* modify it under the terms of the GNU General Public
13
* License as published by the Free Software Foundation; either
14
* version 2 of the License, or (at your option) any later version.
15
*
16
* This software is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* Lesser General Public License for more details.
20
*
21
* You should have received a copy of the GNU General Public
22
* License along with this software. If not, see
23
* <http://www.gnu.org/licenses/>.
24
*
25
*/
26
27
#ifndef TOOLBOXAPP_H
28
#define TOOLBOXAPP_H
29
30
#include "
ToolboxFrame.h
"
31
34
class
ToolboxApp
:
public
wxApp
35
{
36
public
:
37
virtual
bool
OnInit
();
38
#if wxUSE_ON_FATAL_EXCEPTION
39
virtual
void
OnFatalException() wxOVERRIDE;
40
#endif
41
43
wxLocale &
GetLocale
()
44
{
45
return
locale
;
46
}
48
const
wxString &
GetXRCPath
()
49
{
50
return
m_xrcPrefix
;
51
}
53
ToolboxFrame
*
GetToolboxFrame
()
54
{
55
return
m_frame
;
56
};
57
58
private
:
60
wxLocale
locale
;
61
wxString
m_xrcPrefix
;
62
ToolboxFrame
*
m_frame
;
63
};
64
65
DECLARE_APP(
ToolboxApp
)
66
67
#endif // TOOLBOXAPP_H
ToolboxApp::GetLocale
wxLocale & GetLocale()
return currently active locale
Definition:
ToolboxApp.h:43
ToolboxApp::locale
wxLocale locale
locale for internationalisation
Definition:
ToolboxApp.h:56
ToolboxApp::m_frame
ToolboxFrame * m_frame
Definition:
ToolboxApp.h:62
ToolboxApp::GetXRCPath
const wxString & GetXRCPath()
return the current xrc path
Definition:
ToolboxApp.h:48
ToolboxApp::m_xrcPrefix
wxString m_xrcPrefix
Definition:
ToolboxApp.h:61
ToolboxFrame.h
declaration of main frame class for toolbox GUI
ToolboxApp::GetToolboxFrame
ToolboxFrame * GetToolboxFrame()
returns pointer to main frame
Definition:
ToolboxApp.h:53
ToolboxApp::OnInit
virtual bool OnInit()
Definition:
ToolboxApp.cpp:46
ToolboxFrame
The main window frame.
Definition:
ToolboxFrame.h:42
ToolboxApp
The application class for toolbox app.
Definition:
ToolboxApp.h:34
Generated on Sun Sep 7 2025 01:25:42 for Hugintrunk by
1.8.5