25 lines
498 B
C++
25 lines
498 B
C++
#ifndef TOOLBOXWINDOW_H
|
|
#define TOOLBOXWINDOW_H
|
|
|
|
#include <DDialog>
|
|
#include <DListWidget>
|
|
#include <DMainWindow>
|
|
|
|
DWIDGET_USE_NAMESPACE
|
|
|
|
class ToolBoxWindow : public DDialog {
|
|
Q_OBJECT
|
|
public:
|
|
ToolBoxWindow(DMainWindow *parent = nullptr);
|
|
|
|
signals:
|
|
void addItem(QListWidgetItem *item, int index = -1); // -1 表示追加
|
|
void rmItem(int index); // -1 表示清空
|
|
void mvItem(int from, int to);
|
|
|
|
private:
|
|
DListWidget *lstool;
|
|
};
|
|
|
|
#endif // TOOLBOXWINDOW_H
|