leocad/qt/lc_qeditgroupsdialog.h

48 lines
952 B
C
Raw Normal View History

2013-08-09 06:57:18 +02:00
#ifndef LC_QEDITGROUPSDIALOG_H
#define LC_QEDITGROUPSDIALOG_H
#include <QDialog>
struct lcEditGroupsDialogOptions;
namespace Ui {
class lcQEditGroupsDialog;
}
class lcQEditGroupsDialog : public QDialog
{
Q_OBJECT
public:
2014-11-10 01:06:11 +01:00
explicit lcQEditGroupsDialog(QWidget* Parent, void* Data);
2013-08-09 06:57:18 +02:00
~lcQEditGroupsDialog();
2014-11-10 01:06:11 +01:00
lcEditGroupsDialogOptions* mOptions;
2013-08-09 06:57:18 +02:00
enum
{
PieceRole = Qt::UserRole,
GroupRole
2013-08-09 06:57:18 +02:00
};
public slots:
void accept();
2014-11-10 01:06:11 +01:00
void reject();
2013-08-09 06:57:18 +02:00
void on_newGroup_clicked();
2014-11-10 01:06:11 +01:00
void onItemClicked(QTreeWidgetItem* Item, int Column);
void onItemDoubleClicked(QTreeWidgetItem* Item, int Column);
2013-08-09 06:57:18 +02:00
private:
Ui::lcQEditGroupsDialog *ui;
2014-11-10 01:06:11 +01:00
void UpdateParents(QTreeWidgetItem* ParentItem, lcGroup* ParentGroup);
void AddChildren(QTreeWidgetItem* ParentItem, lcGroup* ParentGroup);
2014-11-10 01:06:11 +01:00
void timerEvent(QTimerEvent* Event);
2014-11-10 01:06:11 +01:00
QTreeWidgetItem* mLastItemClicked;
bool mEditableDoubleClicked;
QBasicTimer mClickTimer;
2013-08-09 06:57:18 +02:00
};
#endif // LC_QEDITGROUPSDIALOG_H