54 lines
775 B
C++
Executable File
54 lines
775 B
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "EventList.h"
|
|
#include "LineMap.h"
|
|
#include "Range.h"
|
|
|
|
#include <QObject>
|
|
|
|
|
|
class QPainter;
|
|
class QStyleOptionViewItem;
|
|
|
|
|
|
namespace LtsTimelineClassic
|
|
{
|
|
|
|
|
|
|
|
class PassiveEventContainer: public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
|
|
explicit PassiveEventContainer(bool ignoreKnownRanges, QObject *parent = nullptr);
|
|
|
|
~PassiveEventContainer();
|
|
|
|
|
|
|
|
void paint(QPainter *painter, const QStyleOptionViewItem &option, const LineMap &lineMap, const QVector<Range> &knownRanges) const;
|
|
|
|
|
|
|
|
EventGraphicList getEventGraphicList() const;
|
|
|
|
|
|
|
|
void setEventList(const EventGraphicList &eventGraphicList);
|
|
|
|
private:
|
|
EventGraphicList m_eventGraphicList;
|
|
bool m_ignoreKnownRanges;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
Q_DECLARE_METATYPE(LtsTimelineClassic::PassiveEventContainer *)
|