20 #ifndef RECORDINGSTATUSGRAPHICSVIEW_H
21 #define RECORDINGSTATUSGRAPHICSVIEW_H
23 #include <QGraphicsView>
24 #include <QGraphicsScene>
25 #include <QGraphicsEllipseItem>
26 #include <QGraphicsRectItem>
28 #include "../core/messages/messagelistener.h"
61 virtual QSize
sizeHint() const override final;
66 void showEvent(QShowEvent *event) override;
91 void setItemVisible(const std::vector<QGraphicsItem*> &items,
bool visible);
117 #endif // RECORDINGSTATUSGRAPHICSVIEW_H
RecordingStatusGraphicsView(QWidget *parent)
Default constructor.
std::shared_ptr< Message > MessagePtr
Global type of a shared message pointer.
virtual ~RecordingStatusGraphicsView()
Emptry virtual destructor.
void handleMessage(MessagePtr m) overridefinal
Message handling.
virtual QSize minimumSizeHint() const overridefinal
static const QRectF SCENE_RECT
The scene rect of the QGraphicsScene.
QGraphicsScene mScene
The graphics scene.
void onProcess()
Called by the timer to rotate the blue circle.
std::vector< QGraphicsItem * > mPauseItems
Items that are used to draw the pause state.
QTimer mProgressTimer
Timer to shoot a onProgress() at a fixed time intervall.
The QGraphicsView that will display the current recording status.
void showEvent(QShowEvent *event) override
Reimplemented show event that will fit the SCENE_RECT into the view.
void setItemVisible(const std::vector< QGraphicsItem * > &items, bool visible)
Function to show or hide a group of items.
void resizeEvent(QResizeEvent *event) override
Reimplemented resize event that will fit the SCENE_RECT into the view.
std::vector< QGraphicsItem * > mRecordItems
Items that are used to draw the recording state.
std::vector< QGraphicsItem * > mProgressItems
Items that are used to draw the analysing state.
virtual QSize sizeHint() const overridefinal