#include <qtFrontEnd.h>
Inherits FrontEnd.
Public Methods | |
QtFrontEnd (int argc, char** argv) | |
~QtFrontEnd () | |
void | update () |
Update function. More... | |
void | init () |
Initialization function. More... | |
void | displayUsers (int users) |
Display logged in Users. More... | |
void | displayMatrices (int matrices) |
Display open matrices (OBSOLETE!!). More... | |
void | displayDebugMessage (const char*) |
Display a debug message. More... | |
Private Attributes | |
FrontUpdate* | frontUpdate |
QTimer* | timer |
qtFront* | s |
int | argc |
char** | argv |
Definition at line 36 of file server/frontends/qt/qtFrontEnd.h.
00036 { 00037 public: 00038 QtFrontEnd (int argc, char** argv); 00039 ~QtFrontEnd (); 00040 00041 void update (); 00042 00043 void init(); 00044 00045 void displayUsers (int users); // amount of users logged in 00046 void displayMatrices (int matrices); // amount of active matrices 00047 00048 void displayDebugMessage (const char*); 00049 00050 private: 00051 FrontUpdate* frontUpdate; 00052 QTimer* timer; 00053 qtFront* s; 00054 00055 int argc; 00056 char** argv; 00057 }
|
Definition at line 42 of file server/frontends/qt/qtFrontEnd.cpp.
00042 { 00043 this->argc=argc; 00044 this->argv=argv; 00045 00046 myUsers = 0; 00047 myMatrices = 0; 00048 00049 usersChanged = false; 00050 matricesChanged = false; 00051 strChanged = false; 00052 00053 myUsers = 0; 00054 myMatrices = 0; 00055 myStr = new Buffer (); 00056 }
|
|
Display a debug message.
msg | the debug message |
Reimplemented from FrontEnd.
Definition at line 159 of file server/frontends/qt/qtFrontEnd.cpp.
00159 { 00160 packet tmp; 00161 strcpy (tmp.data, msg); 00162 00163 myStr->write (&tmp); 00164 00165 strChanged = true; 00166 }
|
Display open matrices (OBSOLETE!!).
matrices | number of open matrices |
Reimplemented from FrontEnd.
Definition at line 143 of file server/frontends/qt/qtFrontEnd.cpp.
00143 { 00144 myMatrices = matrices; 00145 matricesChanged = true; 00146 }
|
Display logged in Users.
users | number of users to be displayed |
Reimplemented from FrontEnd.
Definition at line 127 of file server/frontends/qt/qtFrontEnd.cpp.
00127 { 00128 myUsers = users; 00129 usersChanged = true; 00130 }
|
Initialization function.
Reimplemented from FrontEnd.
Definition at line 69 of file server/frontends/qt/qtFrontEnd.cpp.
00069 { 00070 QApplication* qapp; 00071 qapp = new QApplication (argc, argv); 00072 00073 s=new qtFront(); 00074 qapp->setMainWidget(s); 00075 s->show(); 00076 00077 frontUpdate = new FrontUpdate (s, s); 00078 00079 timer = new QTimer (); 00080 QObject::connect (timer, SIGNAL (timeout ()), frontUpdate, SLOT (update ())); 00081 QObject::connect (frontUpdate, SIGNAL (sigUpdate ()), frontUpdate, SLOT (update ())); 00082 timer->start (100, FALSE); 00083 00084 qapp->exec (); 00085 00086 exit (0); 00087 }
|
Update function.
Reimplemented from FrontEnd.
Definition at line 112 of file server/frontends/qt/qtFrontEnd.cpp.
00112 { 00113 }
|
Definition at line 55 of file server/frontends/qt/qtFrontEnd.h.
|
Definition at line 56 of file server/frontends/qt/qtFrontEnd.h.
|
Definition at line 51 of file server/frontends/qt/qtFrontEnd.h.
|
Definition at line 53 of file server/frontends/qt/qtFrontEnd.h.
|
Definition at line 52 of file server/frontends/qt/qtFrontEnd.h.