#include <AlertTimeLine.h>
Inheritance diagram for OglGui::AlertTimeLine:
Public Member Functions | |
AlertTimeLine (int x, int y, int w, int h) | |
AlertTimeLine (Window *parent, int w, int h) | |
AlertTimeLine (Window *parent, int x, int y, int w, int h) | |
void | SetAlertTimeLineListener (AlertTimeLineListener *listener, void *listenerData=0) |
void | TestOnly_ManualTimeLineEvents () |
void | SetTimeSpan (long seconds) |
void | SetOlderThanText (strconst str) |
void | AdvanceTime (long seconds) |
long | GetCurrentTime () |
long | GetStartTime () |
long | GetStartTimeOffset () |
Button * | OlderThanButton () |
void | SetTime (long startTimeSec, int currentTimeOffsetSec=0) |
virtual void | ButtonSelectionEvent (Button *src, void *userData) |
void | AddAlert (int alertId, ULONG col, void *userData, long seconds) |
void | AddAlert (int alertId, ULONG col, void *userData) |
virtual void | DisplayFunc () |
Static Public Member Functions | |
static void | GetTimeUnits (long timeInSeconds, int &hours, int &minutes, int &seconds) |
static long | UnitsToSeconds (int h, int m, int s) |
Protected Member Functions | |
long | GetButtonTime (Button *btn) |
void | DrawCurrentTime () |
void | DrawTicks (bool detailed=true, int detailResolution=10) |
int | ComputeX (long btnTime) |
int | ComputeX (Button *btn) |
void | PositionAlerts () |
Button * | AlertButton (int x, int y, int w, int h, ULONG col, strconst str) |
Private Member Functions | |
void | Init (int w, int h) |
Private Attributes | |
std::vector< Button * > | mAlertButtons |
std::string | mOlderThanStr |
Button * | mOlderThanBtn |
AlertTimeLineListener * | mListener |
void * | mListenerData |
int | mNrAlerts |
int | mNrOlderAlerts |
int | mLineY |
int | mAlertW |
int | mAlertH |
long | mStartTime |
long | mStartTimeOffset |
long | mCurrentTime |
long | mTimeSpan |
Classes | |
class | AdvanceTimeListener |
class | GenerateAlertListener |
Definition at line 20 of file AlertTimeLine.h.