2022-10-03 00:06:25 +00:00
|
|
|
#ifndef DUST3D_APPLICATION_PART_MANAGE_WIDGET_H_
|
|
|
|
#define DUST3D_APPLICATION_PART_MANAGE_WIDGET_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class Document;
|
2022-10-04 09:50:39 +00:00
|
|
|
class ComponentPreviewGridWidget;
|
|
|
|
class QPushButton;
|
2022-10-03 00:06:25 +00:00
|
|
|
|
|
|
|
class PartManageWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
PartManageWidget(const Document *document, QWidget *parent=nullptr);
|
2022-10-04 09:50:39 +00:00
|
|
|
private:
|
|
|
|
const Document *m_document = nullptr;
|
|
|
|
ComponentPreviewGridWidget *m_componentPreviewGridWidget = nullptr;
|
|
|
|
QPushButton *m_levelUpButton = nullptr;
|
|
|
|
QPushButton *m_lockButton = nullptr;
|
|
|
|
QPushButton *m_unlockButton = nullptr;
|
|
|
|
QPushButton *m_showButton = nullptr;
|
|
|
|
QPushButton *m_hideButton = nullptr;
|
|
|
|
QPushButton *m_unlinkButton = nullptr;
|
|
|
|
QPushButton *m_linkButton = nullptr;
|
|
|
|
QPushButton *m_removeButton = nullptr;
|
|
|
|
void updateToolButtons();
|
|
|
|
void updateLevelUpButton();
|
2022-10-03 00:06:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|