OpenMW
apps/opencs/view/settings/groupblock.hpp
Go to the documentation of this file.
00001 #ifndef GROUPBLOCK_HPP
00002 #define GROUPBLOCK_HPP
00003 
00004 #include <QList>
00005 #include "abstractblock.hpp"
00006 
00007 namespace CSVSettings
00008 {
00009     class ItemBlock;
00010 
00013     class GroupBlock : public AbstractBlock
00014     {
00015         ItemBlockList mItemBlockList;
00016 
00017     public:
00018         GroupBlock (QWidget* parent = 0);
00019         GroupBlock (bool isVisible, QWidget *parent = 0);
00020 
00022         int build (GroupBlockDef *def);
00023 
00025         bool updateSettings (const CSMSettings::SettingMap &settings);
00026 
00028         CSMSettings::SettingList *getSettings();
00029 
00031         ItemBlock *getItemBlock (const QString &name, ItemBlockList *blockList = 0);
00032 
00034         ItemBlock *getItemBlock (int index);
00035 
00036     protected:
00037 
00039         int buildLayout (GroupBlockDef &def);
00040 
00041     };
00042 }
00043 #endif // GROUPBLOCK_HPP