OpenMW
|
00001 #ifndef ITEMBLOCK_HPP 00002 #define ITEMBLOCK_HPP 00003 00004 #include "abstractblock.hpp" 00005 00006 namespace CSVSettings 00007 { 00008 00009 class ItemBlock : public AbstractBlock 00010 { 00011 CSMSettings::SettingsItem *mSetting; 00012 WidgetList mWidgetList; 00013 00014 public: 00015 00016 ItemBlock (QWidget* parent = 0); 00017 00019 bool updateSettings (const CSMSettings::SettingMap &settings) { return false; } 00020 00021 CSMSettings::SettingList *getSettings (); 00022 00023 QString getValue () const; 00024 00026 int getSettingCount(); 00027 00029 bool update (const QString &value); 00030 00032 int build(SettingsItemDef &iDef); 00033 00034 private: 00035 00037 void buildItemBlock (SettingsItemDef& iDef); 00038 void buildItemBlockWidgets (SettingsItemDef& iDef); 00039 00041 bool updateItem (const QString &); 00042 00044 bool updateBySignal (const QString &name, const QString &value, bool &doEmit); 00045 }; 00046 } 00047 00048 #endif // ITEMBLOCK_HPP