mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
101c147217
preference 1. Included updated status icons, added base.png 2. Added doxygen comments CSV / CSM Settings classes 3. Implemented Glorf's code for window size preference 4. Minor changes code that searches maps in CSV / CSM Settings classes 5. Removed CSVSettings::SamplePage class 6. Other minor code maintenance / improvements
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
#ifndef GROUPBLOCK_HPP
|
|
#define GROUPBLOCK_HPP
|
|
|
|
#include <QList>
|
|
#include "abstractblock.hpp"
|
|
|
|
namespace CSVSettings
|
|
{
|
|
class ItemBlock;
|
|
|
|
/// Base class for group blocks.
|
|
/// Derived block classes should use CustomBlock
|
|
class GroupBlock : public AbstractBlock
|
|
{
|
|
ItemBlockList mItemBlockList;
|
|
|
|
public:
|
|
GroupBlock (QWidget* parent = 0);
|
|
GroupBlock (bool isVisible, QWidget *parent = 0);
|
|
|
|
/// build the gorup block based on passed definition
|
|
int build (GroupBlockDef *def);
|
|
|
|
/// update settings local to the group block
|
|
bool updateSettings (const CSMSettings::SettingMap &settings);
|
|
|
|
/// retrieve setting list local to the group block
|
|
CSMSettings::SettingList *getSettings();
|
|
|
|
/// retrieve item block by name from the passed list or local list
|
|
ItemBlock *getItemBlock (const QString &name, ItemBlockList *blockList = 0);
|
|
|
|
/// retrieve the item block by index from the local list
|
|
ItemBlock *getItemBlock (int index);
|
|
|
|
protected:
|
|
|
|
/// create block layout based on passed definition
|
|
int buildLayout (GroupBlockDef &def);
|
|
|
|
};
|
|
}
|
|
#endif // GROUPBLOCK_HPP
|