OpenMW
apps/opencs/view/settings/customblock.hpp
Go to the documentation of this file.
00001 #ifndef CUSTOMBLOCK_HPP
00002 #define CUSTOMBLOCK_HPP
00003 
00004 #include "abstractblock.hpp"
00005 
00006 namespace CSVSettings
00007 {
00008 
00009     class ProxyBlock;
00010 
00013     class CustomBlock : public AbstractBlock
00014     {
00015 
00016     protected:
00017 
00018         GroupBlockList mGroupList;
00019 
00020     public:
00021 
00022         explicit CustomBlock (QWidget *parent = 0);
00023 
00025         bool updateSettings (const CSMSettings::SettingMap &settings);
00026 
00028         CSMSettings::SettingList *getSettings();
00029 
00031         int build (GroupBlockDefList &defList, GroupBlockDefList::Iterator *it = 0);
00032 
00033     protected:
00034 
00036         GroupBox *buildGroupBox (Orientation orientation);
00037 
00038     private:
00039 
00041         int buildGroupBlock(GroupBlockDef *def);
00042 
00044         int buildProxyBlock(GroupBlockDef *def, ProxyBlock *block);
00045     };
00046 }
00047 #endif // CUSTOMBLOCK_HPP