mirror of
https://github.com/leozide/leocad
synced 2024-12-25 21:58:23 +01:00
36 lines
599 B
C++
36 lines
599 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui {
|
|
class lcQSelectDialog;
|
|
}
|
|
|
|
class lcQSelectDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
lcQSelectDialog(QWidget* Parent, lcModel* Model);
|
|
~lcQSelectDialog();
|
|
|
|
std::vector<lcObject*> mObjects;
|
|
|
|
enum
|
|
{
|
|
IndexRole = Qt::UserRole
|
|
};
|
|
|
|
public slots:
|
|
void accept() override;
|
|
void on_selectAll_clicked();
|
|
void on_selectNone_clicked();
|
|
void on_selectInvert_clicked();
|
|
void itemChanged(QTreeWidgetItem *item, int column);
|
|
|
|
private:
|
|
Ui::lcQSelectDialog *ui;
|
|
|
|
void AddChildren(QTreeWidgetItem* ParentItem, lcGroup* ParentGroup, lcModel* Model);
|
|
};
|
|
|