mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-25 14:25:25 +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
38 lines
615 B
C++
38 lines
615 B
C++
#ifndef SYMBOLSWIDGET_H
|
|
#define SYMBOLSWIDGET_H
|
|
|
|
#include "dockwidget.h"
|
|
|
|
class MainWindow;
|
|
class QTreeWidgetItem;
|
|
|
|
namespace Ui
|
|
{
|
|
class SymbolsWidget;
|
|
}
|
|
|
|
class SymbolsWidget : public DockWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SymbolsWidget(MainWindow *main, QWidget *parent = 0);
|
|
~SymbolsWidget();
|
|
|
|
void setup() override;
|
|
|
|
void refresh() override;
|
|
|
|
private slots:
|
|
void on_symbolsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
|
|
|
private:
|
|
Ui::SymbolsWidget *ui;
|
|
MainWindow *main;
|
|
|
|
void fillSymbols();
|
|
void setScrollMode();
|
|
};
|
|
|
|
#endif // SYMBOLSWIDGET_H
|