##// END OF EJS Templates
Connects variable widget to visualization widget...
Connects variable widget to visualization widget The connection is used to populate variable menu with the plot menu

File last commit:

r247:96c4c8973e0c
r249:3d1d1572319d
Show More
VariableInspectorWidget.h
46 lines | 1.3 KiB | text/x-c | CLexer
/ gui / include / Variable / VariableInspectorWidget.h
#ifndef SCIQLOP_VARIABLEINSPECTORWIDGET_H
#define SCIQLOP_VARIABLEINSPECTORWIDGET_H
#include <QMenu>
#include <QWidget>
#include <memory>
class Variable;
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();
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);
private:
Ui::VariableInspectorWidget *ui;
private slots:
/// Slot called when right clicking on an variable in the table (displays a menu)
void onTableMenuRequested(const QPoint &pos) noexcept;
};
#endif // SCIQLOP_VARIABLEINSPECTORWIDGET_H