HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::WaveItem Class Reference

#include </home/runner/work/hal/hal/plugins/simulator/waveform_viewer/include/waveform_viewer/wave_item.h>

Inheritance diagram for hal::WaveItem:
Inheritance graph
Collaboration diagram for hal::WaveItem:
Collaboration graph

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 WaveDatawavedata () 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 QMetaObjectmetaObject () 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)
 
QThreadthread () 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)
 
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 &regExp, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
const QObjectListchildren () 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< QByteArraydynamicPropertyNames () const const
 
void destroyed (QObject *obj)
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
bool inherits (const char *className) const const
 
void deleteLater ()
 
 Q_DISABLE_COPY (Class)
 
 Q_DISABLE_MOVE (Class)
 
 Q_DISABLE_COPY_MOVE (Class)
 
qobject_cast (QObject *object)
 
qobject_cast (const QObject *object)
 
qFindChild (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
 
 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
QObjectsender () 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
 

Detailed Description

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.

Member Enumeration Documentation

◆ ColorIndex

Enumerator
Solid 
HiLight 
Dotted 
Background 

Definition at line 89 of file wave_item.h.

◆ Request

Enumerator
AddRequest 
DataChanged 
SetVisible 
SetPosition 
SelectionChanged 
DeleteRequest 
DeleteAcknowledged 

Definition at line 74 of file wave_item.h.

◆ State

Enumerator
Null 
Loading 
Aborted 
Finished 
Painted 
Failed 

Definition at line 75 of file wave_item.h.

Constructor & Destructor Documentation

◆ WaveItem()

hal::WaveItem::WaveItem ( WaveData dat,
QObject parent = nullptr 
)

Definition at line 18 of file wave_item.cpp.

References hal::WaveData::addSubscriber().

◆ ~WaveItem()

hal::WaveItem::~WaveItem ( )

Definition at line 28 of file wave_item.cpp.

References hal::WaveData::removeSubscriber().

Member Function Documentation

◆ abortLoader()

void hal::WaveItem::abortLoader ( )

Definition at line 223 of file wave_item.cpp.

References Aborted, mLoop, and setState().

Referenced by hal::WaveItemHash::emptyTrash().

◆ clearRequest()

void hal::WaveItem::clearRequest ( Request  rq)

Definition at line 272 of file wave_item.cpp.

Referenced by hal::WaveTreeModel::handleWaveAddedToGroup().

◆ cursorValue()

◆ deletePainted()

void hal::WaveItem::deletePainted ( )

◆ doneLoading

void hal::WaveItem::doneLoading ( )
signal

◆ dump()

◆ gotCursorValue

void hal::WaveItem::gotCursorValue ( )
signal

◆ handleWaveLoaderFinished

◆ hasLoader()

bool hal::WaveItem::hasLoader ( ) const
inline

Definition at line 124 of file wave_item.h.

Referenced by hal::WaveItemHash::emptyTrash().

◆ hasRequest()

bool hal::WaveItem::hasRequest ( Request  rq) const

Definition at line 260 of file wave_item.cpp.

Referenced by isDeleted().

◆ incrementLoadProgress()

void hal::WaveItem::incrementLoadProgress ( )

Definition at line 150 of file wave_item.cpp.

References mLoadValidity, and hal::WaveZoomShift::width().

◆ isAborted()

bool hal::WaveItem::isAborted ( ) const
inline

Definition at line 115 of file wave_item.h.

References Aborted.

Referenced by handleWaveLoaderFinished(), isThreadBusy(), and hal::WaveLoaderThread::run().

◆ isBoolean()

bool hal::WaveItem::isBoolean ( ) const
inline

Definition at line 145 of file wave_item.h.

References hal::WaveData::BooleanNet, and hal::WaveData::netType().

Referenced by cursorValue().

◆ isDeleted()

bool hal::WaveItem::isDeleted ( ) const

Definition at line 278 of file wave_item.cpp.

References DeleteAcknowledged, DeleteRequest, and hasRequest().

◆ isFinished()

bool hal::WaveItem::isFinished ( ) const
inline

Definition at line 114 of file wave_item.h.

References Finished.

Referenced by handleWaveLoaderFinished(), and isThreadBusy().

◆ isGroup()

bool hal::WaveItem::isGroup ( ) const
inline

Definition at line 144 of file wave_item.h.

References hal::WaveData::NetGroup, and hal::WaveData::netType().

Referenced by cursorValue().

◆ isLoading()

bool hal::WaveItem::isLoading ( ) const
inline

Definition at line 112 of file wave_item.h.

References Loading.

◆ isNull()

bool hal::WaveItem::isNull ( ) const
inline

Definition at line 111 of file wave_item.h.

References Null.

◆ isPainted()

bool hal::WaveItem::isPainted ( ) const
inline

Definition at line 113 of file wave_item.h.

References Painted.

Referenced by dump().

◆ isSelected()

bool hal::WaveItem::isSelected ( ) const
inline

Definition at line 116 of file wave_item.h.

◆ isThreadBusy()

bool hal::WaveItem::isThreadBusy ( ) const
inline

Definition at line 117 of file wave_item.h.

References isAborted(), and isFinished().

◆ isTrigger()

bool hal::WaveItem::isTrigger ( ) const
inline

Definition at line 146 of file wave_item.h.

References hal::WaveData::netType(), and hal::WaveData::TriggerTime.

Referenced by cursorValue().

◆ isVisibile()

bool hal::WaveItem::isVisibile ( ) const
inline

Definition at line 131 of file wave_item.h.

◆ loadeProgress()

int hal::WaveItem::loadeProgress ( ) const
inline

Definition at line 141 of file wave_item.h.

◆ loadSaleae()

void hal::WaveItem::loadSaleae ( )

Definition at line 254 of file wave_item.cpp.

References hal::WaveData::loadSaleae().

Referenced by hal::WaveLoaderThread::run().

◆ setRequest()

◆ setState()

void hal::WaveItem::setState ( State  stat)

◆ setTimeframe()

bool hal::WaveItem::setTimeframe ( )

Definition at line 60 of file wave_item.cpp.

◆ setWaveData()

void hal::WaveItem::setWaveData ( WaveData wd)

◆ setWaveSelected()

void hal::WaveItem::setWaveSelected ( bool  sel)

◆ setWaveVisible()

void hal::WaveItem::setWaveVisible ( bool  vis)

Definition at line 46 of file wave_item.cpp.

References setRequest(), and SetVisible.

Referenced by hal::WaveTreeView::reorder().

◆ setYposition()

void hal::WaveItem::setYposition ( int  pos)

Definition at line 33 of file wave_item.cpp.

References SetPosition, and setRequest().

Referenced by hal::WaveTreeView::reorder().

◆ startGeneratePainted()

◆ startLoader()

void hal::WaveItem::startLoader ( const QString workdir,
const WaveTransform trans,
const WaveScrollbar sbar,
const WaveDataTimeframe tframe 
)

◆ state()

State hal::WaveItem::state ( ) const
inline

Definition at line 126 of file wave_item.h.

Referenced by hal::WaveItemHash::emptyTrash().

◆ wavedata()

◆ yPosition()

int hal::WaveItem::yPosition ( ) const
inline

Definition at line 130 of file wave_item.h.

Member Data Documentation

◆ mLoadValidity

WaveZoomShift hal::WaveItem::mLoadValidity

Definition at line 84 of file wave_item.h.

Referenced by incrementLoadProgress(), and startLoader().

◆ mLoop

bool hal::WaveItem::mLoop

Definition at line 87 of file wave_item.h.

Referenced by abortLoader(), hal::WaveLoaderThread::run(), and startGeneratePainted().

◆ mMutex

◆ mPainted

◆ mVisibleRange

bool hal::WaveItem::mVisibleRange

Definition at line 86 of file wave_item.h.

Referenced by handleWaveLoaderFinished(), and startGeneratePainted().

◆ sBackgroundColor

const char * hal::WaveItem::sBackgroundColor = "#0D293E"
static

Definition at line 143 of file wave_item.h.

Referenced by hal::WaveRenderEngine::paintEvent().


The documentation for this class was generated from the following files: