6#include <QtCore/QtGlobal>
7#if QT_VERSION >= 0x050000
8#include <QtWidgets/QGroupBox>
9#include <QtWidgets/QBoxLayout>
10#include <QtWidgets/QLabel>
12#include <QtGui/QGroupBox>
13#include <QtGui/QBoxLayout>
14#include <QtGui/QLabel>
39 iqtgui::TGuiComponentBase<QWidget>,
40 imod::TSingleModelObserverBase<iimg::IMultiBitmapProvider> >,
51 I_REGISTER_SUBELEMENT(ActiveViewIndex);
53 I_ASSIGN(m_horizontalViewsAttrPtr,
"HorizontalViewsCount",
"Number of horizontal views",
false, 1);
54 I_ASSIGN(m_verticalViewsAttrPtr,
"VerticalViewsCount",
"Number of vertical views",
false, 1);
55 I_ASSIGN(m_verticalViewLayoutAttrPtr,
"UseVerticalLayout",
"Layout of the single view",
true,
true);
56 I_ASSIGN(m_viewExtenderCompPtr,
"ViewExtender",
"View extender",
false,
"ViewExtender");
57 I_ASSIGN(m_generalInformationProviderCompPtr,
"GeneralInformationProvider",
"General information provider",
false,
"GeneralInformationProvider");
58 I_ASSIGN_TO(m_generalInformationModelCompPtr, m_generalInformationProviderCompPtr,
true);
59 I_ASSIGN(m_viewBackgroundColorAttrPtr,
"BackgroundColor",
"Background color of the console",
false,
"black");
72 CSingleView(QWidget* parentPtr,
int id,
const QString& title,
const QByteArray& bitmapId);
79 virtual void Init(
bool hasStatusLabel,
bool hasStatusBackground,
bool useVerticalLayout);
127 template <
class InterfaceType>
134 I_ATTR(
int, m_horizontalViewsAttrPtr);
135 I_ATTR(
int, m_verticalViewsAttrPtr);
136 I_ATTR(
bool, m_verticalViewLayoutAttrPtr);
140 I_ATTR(QByteArray, m_viewBackgroundColorAttrPtr);
Definition of single plane bitmap.
Generic implementation of a data model changes notifier.
Common interface for model objects, that supports Model/Observer design pattern.
This model wrapper provides a simple connection between a concrete istd::IChangeable implementation a...
Basic implementation for a single model observer with binding to concrete data object interface.
Basic implementation of selection parameter.
Interface allowing to select single option from list of options.
void SetBackgroundColor(const QColor &color)
virtual iview::IShapeView * GetView() const override
Called when items should be removed from specified view.
CSingleView(QWidget *parentPtr, int id, const QString &title, const QByteArray &bitmapId)
bool m_showStatusBackground
iview::CConsoleGui m_console
imod::TModelWrap< iimg::CBitmap > m_backgroundModel
void UpdateImage(const iimg::IBitmap *bitmapPtr)
virtual void Init(bool hasStatusLabel, bool hasStatusBackground, bool useVerticalLayout)
iview::CImageShape m_backgroundShape
virtual void SetInspectionResult(int result)
virtual int GetViewId() const override
Get ID indentifing this view.
virtual void AddStatusItems(QBoxLayout *layoutPtr)
virtual void OnComponentDestroyed() override
virtual void OnGuiModelAttached() override
Called when model is attached and GUI is created.
virtual void ConnectModels()
iqtgui::TGuiObserverWrap< iqtgui::TGuiComponentBase< QWidget >, imod::TSingleModelObserverBase< iimg::IMultiBitmapProvider > > BaseClass
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
Do update of the GUI to reflect the state of model.
virtual void EnsureViewsCreated()
static const int GeneralStatusModelId
virtual QString GetTitleByIndex(int index) const
virtual void OnModelChanged(int modelId, const istd::IChangeable::ChangeSet &changeSet) override
Called when some model observed by dispatcher will be changed.
iprm::CSelectionParam m_activeViewIndex
virtual CSingleView * CreateView(QWidget *parentPtr, int id, const QString &title, const QByteArray &bitmapId)
imod::CMultiModelDispatcherBase BaseClass2
virtual void ResetAllViews()
virtual void UpdateInspectionCategory(int index)
virtual void OnViewCreated(int index, CSingleView *viewPtr)
istd::TPointerVector< CSingleView > m_views
virtual void OnGuiCreated() override
Called just after GUI is initialized.
static QIcon GetCategoryIcon(istd::IInformationProvider::InformationCategory category)
Interface for GUI objects presenting its results using extern view objects.
Interface for GUI objects managing view.
Base class for all Qt GUI componentes.
Join functionality of iqtgui::IGuiObject interface and imod::IObserver.
Set of change flags (its IDs).
Implementation of a pointer container, which controls the live cycle of the pointer object.
Common interface for a general shape view implementations.
This package contains Qt based implementations for 2D graphic objects.