##// END OF EJS Templates
Switched to new TS impl but quite broken!...
Switched to new TS impl but quite broken! Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1420:3c3e24550401
r1420:3c3e24550401
Show More
VariableInspectorWidget.h
61 lines | 1.6 KiB | text/x-c | CLexer
/ gui / include / Variable / VariableInspectorWidget.h
#ifndef SCIQLOP_VARIABLEINSPECTORWIDGET_H
#define SCIQLOP_VARIABLEINSPECTORWIDGET_H
#include <QLoggingCategory>
#include <QMenu>
#include <QWidget>
#include <memory>
#include <Variable/VariableModel2.h>
Q_DECLARE_LOGGING_CATEGORY(LOG_VariableInspectorWidget)
class Variable2;
class QProgressBarItemDelegate;
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 variables is displayed. It is used for other widgets
* to complete the menu.
* @param tableMenu the menu to be completed
* @param variables the variables 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, const QVector<std::shared_ptr<Variable2>>& variables);
private:
Ui::VariableInspectorWidget* ui;
QProgressBarItemDelegate* m_ProgressBarItemDelegate;
VariableModel2* m_model;
private slots:
/// Slot called when right clicking on an variable in the table (displays a menu)
void onTableMenuRequested(const QPoint& pos) noexcept;
/// Refreshes instantly the variable view
void refresh() noexcept;
};
#endif // SCIQLOP_VARIABLEINSPECTORWIDGET_H