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);
|
|
|
|
|
|
|
|
int build (CustomBlockDef &def);
|
|
|
|
|
|
|
|
private:
|
|
|
|
GroupBox *buildToggleWidgets (GroupBlockDef &def, QString &defaultToggle);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // TOGGLEBLOCK_HPP
|