00001
00002
00003
00004
00005
00006
00007
00008 #ifndef CFG_CONFIGEDITOR_H
00009 #define CFG_CONFIGEDITOR_H
00010 namespace cfg { class Config; }
00011
00012 namespace cfg {
00014
00027 class ConfigEditor {
00028 public:
00029 ConfigEditor(Config* config);
00030 virtual ~ConfigEditor();
00031
00034 virtual int EditConfig(Config& cfg);
00035
00036 void Apply();
00037 void Edit();
00038 void Reset();
00039 void Cancel();
00040
00041 private:
00042 bool fNewConfig;
00043 Config* fConfig;
00044 Config* fConfigCopy;
00045 };
00046 }
00047 #endif // CFGCONFIGEDITOR_H
00048