26 lines
518 B
C++
26 lines
518 B
C++
#ifndef TOOLBOXWINDOW_H
|
|
#define TOOLBOXWINDOW_H
|
|
|
|
#include "utilities.h"
|
|
#include <DDialog>
|
|
#include <DListWidget>
|
|
#include <DMainWindow>
|
|
|
|
DWIDGET_USE_NAMESPACE
|
|
|
|
class ToolBoxWindow : public DDialog {
|
|
Q_OBJECT
|
|
public:
|
|
ToolBoxWindow(DMainWindow *parent = nullptr);
|
|
|
|
public:
|
|
void addItem(ToolStructInfo &info, int index = -1); // -1 表示追加
|
|
void rmItem(int index); // -1 表示清空
|
|
void mvItem(int from, int to);
|
|
|
|
private:
|
|
DListWidget *lstool;
|
|
};
|
|
|
|
#endif // TOOLBOXWINDOW_H
|