Version 0.3.23. Setup for PR1.3.
[easylist] / mycheckboxcontainer.h
diff --git a/mycheckboxcontainer.h b/mycheckboxcontainer.h
new file mode 100755 (executable)
index 0000000..91f3de6
--- /dev/null
@@ -0,0 +1,46 @@
+#ifndef MYCHECKBOXCONTAINER_H\r
+#define MYCHECKBOXCONTAINER_H\r
+\r
+#include <QString>\r
+#include <QList>\r
+#include <QObject>\r
+#include <QLayout>\r
+#include <QVBoxLayout>\r
+#include "mycheckbox.h"\r
+\r
+class MyCheckBoxContainer : public QObject\r
+{\r
+    Q_OBJECT\r
+public:\r
+    QList<MyCheckBox * > const & getCheckBoxes();\r
+    QString getListText();\r
+\r
+    virtual ~MyCheckBoxContainer();\r
+    static MyCheckBoxContainer * getInstance();\r
+\r
+    void add(QString item);\r
+    void set(QString item);\r
+    void clear();\r
+    void uncheckAll();\r
+    void removeChecked();\r
+    void setSortCheckedToBottom(bool sortToBottom);\r
+    void setSortAlphabetically(bool sortAlphabetically);\r
+    void sortCheckedToBottom();\r
+\r
+private:\r
+    QList<MyCheckBox * > checkBoxes;\r
+    static MyCheckBoxContainer * instance;\r
+    static int instances;\r
+\r
+    bool sortToBottom;\r
+    bool sortAlphabetically;\r
+\r
+    MyCheckBoxContainer();\r
+signals:\r
+    void signalSorted();\r
+public slots:\r
+    void clickedAction();\r
+\r
+};\r
+\r
+#endif // MYCHECKBOXCONTAINER_H\r