#include <timings.h>
Inheritance diagram for YTimings:
Public Member Functions | |
YTimings () | |
virtual | ~YTimings () |
virtual int | InitInstance (const QFont &font, YPainter *painter) |
virtual void | UpdateInstance (int zoomfactorx) |
int | GetTimingHeight () const |
int | GetHeight () const |
int | GetWidth () const |
int | GetNameHeight () const |
int | GetNameWidth () const |
virtual void | DrawTimingContents (YPainter &p) const |
virtual void | DrawNameContents (YPainter &p) const |
YASA_TIME | GetMaxDuration () const |
virtual int | GetLogActionRow (const YLogAction *) const |
virtual bool | FilterLoggingAction (const YLogAction *) const |
Filter this logging action or not. | |
Protected Member Functions | |
virtual unsigned int | GetMaxEntries () const=0 |
Returns the number of rows in the timing widget. | |
virtual QStringList | CreateRowNames () const=0 |
Returns a list of names which should be drawn in each row. | |
virtual QString | GetOrderName () const=0 |
virtual QString | GetTimingTitle () const=0 |
virtual YASA_TIME | CalculateMaxDuration () const=0 |
virtual YTimingParser * | CreateTimingParser () const=0 |
int | ConvertTimeToPosition (YPainter &p, YASA_TIME time) const |
Converts the given time into coordinates within the YTimingRect. | |
YTimingParser * | GetTimingParser () const |
virtual void | EvaluateTimings () const=0 |
virtual QString | GetDurationString (const YLogAction *) const |
Returns the string which should be printed in the drawn rectangle, e.g. "Task 1". | |
Private Member Functions | |
int | GetEntries () const |
int | CalculateHeight () |
int | CalculateWidth (int zoomfactor) |
const QFontMetrics * | GetFontMetrics () const |
const QString & | GetTitle () const |
const QString & | GetOrderTitle () const |
const QStringList & | GetRowNames () const |
int | GetTitleHeight () const |
int | GetTimingsHeight () const |
int | GetTitleWidth () const |
Private Attributes | |
int | width |
int | height |
int | namewidth |
int | nameheight |
int | timingheight |
int | timingsheight |
int | entries |
YASA_TIME | maxduration |
QString | title |
QString | ordertitle |
QStringList | entrynames |
QFontMetrics * | fontmetrics |
YTimingParser * | timingparser |
int | titlewidth |
|
|
|
|
|
|
|
Implemented in YEnvironmentTimings, and YProjectTimings. |
|
|
|
Converts the given time into coordinates within the YTimingRect.
|
|
Returns a list of names which should be drawn in each row.
Implemented in YTaskEnvironmentTimings, YMutexEnvironmentTimings, YCPUEnvironmentTimings, and YProjectTimings. |
|
Implemented in YTaskEnvironmentTimings, YMutexEnvironmentTimings, YCPUEnvironmentTimings, YTaskProjectTimings, YMutexProjectTimings, and YCPUProjectTimings. |
|
|
|
This function is used to draw one timing diagram. It is called by YTimingDiagramScrollView::drawContents |
|
Implemented in YEnvironmentTimings, and YProjectTimings. |
|
Filter this logging action or not.
Reimplemented in YTaskProjectTimings, and YMutexProjectTimings. |
|
Returns the string which should be printed in the drawn rectangle, e.g. "Task 1".
Reimplemented in YEnvironmentTimings, and YTaskEnvironmentTimings. |
|
|
|
|
|
|
|
This function returns the number of the row of the given logging action. This function should be derived if needed. Reimplemented in YProjectTimings. |
|
|
|
Returns the number of rows in the timing widget.
Implemented in YTaskEnvironmentTimings, YMutexEnvironmentTimings, YCPUEnvironmentTimings, and YProjectTimings. |
|
|
|
|
|
Returns the order name "Task" or "Mutex" or "Environment" used to create the title string Example: "Timing diagram of task 1 of project - CPU order" Implemented in YTaskEnvironmentTimings, YMutexEnvironmentTimings, YCPUEnvironmentTimings, and YProjectTimings. |
|
|
|
|
|
|
|
|
|
|
|
Implemented in YEnvironmentTimings, YTaskProjectTimings, YMutexProjectTimings, and YCPUProjectTimings. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|