|
HAL
v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|
#include </home/runner/work/hal/hal/plugins/simulator/waveform_viewer/include/waveform_viewer/wave_item.h>


Public Types | |
| enum | Request { AddRequest , DataChanged , SetVisible , SetPosition , SelectionChanged , DeleteRequest , DeleteAcknowledged } |
| enum | State { Null , Loading , Aborted , Finished , Painted , Failed } |
| enum | ColorIndex { Solid , HiLight , Dotted , Background } |
Public Slots | |
| void | handleWaveLoaderFinished () |
Signals | |
| void | doneLoading () |
| void | gotCursorValue () |
Public Member Functions | |
| WaveItem (WaveData *dat, QObject *parent=nullptr) | |
| ~WaveItem () | |
| bool | isNull () const |
| bool | isLoading () const |
| bool | isPainted () const |
| bool | isFinished () const |
| bool | isAborted () const |
| bool | isSelected () const |
| bool | isThreadBusy () const |
| void | deletePainted () |
| void | startGeneratePainted (const QString &workdir, const WaveTransform *trans, const WaveScrollbar *sbar, const WaveDataTimeframe &tframe) |
| void | startLoader (const QString &workdir, const WaveTransform *trans, const WaveScrollbar *sbar, const WaveDataTimeframe &tframe) |
| void | abortLoader () |
| void | setState (State stat) |
| void | dump (QTextStream &xout) const |
| bool | hasLoader () const |
| void | loadSaleae () |
| State | state () const |
| const WaveData * | wavedata () const |
| int | yPosition () const |
| bool | isVisibile () const |
| void | setYposition (int pos) |
| void | setWaveData (WaveData *wd) |
| void | setWaveVisible (bool vis) |
| void | setWaveSelected (bool sel) |
| bool | setTimeframe () |
| bool | hasRequest (Request rq) const |
| void | setRequest (Request rq) |
| void | clearRequest (Request rq) |
| bool | isDeleted () const |
| int | loadeProgress () const |
| void | incrementLoadProgress () |
| bool | isGroup () const |
| bool | isBoolean () const |
| bool | isTrigger () const |
| int | cursorValue (double tCursor, int xpos) |
Public Member Functions inherited from QObject | |
| virtual const QMetaObject * | metaObject () const const |
| QObject (QObject *parent) | |
| virtual | ~QObject () |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| QString | objectName () const const |
| void | setObjectName (const QString &name) |
| bool | isWidgetType () const const |
| bool | isWindowType () const const |
| bool | signalsBlocked () const const |
| bool | blockSignals (bool block) |
| QThread * | thread () const const |
| void | moveToThread (QThread *targetThread) |
| int | startTimer (int interval, Qt::TimerType timerType) |
| int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
| void | killTimer (int id) |
| T | findChild (const QString &name, Qt::FindChildOptions options) const const |
| QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
| QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
| QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
| const QObjectList & | children () const const |
| void | setParent (QObject *parent) |
| void | installEventFilter (QObject *filterObj) |
| void | removeEventFilter (QObject *obj) |
| QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
| bool | disconnect (const QObject *receiver, const char *method) const const |
| void | dumpObjectTree () |
| void | dumpObjectInfo () |
| void | dumpObjectTree () const const |
| void | dumpObjectInfo () const const |
| bool | setProperty (const char *name, const QVariant &value) |
| QVariant | property (const char *name) const const |
| QList< QByteArray > | dynamicPropertyNames () const const |
| void | destroyed (QObject *obj) |
| void | objectNameChanged (const QString &objectName) |
| QObject * | parent () const const |
| bool | inherits (const char *className) const const |
| void | deleteLater () |
| Q_DISABLE_COPY (Class) | |
| Q_DISABLE_MOVE (Class) | |
| Q_DISABLE_COPY_MOVE (Class) | |
| T | qobject_cast (QObject *object) |
| T | qobject_cast (const QObject *object) |
| T | qFindChild (const QObject *obj, const QString &name) |
| QList< T > | qFindChildren (const QObject *obj, const QString &name) |
| QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
| Q_CLASSINFO (Name, Value) | |
| Q_INTERFACES (...) | |
| Q_PROPERTY (...) | |
| Q_ENUMS (...) | |
| Q_FLAGS (...) | |
| Q_ENUM (...) | |
| Q_FLAG (...) | |
| Q_ENUM_NS (...) | |
| Q_FLAG_NS (...) | |
| Q_OBJECT Q_OBJECT | |
| Q_GADGET Q_GADGET | |
| Q_NAMESPACE Q_NAMESPACE | |
| Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
| Q_SIGNALS Q_SIGNALS | |
| Q_SIGNAL Q_SIGNAL | |
| Q_SLOTS Q_SLOTS | |
| Q_SLOT Q_SLOT | |
| Q_EMIT Q_EMIT | |
| Q_INVOKABLE Q_INVOKABLE | |
| Q_REVISION Q_REVISION | |
| Q_SET_OBJECT_NAME (Object) | |
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Public Attributes | |
| WaveFormPainted | mPainted |
| WaveZoomShift | mLoadValidity |
| QMutex | mMutex |
| bool | mVisibleRange |
| bool | mLoop |
Public Attributes inherited from QObject | |
| typedef | QObjectList |
Static Public Attributes | |
| static const char * | sBackgroundColor = "#0D293E" |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
| QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
| QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
| QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| bool | disconnect (const QMetaObject::Connection &connection) |
| bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
Protected Member Functions inherited from QObject | |
| QObject * | sender () const const |
| int | senderSignalIndex () const const |
| int | receivers (const char *signal) const const |
| bool | isSignalConnected (const QMetaMethod &signal) const const |
| virtual void | timerEvent (QTimerEvent *event) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | customEvent (QEvent *event) |
| virtual void | connectNotify (const QMetaMethod &signal) |
| virtual void | disconnectNotify (const QMetaMethod &signal) |
Properties inherited from QObject | |
| objectName | |
One waveform as it is managed by the viewer, i.e., its data, its loading state, and its painted representation.
Definition at line 70 of file wave_item.h.
| Enumerator | |
|---|---|
| Solid | |
| HiLight | |
| Dotted | |
| Background | |
Definition at line 89 of file wave_item.h.
| Enumerator | |
|---|---|
| AddRequest | |
| DataChanged | |
| SetVisible | |
| SetPosition | |
| SelectionChanged | |
| DeleteRequest | |
| DeleteAcknowledged | |
Definition at line 74 of file wave_item.h.
| enum hal::WaveItem::State |
| Enumerator | |
|---|---|
| Null | |
| Loading | |
| Aborted | |
| Finished | |
| Painted | |
| Failed | |
Definition at line 75 of file wave_item.h.
Definition at line 18 of file wave_item.cpp.
References hal::WaveData::addSubscriber().
| hal::WaveItem::~WaveItem | ( | ) |
Definition at line 28 of file wave_item.cpp.
References hal::WaveData::removeSubscriber().
| void hal::WaveItem::abortLoader | ( | ) |
Definition at line 223 of file wave_item.cpp.
References Aborted, mLoop, and setState().
Referenced by hal::WaveItemHash::emptyTrash().
| void hal::WaveItem::clearRequest | ( | Request | rq | ) |
Definition at line 272 of file wave_item.cpp.
Referenced by hal::WaveTreeModel::handleWaveAddedToGroup().
| int hal::WaveItem::cursorValue | ( | double | tCursor, |
| int | xpos | ||
| ) |
Definition at line 166 of file wave_item.cpp.
References hal::clock, hal::WaveData::ClockNet, hal::WaveFormPainted::cursorValuePainted(), hal::WaveFormPainted::cursorValueStored(), hal::WaveFormPainted::cursorValueTrigger(), hal::WaveData::data(), gotCursorValue(), hal::WaveData::intValue(), isBoolean(), QMap::isEmpty(), isGroup(), isTrigger(), hal::WaveData::loadDataUnlessAlreadyLoaded(), hal::WaveData::loadPolicy(), mPainted, hal::WaveData::netType(), QObject::Q_EMIT(), hal::WaveDataBoolean::recalcData(), hal::WaveDataTrigger::recalcData(), hal::WaveDataGroup::recalcData(), hal::WaveFormPainted::setCursorValue(), hal::SaleaeDataTuple::sReadError, hal::SimulationInput::Clock::start_at_zero, hal::SimulationInput::Clock::switch_time, and hal::WaveData::TooBigToLoad.
| void hal::WaveItem::deletePainted | ( | ) |
Definition at line 82 of file wave_item.cpp.
References hal::WaveFormPainted::clearPrimitives(), mPainted, Null, and setState().
Referenced by handleWaveLoaderFinished(), and startGeneratePainted().
|
signal |
Referenced by handleWaveLoaderFinished(), hal::WaveRenderEngine::paintEvent(), and startGeneratePainted().
| void hal::WaveItem::dump | ( | QTextStream & | xout | ) | const |
Definition at line 157 of file wave_item.cpp.
References hal::WaveData::data(), hal::WaveData::id(), isPainted(), mPainted, hal::WaveData::name(), hal::WaveFormPainted::numberPrimitives(), QMap::size(), hal::WaveFormPainted::x0(), and hal::WaveFormPainted::x1().
|
signal |
Referenced by cursorValue(), and handleWaveLoaderFinished().
|
slot |
Definition at line 229 of file wave_item.cpp.
References QObject::deleteLater(), deletePainted(), doneLoading(), hal::WaveData::fileIndex(), gotCursorValue(), isAborted(), isFinished(), QMutex::lock(), mMutex, mVisibleRange, Null, Painted, QObject::Q_EMIT(), setState(), and QMutex::unlock().
Referenced by startLoader().
|
inline |
Definition at line 124 of file wave_item.h.
Referenced by hal::WaveItemHash::emptyTrash().
| bool hal::WaveItem::hasRequest | ( | Request | rq | ) | const |
Definition at line 260 of file wave_item.cpp.
Referenced by isDeleted().
| void hal::WaveItem::incrementLoadProgress | ( | ) |
Definition at line 150 of file wave_item.cpp.
References mLoadValidity, and hal::WaveZoomShift::width().
|
inline |
Definition at line 115 of file wave_item.h.
References Aborted.
Referenced by handleWaveLoaderFinished(), isThreadBusy(), and hal::WaveLoaderThread::run().
|
inline |
Definition at line 145 of file wave_item.h.
References hal::WaveData::BooleanNet, and hal::WaveData::netType().
Referenced by cursorValue().
| bool hal::WaveItem::isDeleted | ( | ) | const |
Definition at line 278 of file wave_item.cpp.
References DeleteAcknowledged, DeleteRequest, and hasRequest().
|
inline |
Definition at line 114 of file wave_item.h.
References Finished.
Referenced by handleWaveLoaderFinished(), and isThreadBusy().
|
inline |
Definition at line 144 of file wave_item.h.
References hal::WaveData::NetGroup, and hal::WaveData::netType().
Referenced by cursorValue().
|
inline |
Definition at line 112 of file wave_item.h.
References Loading.
|
inline |
Definition at line 111 of file wave_item.h.
References Null.
|
inline |
|
inline |
Definition at line 116 of file wave_item.h.
|
inline |
Definition at line 117 of file wave_item.h.
References isAborted(), and isFinished().
|
inline |
Definition at line 146 of file wave_item.h.
References hal::WaveData::netType(), and hal::WaveData::TriggerTime.
Referenced by cursorValue().
|
inline |
Definition at line 131 of file wave_item.h.
|
inline |
Definition at line 141 of file wave_item.h.
| void hal::WaveItem::loadSaleae | ( | ) |
Definition at line 254 of file wave_item.cpp.
References hal::WaveData::loadSaleae().
Referenced by hal::WaveLoaderThread::run().
| void hal::WaveItem::setRequest | ( | Request | rq | ) |
Definition at line 266 of file wave_item.cpp.
Referenced by hal::WaveItemHash::addOrReplace(), hal::WaveItemHash::dispose(), hal::WaveItemHash::emptyTrash(), hal::WaveTreeModel::handleGroupAboutToBeRemoved(), hal::WaveTreeModel::handleGroupUpdated(), hal::WaveTreeModel::handleWaveAddedToGroup(), setWaveData(), setWaveSelected(), setWaveVisible(), and setYposition().
| void hal::WaveItem::setState | ( | State | stat | ) |
Definition at line 136 of file wave_item.cpp.
References Null, Painted, and hal::WaveData::setDirty().
Referenced by abortLoader(), deletePainted(), handleWaveLoaderFinished(), hal::WaveLoaderThread::run(), and startGeneratePainted().
| bool hal::WaveItem::setTimeframe | ( | ) |
Definition at line 60 of file wave_item.cpp.
| void hal::WaveItem::setWaveData | ( | WaveData * | wd | ) |
Definition at line 40 of file wave_item.cpp.
References DataChanged, and setRequest().
Referenced by hal::WaveItemHash::addOrReplace(), hal::WaveTreeModel::handleWaveAddedToGroup(), and hal::WaveGraphicsCanvas::handleWaveUpdated().
| void hal::WaveItem::setWaveSelected | ( | bool | sel | ) |
Definition at line 53 of file wave_item.cpp.
References SelectionChanged, and setRequest().
Referenced by hal::WaveTreeView::currentChanged(), and hal::WaveTreeView::selectionChanged().
| void hal::WaveItem::setWaveVisible | ( | bool | vis | ) |
Definition at line 46 of file wave_item.cpp.
References setRequest(), and SetVisible.
Referenced by hal::WaveTreeView::reorder().
| void hal::WaveItem::setYposition | ( | int | pos | ) |
Definition at line 33 of file wave_item.cpp.
References SetPosition, and setRequest().
Referenced by hal::WaveTreeView::reorder().
| void hal::WaveItem::startGeneratePainted | ( | const QString & | workdir, |
| const WaveTransform * | trans, | ||
| const WaveScrollbar * | sbar, | ||
| const WaveDataTimeframe & | tframe | ||
| ) |
Definition at line 88 of file wave_item.cpp.
References hal::WaveData::bits(), hal::WaveData::data(), deletePainted(), doneLoading(), hal::WaveData::fileSize(), hal::WaveFormPainted::generate(), QMap::isEmpty(), Loading, hal::WaveData::loadPolicy(), mLoop, mPainted, mVisibleRange, hal::WaveData::netType(), Painted, QObject::Q_EMIT(), setState(), hal::WaveDataProvider::setWaveType(), QMap::size(), startLoader(), hal::WaveData::TooBigToLoad, and hal::WaveData::valueBase().
| void hal::WaveItem::startLoader | ( | const QString & | workdir, |
| const WaveTransform * | trans, | ||
| const WaveScrollbar * | sbar, | ||
| const WaveDataTimeframe & | tframe | ||
| ) |
Definition at line 123 of file wave_item.cpp.
References QObject::connect(), hal::WaveData::fileIndex(), QThread::finished(), handleWaveLoaderFinished(), Loading, mLoadValidity, and QThread::start().
Referenced by startGeneratePainted().
|
inline |
Definition at line 126 of file wave_item.h.
Referenced by hal::WaveItemHash::emptyTrash().
|
inline |
Definition at line 129 of file wave_item.h.
Referenced by hal::WaveTreeModel::handleWaveAddedToGroup(), hal::WaveTreeModel::insertExisting(), hal::WaveLoaderThread::run(), hal::WaveValueThread::run(), and hal::WaveTreeView::selectionChanged().
|
inline |
Definition at line 130 of file wave_item.h.
| WaveZoomShift hal::WaveItem::mLoadValidity |
Definition at line 84 of file wave_item.h.
Referenced by incrementLoadProgress(), and startLoader().
| bool hal::WaveItem::mLoop |
Definition at line 87 of file wave_item.h.
Referenced by abortLoader(), hal::WaveLoaderThread::run(), and startGeneratePainted().
| QMutex hal::WaveItem::mMutex |
Definition at line 85 of file wave_item.h.
Referenced by hal::WaveFormPainted::generateBoolean(), hal::WaveFormPainted::generateGroup(), handleWaveLoaderFinished(), and hal::WaveLoaderThread::run().
| WaveFormPainted hal::WaveItem::mPainted |
Definition at line 83 of file wave_item.h.
Referenced by cursorValue(), deletePainted(), dump(), hal::WaveFormPainted::generateBoolean(), hal::WaveFormPainted::generateGroup(), hal::WaveLoaderThread::run(), hal::WaveValueThread::run(), and startGeneratePainted().
| bool hal::WaveItem::mVisibleRange |
Definition at line 86 of file wave_item.h.
Referenced by handleWaveLoaderFinished(), and startGeneratePainted().
|
static |
Definition at line 143 of file wave_item.h.
Referenced by hal::WaveRenderEngine::paintEvent().