EditationWindowApplication.h

Go to the documentation of this file.
00001 
00011 #ifndef __EDITATIONWINDOWAPPLICATION__H__
00012 #define __EDITATIONWINDOWAPPLICATION__H__
00013 
00014 #include <wx/wx.h>
00015 
00016 #include "../common.h"
00017 #include "../Conversions.h"
00018 #include "../configs/ConfigApplication.h"
00019 #include "../gui/EditationWindowBase.h"
00020 
00021 // A part of the GUI
00022 namespace GUI {
00023 
00027 class EditationWindowApplication: public EditationWindowBase {
00029         enum {
00030                 ID_PalettePath = 12000,
00031                 ID_PalettePathText,
00032                 ID_HelpFilePath,
00033                 ID_HelpFilePathText,
00034         };
00035 
00036 public:
00037         // Event handlers
00038         virtual void OnOkButton(wxCommandEvent & event);
00039 
00040         DECLARE_EVENT_TABLE()
00041 
00042 public:
00049         EditationWindowApplication(wxWindow * parent,
00050                 ConfigApplication & editedConfig,
00051                 const string & windowTitle = "Application settings");
00052 
00053 protected:
00057         virtual void CreateBasicForm();
00058 
00063         virtual bool SaveConfig();
00064 
00068         string GetPalettePath() const {
00069                 assert(palettePath != 0);
00070                 return Conversions::wxString2string(palettePath->GetValue());
00071         }
00072 
00076         string GetHelpFilePath() const {
00077                 assert(helpFilePath != 0);
00078                 return Conversions::wxString2string(helpFilePath->GetValue());
00079         }
00080 
00081 private:
00083         ConfigApplication & config;
00084 
00086         wxTextCtrl * palettePath;
00088         wxTextCtrl * helpFilePath;
00089 };
00090 
00091 } /* namespace GUI */
00092 
00093 #endif /* #ifndef __EDITATIONWINDOWAPPLICATION__H__ */
00094 
00095 /* End of file EditationWindowApplication.h */

Generated on Sun Apr 29 11:46:10 2007 for IPP/ICP2007 by  doxygen 1.4.7