00001 //<<<<<< INCLUDES >>>>>> 00002 00003 #include "Iguana/Studio/interface/IgQToolBoxSite.h" 00004 #include <qtoolbox.h> 00005 00006 //<<<<<< PRIVATE DEFINES >>>>>> 00007 //<<<<<< PRIVATE CONSTANTS >>>>>> 00008 //<<<<<< PRIVATE TYPES >>>>>> 00009 //<<<<<< PRIVATE VARIABLE DEFINITIONS >>>>>> 00010 //<<<<<< PUBLIC VARIABLE DEFINITIONS >>>>>> 00011 //<<<<<< CLASS STRUCTURE INITIALIZATION >>>>>> 00012 //<<<<<< PRIVATE FUNCTION DEFINITIONS >>>>>> 00013 //<<<<<< PUBLIC FUNCTION DEFINITIONS >>>>>> 00014 //<<<<<< MEMBER FUNCTION DEFINITIONS >>>>>> 00015 00016 IgQToolBoxSite::IgQToolBoxSite (IgState *, IgQtSite *parent) 00017 : m_widget (new QToolBox (hostFrom (parent))), 00018 m_currentName ("") 00019 { 00020 IgQtSite::host (parent, m_widget); 00021 } 00022 00023 const char * 00024 IgQToolBoxSite::catalogLabel (void) 00025 { 00026 return "QToolBox"; 00027 } 00028 00029 QWidget * 00030 IgQToolBoxSite::self (void) 00031 { 00032 return m_widget; 00033 } 00034 00035 QWidget * 00036 IgQToolBoxSite::host (void) 00037 { 00038 return m_widget; 00039 } 00040 00041 void 00042 IgQToolBoxSite::host (QWidget *child) 00043 { 00044 m_widget->addItem (child, m_currentName); 00045 } 00046 00047 IgQtSite * 00048 IgQToolBoxSite::hostWithName (const std::string &name) 00049 { 00050 m_currentName = name; 00051 return this; 00052 }