1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-12 03:36:32 +00:00
OpenMW/apps/opencs/view/settings/itemblock.hpp

39 lines
868 B
C++
Raw Normal View History

2013-05-08 01:36:34 +00:00
#ifndef ITEMBLOCK_HPP
#define ITEMBLOCK_HPP
#include "abstractblock.hpp"
namespace CSVSettings
2013-05-08 01:36:34 +00:00
{
class ItemBlock : public AbstractBlock
{
CSMSettings::SettingsItem *mSetting;
2013-05-08 01:36:34 +00:00
WidgetList mWidgetList;
public:
ItemBlock (QWidget* parent = 0);
bool updateSettings (const CSMSettings::SettingMap &settings) { return false; }
2013-05-08 01:36:34 +00:00
CSMSettings::SettingList *getSettings ();
2013-05-08 01:36:34 +00:00
QString getValue () const;
int getSettingCount();
bool update (const QString &value);
int build(SettingsItemDef &iDef);
private:
void buildItemBlock (SettingsItemDef& iDef);
void buildItemBlockWidgets (SettingsItemDef& iDef);
bool updateItem (const QString &);
bool updateBySignal (const QString &name, const QString &value, bool &doEmit);
};
}
#endif // ITEMBLOCK_HPP