#include <QmitkApplication.h>
Public Member Functions | |
int | Start () |
void | Stop () |
Definition at line 25 of file QmitkApplication.h.
int QmitkApplication::Start | ( | ) | [virtual] |
Implements berry::IApplication.
Definition at line 24 of file QmitkApplication.cpp.
References berry::PlatformUI::CreateAndRunWorkbench(), berry::PlatformUI::CreateDisplay(), berry::IApplication::EXIT_OK, berry::IApplication::EXIT_RESTART, and berry::PlatformUI::RETURN_RESTART.
{ berry::Display* display = berry::PlatformUI::CreateDisplay(); int code = berry::PlatformUI::CreateAndRunWorkbench(display, new QmitkWorkbenchAdvisor()); // exit the application with an appropriate return code return code == berry::PlatformUI::RETURN_RESTART ? EXIT_RESTART : EXIT_OK; }
void QmitkApplication::Stop | ( | ) | [virtual] |