00001 00017 #ifndef GFXCFG_H 00018 #define GFXCFG_H 00019 00020 #include <Registry/Registry.h> 00021 #include <Configurable/CfgConfigurable.h> 00022 00023 #include <Midad/Util/Signals.h> 00024 00025 class GfxCfg : public CfgConfigurable 00026 { 00027 00028 public: 00029 00030 GfxCfg(); 00031 virtual ~GfxCfg(); 00032 00033 // Override CfgConfigurable 00034 virtual void Config(); 00035 00036 // Spawn a RegistryGui to set ourself 00037 virtual void GuiConfig(); 00038 00039 // Return the Registry of possible values for each config param. 00040 virtual const Registry& GetPossibles(); 00041 00042 // Set the Registry of possible values. Sub class should call 00043 // this setting the default or implement GetPossibles(). 00044 void SetPossibles(const Registry& reg); 00045 00046 SigC::Signal0<void> modified_signal; 00047 00048 private: 00049 00050 // copy constructor, assignment: 00051 GfxCfg(const GfxCfg& rhs); // copy constructor 00052 GfxCfg& operator=(const GfxCfg& rhs); // assignment 00053 00054 Registry fPossibles; 00055 }; // end of class GfxCfg 00056 00057 #endif // GFXCFG_H
1.3.9.1