Continues migration with DDS, Common
This commit is contained in:
1 parent
9b15cee841
commit
fa48db111e
668 files changed
+111841
-2
No files matched your search
Executable
+48
@@ -0,0 +1,48 @@
|
||||
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "EventList.h"
|
||||
#include "Event.h"
|
||||
#include <LtsTimelineClassic/ltstimelineclassic_export.h>
|
||||
|
||||
namespace LtsTimelineClassic
|
||||
{
|
||||
|
||||
class LTSTIMELINECLASSIC_EXPORT EventGraphic
|
||||
{
|
||||
public:
|
||||
|
||||
enum Action
|
||||
{
|
||||
ACTION_LEFT_CLICKED,
|
||||
ACTION_RIGHT_CLICKED,
|
||||
ACTION_TOOLTIP,
|
||||
};
|
||||
|
||||
explicit EventGraphic(Event *event);
|
||||
|
||||
bool isMultipleEvent() const;
|
||||
|
||||
const QVector<Event *> eventList() const { return m_eventList; }
|
||||
void addEventList(const QVector<Event *> &eventList);
|
||||
void addEvent(Event *event);
|
||||
qint64 lowestTime() const;
|
||||
qint64 getDuration();
|
||||
|
||||
void drawEventGraphic(QPainter *painter, const QRect &rect) const;
|
||||
void drawDurationBackground(QPainter *painter, const QRect &rect) const;
|
||||
|
||||
|
||||
private:
|
||||
EventList m_eventList;
|
||||
|
||||
mutable qint64 m_lowest;
|
||||
mutable qint64 m_duration;
|
||||
bool m_isMultipleEvent;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user