mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-22 12:56:11 +00:00
6f2607fc3c
- DockWidgets inherit from base class and implement the interface - Move setup/refresh code from MainWindow to widgets - Remove unused/uneeded members - Use helper functions - Fix compiler/cppcheck warnings - Cleanup headers
42 lines
666 B
C++
42 lines
666 B
C++
#ifndef SDBDOCK_H
|
|
#define SDBDOCK_H
|
|
|
|
#include "dockwidget.h"
|
|
|
|
class MainWindow;
|
|
class QTreeWidgetItem;
|
|
|
|
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:
|
|
Ui::SdbDock *ui;
|
|
QString path;
|
|
MainWindow *main;
|
|
|
|
void reload(QString path);
|
|
};
|
|
|
|
#endif // SDBDOCK_H
|