cutter/src/widgets/functionswidget.h

59 lines
1.1 KiB
C
Raw Normal View History

#ifndef FUNCTIONSWIDGET_H
#define FUNCTIONSWIDGET_H
#include "dashboard.h"
class MainWindow;
class QTreeWidgetItem;
2017-04-09 19:55:06 +00:00
namespace Ui
{
class FunctionsWidget;
}
class FunctionsWidget : public DockWidget
{
Q_OBJECT
public:
explicit FunctionsWidget(MainWindow *main, QWidget *parent = 0);
~FunctionsWidget();
void setup() override;
void refresh() override;
void fillFunctions();
void addTooltips();
private slots:
void on_functionsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
void showFunctionsContextMenu(const QPoint &pt);
void on_actionDisasAdd_comment_triggered();
void on_actionFunctionsRename_triggered();
void on_action_References_triggered();
void showTitleContextMenu(const QPoint &pt);
void on_actionHorizontal_triggered();
void on_actionVertical_triggered();
void on_nestedFunctionsTree_itemDoubleClicked(QTreeWidgetItem *item, int column);
protected:
void resizeEvent(QResizeEvent *event) override;
private:
Ui::FunctionsWidget *ui;
MainWindow *main;
void refreshTree();
void setScrollMode();
};
#endif // FUNCTIONSWIDGET_H