VariableMenuHeaderWidget.h
39 lines
| 917 B
| text/x-c
|
CLexer
Alexandre Leroux
|
r289 | #ifndef SCIQLOP_VARIABLEMENUHEADERWIDGET_H | ||
#define SCIQLOP_VARIABLEMENUHEADERWIDGET_H | ||||
#include <QLoggingCategory> | ||||
#include <QWidget> | ||||
#include <memory> | ||||
r1420 | namespace Ui | |||
{ | ||||
Alexandre Leroux
|
r289 | class VariableMenuHeaderWidget; | ||
} // Ui | ||||
r1420 | class Variable2; | |||
Alexandre Leroux
|
r289 | |||
Q_DECLARE_LOGGING_CATEGORY(LOG_VariableMenuHeaderWidget) | ||||
/** | ||||
* @brief The VariableMenuHeaderWidget class represents the widget used as a header of a menu in the | ||||
* variable inspector | ||||
* @sa VariableInspectorWidget | ||||
*/ | ||||
r1420 | class VariableMenuHeaderWidget : public QWidget | |||
{ | ||||
Alexandre Leroux
|
r289 | public: | ||
/** | ||||
* Ctor | ||||
* @param variables the list of variables used to generate the header | ||||
* @param parent the parent widget | ||||
*/ | ||||
r1420 | explicit VariableMenuHeaderWidget( | |||
const QVector<std::shared_ptr<Variable2>>& variables, QWidget* parent = 0); | ||||
Alexandre Leroux
|
r289 | virtual ~VariableMenuHeaderWidget() noexcept; | ||
private: | ||||
r1420 | Ui::VariableMenuHeaderWidget* ui; | |||
Alexandre Leroux
|
r289 | }; | ||
#endif // SCIQLOP_VARIABLEMENUHEADERWIDGET_H | ||||