##// END OF EJS Templates
Remove variable from graph (3)...
Remove variable from graph (3) Implements 'Remove variable' action

File last commit:

r234:f4bacb54bdee
r251:7858a36671f7
Show More
VariableInspectorWidget.h
49 lines | 1.4 KiB | text/x-c | CLexer
/ gui / include / Variable / VariableInspectorWidget.h
Alexandre Leroux
Initializes the variable inspector and adds it to the MainWindow
r105 #ifndef SCIQLOP_VARIABLEINSPECTORWIDGET_H
#define SCIQLOP_VARIABLEINSPECTORWIDGET_H
Alexandre Leroux
Pull request fixes
r234 #include <QLoggingCategory>
Alexandre Leroux
Activates menu on variable widget
r228 #include <QMenu>
Alexandre Leroux
Initializes the variable inspector and adds it to the MainWindow
r105 #include <QWidget>
Alexandre Leroux
Activates menu on variable widget
r228 #include <memory>
Alexandre Leroux
Pull request fixes
r234 Q_DECLARE_LOGGING_CATEGORY(LOG_VariableInspectorWidget)
Alexandre Leroux
Activates menu on variable widget
r228 class Variable;
Alexandre Leroux
Initializes the variable inspector and adds it to the MainWindow
r105 namespace Ui {
class VariableInspectorWidget;
} // Ui
/**
* @brief The VariableInspectorWidget class representes represents the variable inspector, from
* which it is possible to view the loaded variables, handle them or trigger their display in
* visualization
*/
class VariableInspectorWidget : public QWidget {
Q_OBJECT
public:
explicit VariableInspectorWidget(QWidget *parent = 0);
virtual ~VariableInspectorWidget();
Alexandre Leroux
Creates signal to make dynmaic menu for a variable
r230 signals:
/**
* Signal emitted before a menu concerning a variable is displayed. It is used for other widgets
* to complete the menu.
* @param tableMenu the menu to be completed
* @param variable the variable concerned by the menu
* @remarks To make the dynamic addition of menus work, the connections to this signal must be
* in Qt :: DirectConnection
*/
void tableMenuAboutToBeDisplayed(QMenu *tableMenu, std::shared_ptr<Variable> variable);
Alexandre Leroux
Initializes the variable inspector and adds it to the MainWindow
r105 private:
Ui::VariableInspectorWidget *ui;
Alexandre Leroux
Activates menu on variable widget
r228
private slots:
/// Slot called when right clicking on an variable in the table (displays a menu)
void onTableMenuRequested(const QPoint &pos) noexcept;
Alexandre Leroux
Initializes the variable inspector and adds it to the MainWindow
r105 };
#endif // SCIQLOP_VARIABLEINSPECTORWIDGET_H