CMS 3D CMS Logo

IgMDIView.cc

Go to the documentation of this file.
00001 //<<<<<< INCLUDES                                                       >>>>>>
00002 
00003 #include "Iguana/Studio/interface/IgMDIView.h"
00004 #include "Iguana/Studio/interface/IgViewDB.h"
00005 #include "Iguana/Studio/interface/IgPage.h"
00006 #include "Iguana/Studio/interface/IgView.h"
00007 #include "Iguana/Studio/interface/IgDocumentData.h"
00008 #include "Iguana/Framework/interface/IgTwig.h"
00009 #include "Iguana/Studio/interface/IgQWorkspaceSite.h"
00010 #include "Iguana/Studio/interface/IgQDockWindowSite.h"
00011 #include "Iguana/Framework/interface/IgBrowser.h"
00012 #include "Iguana/Framework/interface/IgBrowserDB.h"
00013 #include <qwidget.h>
00014 
00015 //<<<<<< PRIVATE DEFINES                                                >>>>>>
00016 //<<<<<< PRIVATE CONSTANTS                                              >>>>>>
00017 //<<<<<< PRIVATE TYPES                                                  >>>>>>
00018 //<<<<<< PRIVATE VARIABLE DEFINITIONS                                   >>>>>>
00019 //<<<<<< PUBLIC VARIABLE DEFINITIONS                                    >>>>>>
00020 //<<<<<< CLASS STRUCTURE INITIALIZATION                                 >>>>>>
00021 //<<<<<< PRIVATE FUNCTION DEFINITIONS                                   >>>>>>
00022 //<<<<<< PUBLIC FUNCTION DEFINITIONS                                    >>>>>>
00023 //<<<<<< MEMBER FUNCTION DEFINITIONS                                    >>>>>>
00024 
00025 IgMDIView::IgMDIView (IgPage *page, const char *window /*= 0*/)
00026 {
00027     IgBrowser *twig = IgBrowserDB::get()->create ("Twig", page->state (),
00028                                 page->stackArea ()->hostWithName ("Main model"));
00029     IgBrowser *text = IgBrowserDB::get()->create ("Text", page->state (),
00030                                 new IgQDockWindowSite (page->state (),
00031                                                        page->leftDockArea ()));
00032     
00033     IgQtSite::selfFrom (page)->show ();
00034     
00035     QString name ("3D Window");
00036     if (window)
00037       name = window;
00038     IgBrowser *browser = dynamic_cast<IgBrowser*>(
00039                         IgViewDB::get()->create (name.latin1 (), page ));
00040     
00041     IgRepresentable *obj = IgDocumentData::get (page->state ())->root ();
00042     browser->browse (obj);
00043     twig->browse (obj);
00044     text->browse (obj);
00045 }

Generated on Tue Jun 9 17:38:49 2009 for CMSSW by  doxygen 1.5.4