diff options
author | seibelr <seibelr@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-11-24 22:12:20 +0000 |
---|---|---|
committer | seibelr <seibelr@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-11-24 22:12:20 +0000 |
commit | 47b676670dc9373bc77af80388e0b51e36134738 (patch) | |
tree | aacce0809279e1d142e7b196a84ff10dfbdae4d0 /CIAO/examples/Display/NavDisplayGUI_exec/Worker.cpp | |
parent | 3dd4e2fe6c64de3a9db04757eade78d764b578f1 (diff) | |
download | ATCD-GH5_0port.tar.gz |
Added the ACE and TAO for this branchGH5_0port
Diffstat (limited to 'CIAO/examples/Display/NavDisplayGUI_exec/Worker.cpp')
-rw-r--r-- | CIAO/examples/Display/NavDisplayGUI_exec/Worker.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/CIAO/examples/Display/NavDisplayGUI_exec/Worker.cpp b/CIAO/examples/Display/NavDisplayGUI_exec/Worker.cpp deleted file mode 100644 index 4257dd69f46..00000000000 --- a/CIAO/examples/Display/NavDisplayGUI_exec/Worker.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ - -#include "Worker.h" -#include <qapplication.h> -#include <qmotifstyle.h> -#include <qcdestyle.h> -#include <qwindowsstyle.h> -#include <qplatinumstyle.h> -#include <qsgistyle.h> - - -int -Worker::svc (void) -{ - ACE_DEBUG((LM_DEBUG, "ENTER: Worker::svc()\n")); - - QApplication a(argc_, argv_); - a.setStyle(new QPlatinumStyle); - QCanvas canvas(600, 387); - //QCanvas canvas(566, 679); - //QCanvas canvas(550, 723); - canvas.setAdvancePeriod(30); - RootPanel root_panel(canvas); - root_panel.resize(root_panel.sizeHint()); - - root_panel.resize(600, 650); - root_panel.setCaption("NavDisplay"); - - a.setMainWidget(&root_panel); - - QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) ); - - if(QApplication::desktop()->width() > 550 - && QApplication::desktop()->height() > 366) - root_panel.show(); - else - root_panel.showMaximized(); - - main_wnd_ = &root_panel; - init_complete_.signal(); - - int retval = a.exec(); - - main_wnd_ = NULL; - - ACE_DEBUG((LM_DEBUG, "LEAVE: Worker::svc()\n")); - return retval; -} |