sscControlQt.cpp

Go to the documentation of this file.
00001 /*! @file Qt/sscControlQt.cpp Qt interface for ssc control */
00002 
00003 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/Qt/sscControlQt.cpp $
00004 // $Id: sscControlQt.cpp 5957 2005-11-16 18:10:52Z rjpeters $
00005 
00006 #include <qapplication.h>
00007 #include "Qt/ui/SSCMainForm.h"
00008 
00009 int main( int argc, char ** argv )
00010 {
00011   // instantiate a model manager:
00012   ModelManager manager("sscControlQt");
00013 
00014   // instantiate our various ModelComponents:
00015   nub::soft_ref<SSC> ssc(new SSC(manager));
00016   manager.addSubComponent(ssc);
00017 
00018   // Let's get going:
00019   manager.start();
00020 
00021   // get the Qt form up and going:
00022   QApplication a(argc, argv);
00023   SSCMainForm *w = new SSCMainForm;
00024   w->init(&manager, ssc);
00025   w->show();
00026   a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
00027 
00028   // run the form until the user quits it:
00029   int retval = a.exec();
00030 
00031   // close down the manager:
00032   manager.stop();
00033 
00034   return retval;
00035 }
Generated on Sun May 8 08:41:15 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3