2017-03-29 10:18:37 +00:00
|
|
|
#ifndef SDBDOCK_H
|
|
|
|
#define SDBDOCK_H
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
#include "dockwidget.h"
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
class MainWindow;
|
2017-04-13 15:14:02 +00:00
|
|
|
class QTreeWidgetItem;
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-04-09 19:55:06 +00:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class SdbDock;
|
2017-03-29 10:18:37 +00:00
|
|
|
}
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
class SdbDock : public DockWidget
|
2017-03-29 10:18:37 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit SdbDock(MainWindow *main, QWidget *parent = 0);
|
|
|
|
~SdbDock();
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
void setup() override;
|
|
|
|
|
|
|
|
void refresh() override;
|
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
private slots:
|
|
|
|
void on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
|
|
|
|
|
|
|
void on_lockButton_clicked();
|
|
|
|
|
|
|
|
void on_treeWidget_itemChanged(QTreeWidgetItem *item, int column);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::SdbDock *ui;
|
|
|
|
QString path;
|
|
|
|
MainWindow *main;
|
2017-04-13 15:14:02 +00:00
|
|
|
|
|
|
|
void reload(QString path);
|
2017-03-29 10:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SDBDOCK_H
|