CMS 3D CMS Logo

IgQWorkspaceSite Class Reference

#include <Iguana/Studio/interface/IgQWorkspaceSite.h>

Inheritance diagram for IgQWorkspaceSite:

IgQtSiteStack IgQtSite IgSite

List of all members.

Public Member Functions

virtual void cascade (void)
IgQtSitehostWithName (const std::string &name)
 IgQWorkspaceSite (IgState *state, IgSite *parent)
virtual void tile (void)

Static Public Member Functions

static const char * catalogLabel (void)

Protected Member Functions

virtual void host (QWidget *child)
virtual QWidget * host (void)
virtual QWidget * self (void)

Private Attributes

std::string m_currentName
IgQtWorkspacem_widget


Detailed Description

Definition at line 20 of file IgQWorkspaceSite.h.


Constructor & Destructor Documentation

IgQWorkspaceSite::IgQWorkspaceSite ( IgState state,
IgSite parent 
)

Definition at line 17 of file IgQWorkspaceSite.cc.

References IgQtSite::host(), and m_widget.

00018     : m_widget (new IgQtWorkspace (hostFrom (parent))),
00019       m_currentName (IgDocumentDataRoot::getCurrentRoot())
00020 {    
00021     IgQtSite::host (parent, m_widget);
00022 }


Member Function Documentation

void IgQWorkspaceSite::cascade ( void   )  [virtual]

Reimplemented from IgQtSiteStack.

Definition at line 37 of file IgQWorkspaceSite.cc.

References m_widget.

00038 {
00039     m_widget->cascade ();
00040 }

const char * IgQWorkspaceSite::catalogLabel ( void   )  [static]

Definition at line 25 of file IgQWorkspaceSite.cc.

00026 { 
00027     return "QWorkspace"; 
00028 }

void IgQWorkspaceSite::host ( QWidget *  child  )  [protected, virtual]

Implements IgQtSite.

Definition at line 55 of file IgQWorkspaceSite.cc.

References IgDocumentDataRoot::getCurrentRoot(), m_currentName, and m_widget.

00056 {
00057     // FIXME: add requester on closing window.
00058     // connect (child, SIGNAL (close ()), this, SLOT (closeWindow ()))
00059     
00060     // FIXME: this is hackish... We should make sure that the this
00061     // is already shown when this is called so that its size cannot be
00062     // 0.
00063     QSize defaultSize (300, 300);
00064     child->resize (defaultSize.expandedTo (m_widget->size () / 2));
00065     child->parentWidget ()->setCaption (m_currentName);
00066 
00067     m_currentName = IgDocumentDataRoot::getCurrentRoot();    
00068 }

QWidget * IgQWorkspaceSite::host ( void   )  [protected, virtual]

Implements IgQtSite.

Definition at line 49 of file IgQWorkspaceSite.cc.

References m_widget.

00050 {
00051     return m_widget;
00052 }

IgQtSite * IgQWorkspaceSite::hostWithName ( const std::string &  name  ) 

Definition at line 71 of file IgQWorkspaceSite.cc.

References m_currentName.

00072 {
00073     m_currentName = name;    
00074     return this;    
00075 }

QWidget * IgQWorkspaceSite::self ( void   )  [protected, virtual]

Implements IgQtSite.

Definition at line 43 of file IgQWorkspaceSite.cc.

References m_widget.

00044 {
00045     return m_widget;
00046 }

void IgQWorkspaceSite::tile ( void   )  [virtual]

Reimplemented from IgQtSiteStack.

Definition at line 31 of file IgQWorkspaceSite.cc.

References m_widget.

00032 {
00033     m_widget->tile ();
00034 }


Member Data Documentation

std::string IgQWorkspaceSite::m_currentName [private]

Reimplemented from IgQtSiteStack.

Definition at line 39 of file IgQWorkspaceSite.h.

Referenced by host(), and hostWithName().

IgQtWorkspace* IgQWorkspaceSite::m_widget [private]

Definition at line 38 of file IgQWorkspaceSite.h.

Referenced by cascade(), host(), IgQWorkspaceSite(), self(), and tile().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:37 2009 for CMSSW by  doxygen 1.5.4