Esempio n. 1
0
VtkWidget::VtkWidget(QWidget * parent)
  :  QWidget()
{
  this->setParent(parent);
  initializeMainWindow();
  vwidget = this;
}
ImageSyncApp::ImageSyncApp( int & argc, char ** argv )
      : QApplication( argc, argv ),
        mainWindow_( new ImageSyncMainWindow ), mainWindowContent_( new Ui::MainWindow ),
        incommingJobs_( new JobQueueSynchronized ), outgoingJobs_( new JobQueueSynchronized ),
        countJobsRequested_( 0 ), countJobsDone_( 0 ), operationCanceled_( false )
{
   incommingJobs_->setFullWatermark( 2000 );
   outgoingJobs_->setFullWatermark( 1 );
   initializeMainWindow();
}
Esempio n. 3
0
// Multi view constructor
VtkWidget::VtkWidget(VtkView *mvcont)
  :  QWidget()
{
  this->setParent(mvcont);
  id = mvcont->getNextViewerId();

  if (id > 0)
  {
    copyExistingPointers(mvcont);
  }
  else 
  {
    initializeMainWindow();
  }
  vwidget = this;
}
Esempio n. 4
0
/**
 * The application constructor
 */
RingApplication::RingApplication(int & argc, char ** argv) : QApplication(argc,argv)
{

#ifdef ENABLE_VIDEO
   //Necessary to draw OpenGL from a separated thread
   setAttribute(Qt::AA_X11InitThreads,true);
#endif

   try {
      CallModel::instance();
   }
   catch (...) {
      KMessageBox::error(Ring::app(),ErrorMessage::GENERIC_ERROR);
   }

   // Start remaining initialisation
   initializePaths();
   initializeMainWindow();

// #ifdef DISABLE_UNIQUE_APPLICATION
   newInstance();
// #endif
}