#include <Iguana/Studio/interface/IgQWorkspaceSite.h>
Public Member Functions | |
virtual void | cascade (void) |
IgQtSite * | hostWithName (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 |
IgQtWorkspace * | m_widget |
Definition at line 20 of file IgQWorkspaceSite.h.
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 }
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] |
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 }
Reimplemented from IgQtSiteStack.
Definition at line 31 of file IgQWorkspaceSite.cc.
References m_widget.
00032 { 00033 m_widget->tile (); 00034 }
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().