2017-03-29 10:18:37 +00:00
|
|
|
#ifndef FUNCTIONSWIDGET_H
|
|
|
|
#define FUNCTIONSWIDGET_H
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
#include "dashboard.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 FunctionsWidget;
|
2017-03-29 10:18:37 +00:00
|
|
|
}
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
class FunctionsWidget : public DockWidget
|
2017-03-29 10:18:37 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit FunctionsWidget(MainWindow *main, QWidget *parent = 0);
|
|
|
|
~FunctionsWidget();
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
void setup() override;
|
|
|
|
|
|
|
|
void refresh() override;
|
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
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);
|
|
|
|
|
2017-04-10 10:25:33 +00:00
|
|
|
protected:
|
|
|
|
void resizeEvent(QResizeEvent *event) override;
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::FunctionsWidget *ui;
|
|
|
|
MainWindow *main;
|
2017-04-13 15:14:02 +00:00
|
|
|
|
|
|
|
void refreshTree();
|
|
|
|
void setScrollMode();
|
2017-03-29 10:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FUNCTIONSWIDGET_H
|