cutter/src/widgets/sdbdock.h

43 lines
700 B
C
Raw Normal View History

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