00001 //<<<<<< INCLUDES >>>>>> 00002 00003 #include "Iguana/Studio/interface/IgQDockWindowSite.h" 00004 #include <qdockwindow.h> 00005 #include <qlayout.h> 00006 00007 //<<<<<< PRIVATE DEFINES >>>>>> 00008 //<<<<<< PRIVATE CONSTANTS >>>>>> 00009 //<<<<<< PRIVATE TYPES >>>>>> 00010 //<<<<<< PRIVATE VARIABLE DEFINITIONS >>>>>> 00011 //<<<<<< PUBLIC VARIABLE DEFINITIONS >>>>>> 00012 //<<<<<< CLASS STRUCTURE INITIALIZATION >>>>>> 00013 //<<<<<< PRIVATE FUNCTION DEFINITIONS >>>>>> 00014 //<<<<<< PUBLIC FUNCTION DEFINITIONS >>>>>> 00015 //<<<<<< MEMBER FUNCTION DEFINITIONS >>>>>> 00016 00017 IgQDockWindowSite::IgQDockWindowSite (IgState */*state*/, IgSite *parent) 00018 : m_widget (new QDockWindow (QDockWindow::InDock, 00019 hostFrom (parent))) 00020 { 00021 m_widget->setResizeEnabled (true); 00022 m_widget->hide (); 00023 00024 IgQtSite::host (parent, m_widget); 00025 } 00026 00027 IgQDockWindowSite::IgQDockWindowSite (IgSite *parent, QDockWindow *widget) 00028 : m_widget (widget), 00029 m_layout (new QGridLayout (m_widget)) 00030 { 00031 IgQtSite::host (parent, m_widget); 00032 } 00033 00034 const char * 00035 IgQDockWindowSite::catalogLabel (void) 00036 { return "QDockWindow"; } 00037 00038 QWidget * 00039 IgQDockWindowSite::self (void) 00040 { 00041 00042 return m_widget; 00043 } 00044 00045 QWidget * 00046 IgQDockWindowSite::host (void) 00047 { 00048 return m_widget; 00049 } 00050 00051 void 00052 IgQDockWindowSite::host (QWidget *widget) 00053 { 00054 m_widget->setWidget (widget); 00055 m_widget->show (); 00056 widget->show (); 00057 }