Developer Documentation
ACG::QtWidgets::QtApplication Class Reference
Inheritance diagram for ACG::QtWidgets::QtApplication:

Classes

struct  FootPrint
 

Public Slots

void saveFile (const char *_filename)
 
void loadFile (const char *_filename)
 
void play ()
 
void stop ()
 
void record ()
 
void loop (bool _b)
 

Public Member Functions

 QtApplication (int _argc, char **_argv)
 
bool notify (QObject *_receiver, QEvent *_event)
 

Private Types

typedef std::vector< FootPrintFootPrints
 
typedef FootPrints::iterator FootPrintIter
 

Private Member Functions

void recordEvent (QObject *_receiver, QEvent *_event)
 
void playbackEvent (FootPrint &_fp)
 
void storeTopLevelSizes ()
 
void restoreTopLevelSizes ()
 
void saveTopLevelSizes (std::ostream &_os)
 
void loadTopLevelSizes (std::istream &_is)
 
QWidget * findWidget (FootPrint &_fp)
 
void timerEvent (QTimerEvent *_e)
 
void cleanUpEventBuffer ()
 

Private Attributes

bool record_
 
bool playback_
 
bool play_loop_
 
unsigned int eventnr_
 
int timer_id_
 
QElapsedTimer time_
 
FootPrints events_
 
FootPrints toplevels_
 
QtMacroDialog * dialog_
 
QWidget * mainWidget_
 
QPoint mainWidgetDiff_
 
QPoint oldMainWidgetPos_
 

Detailed Description

Definition at line 94 of file QtApplication.hh.

Member Typedef Documentation

◆ FootPrintIter

typedef FootPrints::iterator ACG::QtWidgets::QtApplication::FootPrintIter
private

Definition at line 147 of file QtApplication.hh.

◆ FootPrints

typedef std::vector<FootPrint> ACG::QtWidgets::QtApplication::FootPrints
private

Definition at line 146 of file QtApplication.hh.

Constructor & Destructor Documentation

◆ QtApplication()

ACG::QtWidgets::QtApplication::QtApplication ( int  _argc,
char **  _argv 
)

Definition at line 140 of file QtApplication.cc.

◆ ~QtApplication()

virtual ACG::QtWidgets::QtApplication::~QtApplication ( )
inlinevirtual

Definition at line 101 of file QtApplication.hh.

Member Function Documentation

◆ cleanUpEventBuffer()

void ACG::QtWidgets::QtApplication::cleanUpEventBuffer ( )
private

Definition at line 173 of file QtApplication.cc.

◆ findWidget()

QWidget * ACG::QtWidgets::QtApplication::findWidget ( FootPrint _fp)
private

Definition at line 517 of file QtApplication.cc.

◆ loadFile

void ACG::QtWidgets::QtApplication::loadFile ( const char *  _filename)
slot

Definition at line 752 of file QtApplication.cc.

◆ loadTopLevelSizes()

void ACG::QtWidgets::QtApplication::loadTopLevelSizes ( std::istream &  _is)
private

Definition at line 959 of file QtApplication.cc.

◆ loop

void ACG::QtWidgets::QtApplication::loop ( bool  _b)
slot

Definition at line 187 of file QtApplication.cc.

◆ notify()

bool ACG::QtWidgets::QtApplication::notify ( QObject *  _receiver,
QEvent *  _event 
)

Definition at line 268 of file QtApplication.cc.

◆ play

void ACG::QtWidgets::QtApplication::play ( )
slot

Definition at line 196 of file QtApplication.cc.

◆ playbackEvent()

void ACG::QtWidgets::QtApplication::playbackEvent ( FootPrint _fp)
private

Definition at line 414 of file QtApplication.cc.

◆ record

void ACG::QtWidgets::QtApplication::record ( )
slot

Definition at line 236 of file QtApplication.cc.

◆ recordEvent()

void ACG::QtWidgets::QtApplication::recordEvent ( QObject *  _receiver,
QEvent *  _event 
)
private

Definition at line 307 of file QtApplication.cc.

◆ restoreTopLevelSizes()

void ACG::QtWidgets::QtApplication::restoreTopLevelSizes ( )
private

Definition at line 614 of file QtApplication.cc.

◆ saveFile

void ACG::QtWidgets::QtApplication::saveFile ( const char *  _filename)
slot

Definition at line 634 of file QtApplication.cc.

◆ saveTopLevelSizes()

void ACG::QtWidgets::QtApplication::saveTopLevelSizes ( std::ostream &  _os)
private

Definition at line 939 of file QtApplication.cc.

◆ stop

void ACG::QtWidgets::QtApplication::stop ( )
slot

Definition at line 225 of file QtApplication.cc.

◆ storeTopLevelSizes()

void ACG::QtWidgets::QtApplication::storeTopLevelSizes ( )
private

Definition at line 586 of file QtApplication.cc.

◆ timerEvent()

void ACG::QtWidgets::QtApplication::timerEvent ( QTimerEvent *  _e)
private

Definition at line 551 of file QtApplication.cc.

Member Data Documentation

◆ dialog_

QtMacroDialog* ACG::QtWidgets::QtApplication::dialog_
private

Definition at line 192 of file QtApplication.hh.

◆ eventnr_

unsigned int ACG::QtWidgets::QtApplication::eventnr_
private

Definition at line 180 of file QtApplication.hh.

◆ events_

FootPrints ACG::QtWidgets::QtApplication::events_
private

Definition at line 189 of file QtApplication.hh.

◆ mainWidget_

QWidget* ACG::QtWidgets::QtApplication::mainWidget_
private

Definition at line 195 of file QtApplication.hh.

◆ mainWidgetDiff_

QPoint ACG::QtWidgets::QtApplication::mainWidgetDiff_
private

Definition at line 198 of file QtApplication.hh.

◆ oldMainWidgetPos_

QPoint ACG::QtWidgets::QtApplication::oldMainWidgetPos_
private

Definition at line 201 of file QtApplication.hh.

◆ play_loop_

bool ACG::QtWidgets::QtApplication::play_loop_
private

Definition at line 177 of file QtApplication.hh.

◆ playback_

bool ACG::QtWidgets::QtApplication::playback_
private

Definition at line 176 of file QtApplication.hh.

◆ record_

bool ACG::QtWidgets::QtApplication::record_
private

Definition at line 175 of file QtApplication.hh.

◆ time_

QElapsedTimer ACG::QtWidgets::QtApplication::time_
private

Definition at line 186 of file QtApplication.hh.

◆ timer_id_

int ACG::QtWidgets::QtApplication::timer_id_
private

Definition at line 183 of file QtApplication.hh.

◆ toplevels_

FootPrints ACG::QtWidgets::QtApplication::toplevels_
private

Definition at line 189 of file QtApplication.hh.


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