10#include <QtCore/QtGlobal>
11#include <QtWidgets/QGroupBox>
12#include <QtWidgets/QBoxLayout>
13#include <QtWidgets/QLabel>
36 public istdgui::TGuiObserverWrap<istdgui::TGuiComponentBase<QWidget>, imod::TSingleModelObserverBase<iimg::IMultiBitmapProvider>>,
44 I_REGISTER_SUBELEMENT(ActiveViewIndex);
46 I_ASSIGN(m_horizontalViewsAttrPtr,
"HorizontalViewsCount",
"Number of horizontal views",
false, 1);
47 I_ASSIGN(m_verticalViewsAttrPtr,
"VerticalViewsCount",
"Number of vertical views",
false, 1);
48 I_ASSIGN(m_verticalViewLayoutAttrPtr,
"UseVerticalLayout",
"Layout of the single view",
true,
true);
49 I_ASSIGN(m_viewExtenderCompPtr,
"ViewExtender",
"View extender",
false,
"ViewExtender");
50 I_ASSIGN(m_generalInformationProviderCompPtr,
"GeneralInformationProvider",
"General information provider",
false,
"GeneralInformationProvider");
51 I_ASSIGN_TO(m_generalInformationModelCompPtr, m_generalInformationProviderCompPtr,
true);
52 I_ASSIGN(m_viewBackgroundColorAttrPtr,
"BackgroundColor",
"Background color of the console",
false,
"black");
65 CSingleView(QWidget* parentPtr,
int id,
const QString& title,
const QByteArray& bitmapId);
72 virtual void Init(
bool hasStatusLabel,
bool hasStatusBackground,
bool useVerticalLayout);
96 virtual std::unique_ptr<CMultiBitmapViewComp::CSingleView>
CreateView(QWidget* parentPtr,
int id,
const QString& title,
const QByteArray& bitmapId);
118 I_ATTR(
int, m_horizontalViewsAttrPtr);
119 I_ATTR(
int, m_verticalViewsAttrPtr);
120 I_ATTR(
bool, m_verticalViewLayoutAttrPtr);
124 I_ATTR(QByteArray, m_viewBackgroundColorAttrPtr);
134 template <
class InterfaceType>
CSingleView(QWidget *parentPtr, int id, const QString &title, const QByteArray &bitmapId)
iview::CConsoleGui m_console
virtual void Init(bool hasStatusLabel, bool hasStatusBackground, bool useVerticalLayout)
virtual int GetViewId() const
Get ID indentifing this view.
virtual iview::IShapeView * GetView() const
Called when items should be removed from specified view.
void SetBackgroundColor(const QColor &color)
imod::TModelWrap< iimg::CBitmap > m_backgroundModel
bool m_showStatusBackground
virtual void SetInspectionResult(int result)
virtual void AddStatusItems(QBoxLayout *layoutPtr)
void UpdateImage(const iimg::IBitmap *bitmapPtr)
iview::CImageShape m_backgroundShape
void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
Do update of the GUI to reflect the state of model.
istdgui::TGuiObserverWrap< istdgui::TGuiComponentBase< QWidget >, imod::TSingleModelObserverBase< iimg::IMultiBitmapProvider > > BaseClass
virtual std::unique_ptr< CMultiBitmapViewComp::CSingleView > CreateView(QWidget *parentPtr, int id, const QString &title, const QByteArray &bitmapId)
void OnGuiCreated() override
Called just after GUI is initialized.
virtual void UpdateStatusIcon()
void OnComponentDestroyed() override
static QIcon GetCategoryIcon(istd::IInformationProvider::InformationCategory category)
virtual void UpdateInspectionCategory(int index)
void OnGuiModelAttached() override
Called when model is attached and GUI is created.
virtual QString GetTitleByIndex(int index) const
virtual void ResetAllViews()
imod::CMultiModelDispatcherBase BaseClass2
istd::TPointerVector< CSingleView > m_views
iprm::CSelectionParam m_activeViewIndex
virtual void EnsureViewsCreated()
virtual void ConnectModels()
static const int GeneralStatusModelId
void OnModelChanged(int modelId, const istd::IChangeable::ChangeSet &changeSet) override
Called when some model observed by dispatcher will be changed.
virtual void OnViewCreated(int index, CSingleView *viewPtr)
Interface for GUI objects presenting its results using extern view objects.
Interface for GUI objects managing view.
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.
Set of change flags (its IDs).
Implementation of a pointer container, which controls the live cycle of the pointer object.
Join functionality of istdgui::IGuiObject interface and imod::IObserver.
Implementation of 2D display console with overlays and scale control functionality.
Common interface for a general shape view implementations.
This package contains Qt based implementations for 2D graphic objects.