1 #ifndef MYCHECKBOXCONTAINER_H
\r
2 #define MYCHECKBOXCONTAINER_H
\r
8 #include <QVBoxLayout>
\r
9 #include "mycheckbox.h"
\r
11 class MyCheckBoxContainer : public QObject
\r
15 QList<MyCheckBox * > const & getCheckBoxes();
\r
16 QString getListText();
\r
18 virtual ~MyCheckBoxContainer();
\r
19 static MyCheckBoxContainer * getInstance();
\r
21 void add(QString item);
\r
22 void set(QString item);
\r
25 void removeChecked();
\r
26 void setSortCheckedToBottom(bool sortToBottom);
\r
27 void setSortAlphabetically(bool sortAlphabetically);
\r
28 void sortCheckedToBottom();
\r
31 QList<MyCheckBox * > checkBoxes;
\r
32 static MyCheckBoxContainer * instance;
\r
33 static int instances;
\r
36 bool sortAlphabetically;
\r
38 MyCheckBoxContainer();
\r
40 void signalSorted();
\r
42 void clickedAction();
\r
46 #endif // MYCHECKBOXCONTAINER_H
\r