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
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
#ifndef CUSTOMBLOCK_HPP
|
|
#define CUSTOMBLOCK_HPP
|
|
|
|
#include "abstractblock.hpp"
|
|
|
|
namespace CSVSettings
|
|
{
|
|
|
|
class ProxyBlock;
|
|
|
|
/// Base class for customized user preference setting blocks
|
|
/// Special block classes should be derived from CustomBlock
|
|
class CustomBlock : public AbstractBlock
|
|
{
|
|
|
|
protected:
|
|
|
|
GroupBlockList mGroupList;
|
|
|
|
public:
|
|
|
|
explicit CustomBlock (QWidget *parent = 0);
|
|
|
|
/// Update settings local to the block
|
|
bool updateSettings (const CSMSettings::SettingMap &settings);
|
|
|
|
/// Retrieve settings local to the block
|
|
CSMSettings::SettingList *getSettings();
|
|
|
|
/// construct the block using the passed definition
|
|
int build (GroupBlockDefList &defList, GroupBlockDefList::Iterator *it = 0);
|
|
|
|
protected:
|
|
|
|
/// construct the block groupbox
|
|
GroupBox *buildGroupBox (Orientation orientation);
|
|
|
|
private:
|
|
|
|
/// Construction function for creating a standard GroupBlock child
|
|
int buildGroupBlock(GroupBlockDef *def);
|
|
|
|
/// Construction function for creating a standard ProxyBlock child
|
|
int buildProxyBlock(GroupBlockDef *def, ProxyBlock *block);
|
|
};
|
|
}
|
|
#endif // CUSTOMBLOCK_HPP
|