Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LensCalApp.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 LENSCALAPP_H
28 #define LENSCALAPP_H
29 
30 #include <wx/wx.h>
31 #include <huginapp/ImageCache.h>
32 
33 #include "LensCalFrame.h"
34 
36 void StoreFramePosition(wxTopLevelWindow * frame, const wxString & basename);
38 void RestoreFramePosition(wxTopLevelWindow * frame, const wxString & basename);
39 
42 class LensCalApp : public wxApp
43 {
44 public:
45  virtual bool OnInit();
46 #if wxUSE_ON_FATAL_EXCEPTION
47 #if wxCHECK_VERSION(3,1,0)
48  virtual void OnFatalException() wxOVERRIDE;
49 #else
50  virtual void OnFatalException();
51 #endif
52 #endif
53 
55  wxLocale & GetLocale()
56  {
57  return locale;
58  }
60  const wxString & GetXRCPath()
61  {
62  return m_xrcPrefix;
63  }
66  {
67  return m_frame;
68  };
69 
70 private:
72  wxLocale locale;
73  wxString m_xrcPrefix;
75  DECLARE_EVENT_TABLE()
76 };
77 
78 DECLARE_APP(LensCalApp)
79 
80 #endif // LENSCALAPP_H
LensCalFrame * m_frame
Definition: LensCalApp.h:74
The main window frame.
Definition: LensCalFrame.h:56
wxLocale & GetLocale()
return currently active locale
Definition: LensCalApp.h:55
declaration of LensCal main frame class
LensCalFrame * GetLensCalFrame()
returns pointer to main frame
Definition: LensCalApp.h:65
const wxString & GetXRCPath()
return the current xrc path
Definition: LensCalApp.h:60
void StoreFramePosition(wxTopLevelWindow *frame, const wxString &basename)
Store window size and position in configfile/registry.
Definition: LensCalApp.cpp:212
virtual bool OnInit()
Definition: LensCalApp.cpp:49
void RestoreFramePosition(wxTopLevelWindow *frame, const wxString &basename)
Restore window size and position from configfile/registry.
Definition: LensCalApp.cpp:158
wxLocale locale
locale for internationalisation
Definition: LensCalApp.h:68
The application class for lens_calibrate_gui .
Definition: LensCalApp.h:42
wxString m_xrcPrefix
Definition: LensCalApp.h:73