summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard/inputbool.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-12-06 16:00:07 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-12-06 16:00:07 (GMT)
commit752d21c112291e2a2e3bfa82a915b3c091965bfb (patch)
tree76ffc77ee3c3548adca2711a1ad2ba2d0595ae70 /addon/doxywizard/inputbool.h
parentb35a84b39214af8340a75ea086df299a2c3343e3 (diff)
downloadDoxygen-752d21c112291e2a2e3bfa82a915b3c091965bfb.zip
Doxygen-752d21c112291e2a2e3bfa82a915b3c091965bfb.tar.gz
Doxygen-752d21c112291e2a2e3bfa82a915b3c091965bfb.tar.bz2
Release-1.5.7.1-20081206
Diffstat (limited to 'addon/doxywizard/inputbool.h')
-rw-r--r--addon/doxywizard/inputbool.h52
1 files changed, 36 insertions, 16 deletions
diff --git a/addon/doxywizard/inputbool.h b/addon/doxywizard/inputbool.h
index 3101551..5ec8998 100644
--- a/addon/doxywizard/inputbool.h
+++ b/addon/doxywizard/inputbool.h
@@ -2,7 +2,7 @@
*
*
*
- * Copyright (C) 1997-2008 by Dimitri van Heesch.
+ * Copyright (C) 1997-2007 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
@@ -15,35 +15,55 @@
#ifndef _INPUTBOOL_H
#define _INPUTBOOL_H
-#include <qwidget.h>
-#include <qcheckbox.h>
-
#include "input.h"
+#include <QObject>
-class PageWidget;
+class QCheckBox;
+class QGridLayout;
+class QLabel;
-class InputBool : public QWidget, /*QCheckBox,*/ public IInput
+class InputBool : public QObject, public Input
{
Q_OBJECT
public:
- InputBool( const QString &text, QWidget *parent, bool &flag );
- ~InputBool(){};
- void init();
- void setEnabled(bool b) { cb->setEnabled(b); }
- QObject *qobject() { return this; }
- bool getState() const { return state; }
+ InputBool(QGridLayout *layout,int &row,const QString &id,
+ bool enabled, const QString &docs );
+
+ // Input
+ QVariant &value();
+ void update();
+ Kind kind() const { return Bool; }
+ QString docs() const { return m_docs; }
+ QString id() const { return m_id; }
+ void addDependency(Input *option) { m_dependencies+=option; }
+ void setEnabled(bool);
+ void updateDependencies();
+ void writeValue(QTextStream &t,QTextCodec *codec);
+
+ public slots:
+ void reset();
+ void setValue(bool);
signals:
void changed();
- void toggle(const char *,bool);
+ void toggle(QString,bool);
+ void showHelp(Input *);
private slots:
- void setState(bool);
+ void help();
private:
- bool &state;
- QCheckBox *cb;
+ void updateDefault();
+ bool m_state;
+ bool m_default;
+ bool m_enabled;
+ QVariant m_value;
+ QCheckBox *m_cb;
+ QString m_docs;
+ QList<Input*> m_dependencies;
+ QString m_id;
+ QLabel *m_lab;
};