2017-07-19 23:20:32 +02:00
|
|
|
#pragma once
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
#include <QDialog>
|
2016-08-01 05:44:15 +02:00
|
|
|
#include "lc_array.h"
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class lcQSelectDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class lcQSelectDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2016-08-01 05:44:15 +02:00
|
|
|
lcQSelectDialog(QWidget* Parent);
|
2013-08-09 06:57:18 +02:00
|
|
|
~lcQSelectDialog();
|
|
|
|
|
2016-08-01 05:44:15 +02:00
|
|
|
lcArray<lcObject*> mObjects;
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2014-11-29 03:55:58 +01:00
|
|
|
void AddChildren(QTreeWidgetItem* ParentItem, lcGroup* ParentGroup);
|
2013-08-09 06:57:18 +02:00
|
|
|
};
|
|
|
|
|