forked from teamnwah/openmw-tes3coop
700d55f1fb
Implemented updating editor application from preferences menu, loading settings when editor loads, adding Record Status Display prefernce. Fixed multiple bugs, made changes to CSM(V)Settings classes to make implementing new prefrences easier. Rewrote CSMSettings::UserSettings to retain last-loaded settings. Adjusted icon position in Record Status column Capitalized status text Added delegate to referenceables table
27 lines
496 B
C++
27 lines
496 B
C++
#ifndef TOGGLEBLOCK_HPP
|
|
#define TOGGLEBLOCK_HPP
|
|
|
|
#include <QObject>
|
|
|
|
#include "customblock.hpp"
|
|
|
|
namespace CSVSettings
|
|
{
|
|
class GroupBlock;
|
|
class GroupBox;
|
|
class ToggleWidget;
|
|
class ItemBlock;
|
|
|
|
class ToggleBlock : public CustomBlock
|
|
{
|
|
|
|
public:
|
|
explicit ToggleBlock(QWidget *parent = 0);
|
|
|
|
int build (CustomBlockDef *def);
|
|
|
|
private:
|
|
GroupBox *buildToggleWidgets (GroupBlockDef *def, QString &defaultToggle);
|
|
};
|
|
}
|
|
#endif // TOGGLEBLOCK_HPP
|