2017-07-19 14:20:32 -07:00
|
|
|
#pragma once
|
2013-08-09 04:57:18 +00:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class lcQSelectDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class lcQSelectDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-04-16 18:29:42 -07:00
|
|
|
lcQSelectDialog(QWidget* Parent, lcModel* Model);
|
2013-08-09 04:57:18 +00:00
|
|
|
~lcQSelectDialog();
|
|
|
|
|
2024-05-26 13:01:34 -07:00
|
|
|
std::vector<lcObject*> mObjects;
|
2013-08-09 04:57:18 +00:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
IndexRole = Qt::UserRole
|
|
|
|
};
|
|
|
|
|
|
|
|
public slots:
|
2020-03-22 15:44:41 -07:00
|
|
|
void accept() override;
|
2013-08-09 04:57:18 +00:00
|
|
|
void on_selectAll_clicked();
|
|
|
|
void on_selectNone_clicked();
|
|
|
|
void on_selectInvert_clicked();
|
|
|
|
void itemChanged(QTreeWidgetItem *item, int column);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::lcQSelectDialog *ui;
|
|
|
|
|
2018-04-16 18:29:42 -07:00
|
|
|
void AddChildren(QTreeWidgetItem* ParentItem, lcGroup* ParentGroup, lcModel* Model);
|
2013-08-09 04:57:18 +00:00
|
|
|
};
|
|
|
|
|