LensCalApp.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00010 /*
00011  *  This is free software; you can redistribute it and/or
00012  *  modify it under the terms of the GNU General Public
00013  *  License as published by the Free Software Foundation; either
00014  *  version 2 of the License, or (at your option) any later version.
00015  *
00016  *  This software is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  *  Lesser General Public License for more details.
00020  *
00021  *  You should have received a copy of the GNU General Public
00022  *  License along with this software. If not, see
00023  *  <http://www.gnu.org/licenses/>.
00024  *
00025  */
00026 
00027 #ifndef LENSCALAPP_H
00028 #define LENSCALAPP_H
00029 
00030 #include <wx/wx.h>
00031 #include <huginapp/ImageCache.h>
00032 
00033 #include "LensCalFrame.h"
00034 
00036 void StoreFramePosition(wxTopLevelWindow * frame, const wxString & basename);
00038 void RestoreFramePosition(wxTopLevelWindow * frame, const wxString & basename);
00039 
00042 class LensCalApp : public wxApp
00043 {
00044 public:
00045     virtual bool OnInit();
00046 #if wxUSE_ON_FATAL_EXCEPTION
00047 #if wxCHECK_VERSION(3,1,0)
00048     virtual void OnFatalException() wxOVERRIDE;
00049 #else
00050     virtual void OnFatalException();
00051 #endif
00052 #endif
00053 
00055     wxLocale & GetLocale()
00056     {
00057         return locale;
00058     }
00060     const wxString & GetXRCPath()
00061     {
00062         return m_xrcPrefix;
00063     }
00065     LensCalFrame* GetLensCalFrame()
00066     {
00067         return m_frame;
00068     };
00069 
00070 private:
00072     wxLocale locale;
00073     wxString m_xrcPrefix;
00074     LensCalFrame* m_frame;
00075     DECLARE_EVENT_TABLE()
00076 };
00077 
00078 DECLARE_APP(LensCalApp)
00079 
00080 #endif // LENSCALAPP_H

Generated on 30 Aug 2015 for Hugintrunk by  doxygen 1.4.7