forked from teamnwah/openmw-tes3coop
a8b45e0a13
1. Declared QStringPair::isEmpty() const 2. Split the CsSettings namespace into two: CSMSettings and CSVSettings. (Required splitting the support.hpp file) 3. Declared several classes as _noqt in CMakeLists.txt for OpenCS
32 lines
731 B
C++
32 lines
731 B
C++
#ifndef GROUPBLOCK_HPP
|
|
#define GROUPBLOCK_HPP
|
|
|
|
#include <QList>
|
|
#include "abstractblock.hpp"
|
|
|
|
namespace CSVSettings
|
|
{
|
|
class ItemBlock;
|
|
|
|
class GroupBlock : public AbstractBlock
|
|
{
|
|
ItemBlockList mItemBlockList;
|
|
|
|
public:
|
|
GroupBlock (QWidget* parent = 0);
|
|
GroupBlock (bool isVisible, QWidget *parent = 0);
|
|
|
|
int build (GroupBlockDef &def);
|
|
|
|
bool updateSettings (const CSMSettings::SettingMap &settings);
|
|
|
|
CSMSettings::SettingList *getSettings();
|
|
ItemBlock *getItemBlock (const QString &name, ItemBlockList *blockList = 0);
|
|
ItemBlock *getItemBlock (int index);
|
|
|
|
protected:
|
|
int buildLayout (GroupBlockDef &def);
|
|
|
|
};
|
|
}
|
|
#endif // GROUPBLOCK_HPP
|