- tms-old
- tms
- tmsControlGui
- Gui.cpp
This file ( 801B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
/*******************************************************************************
* Gui.cc General Gui Interface
* T.Barnaby, BEAM Ltd, 2005-09-29
*******************************************************************************
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <Gui.h>
Gui::Gui(Control& control) :
ocontrol(control){
}
Gui::~Gui(){
}
BError Gui::init(int argc, char** argv){
BError err;
char banner[256];
sprintf(banner,"tmsControlGui on %s connected to: %s ring: %d", BSocketAddressINET::getHostName().retStr(), ghostName.retStr(), gring);
oapp = new QApplication(argc,argv);
oappGui = new TmsControlMainWin(ocontrol);
oapp->setMainWidget(oappGui);
oappGui->init(banner);
oappGui->show();
return err;
}
void Gui::run(){
oapp->exec();
}