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, write to the Free Software
00023  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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 
00048     wxLocale & GetLocale()
00049     {
00050         return locale;
00051     }
00053     const wxString & GetXRCPath()
00054     {
00055         return m_xrcPrefix;
00056     }
00058     LensCalFrame* GetLensCalFrame()
00059     {
00060         return m_frame;
00061     };
00062 
00063 private:
00065     wxLocale locale;
00066     wxString m_xrcPrefix;
00067     LensCalFrame* m_frame;
00068     DECLARE_EVENT_TABLE()
00069 };
00070 
00071 DECLARE_APP(LensCalApp)
00072 
00073 #endif // LENSCALAPP_H

Generated on 25 Oct 2014 for Hugintrunk by  doxygen 1.4.7