2013-05-08 01:36:34 +00:00
|
|
|
#ifndef TOGGLEBLOCK_HPP
|
|
|
|
#define TOGGLEBLOCK_HPP
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "customblock.hpp"
|
|
|
|
|
2013-05-11 10:55:46 +00:00
|
|
|
namespace CSVSettings
|
2013-05-08 01:36:34 +00:00
|
|
|
{
|
|
|
|
class GroupBlock;
|
|
|
|
class GroupBox;
|
|
|
|
class ToggleWidget;
|
|
|
|
class ItemBlock;
|
|
|
|
|
|
|
|
class ToggleBlock : public CustomBlock
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ToggleBlock(QWidget *parent = 0);
|
|
|
|
|
2013-06-15 11:40:18 +00:00
|
|
|
int build (CustomBlockDef *def);
|
2013-05-08 01:36:34 +00:00
|
|
|
|
|
|
|
private:
|
2013-06-20 23:06:25 +00:00
|
|
|
/// Constructor for toggle widgets that are specific to toggle block
|
|
|
|
/// Widgets are not a part of the user preference settings
|
2013-06-15 11:40:18 +00:00
|
|
|
GroupBox *buildToggleWidgets (GroupBlockDef *def, QString &defaultToggle);
|
2013-05-08 01:36:34 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // TOGGLEBLOCK_HPP
|