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