2013-08-09 06:57:18 +02:00
|
|
|
#ifndef _LC_QSELECTDIALOG_H_
|
|
|
|
#define _LC_QSELECTDIALOG_H_
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
struct lcSelectDialogOptions;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class lcQSelectDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class lcQSelectDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit lcQSelectDialog(QWidget *parent, void *data);
|
|
|
|
~lcQSelectDialog();
|
|
|
|
|
|
|
|
lcSelectDialogOptions *options;
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
IndexRole = Qt::UserRole
|
|
|
|
};
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void accept();
|
|
|
|
void on_selectAll_clicked();
|
|
|
|
void on_selectNone_clicked();
|
|
|
|
void on_selectInvert_clicked();
|
|
|
|
void itemChanged(QTreeWidgetItem *item, int column);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::lcQSelectDialog *ui;
|
|
|
|
|
|
|
|
void setSelection(QTreeWidgetItem *parentItem, bool selected);
|
|
|
|
void loadSelection(QTreeWidgetItem *parentItem);
|
|
|
|
void saveSelection(QTreeWidgetItem *parentItem);
|
2014-08-07 17:22:33 +02:00
|
|
|
void addChildren(QTreeWidgetItem *parentItem, lcGroup *parentGroup);
|
2013-08-09 06:57:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _LC_QSELECTDIALOG_H_
|