#include <q3widgetstack_container.h>
Inheritance diagram for Q3WidgetStackContainer:


Definition at line 32 of file q3widgetstack_container.h.
Public Member Functions | |
| Q3WidgetStackContainer (QDesignerQ3WidgetStack *widget, QObject *parent=0) | |
| virtual int | count () const |
| virtual QWidget * | widget (int index) const |
| virtual int | currentIndex () const |
| virtual void | setCurrentIndex (int index) |
| virtual void | addWidget (QWidget *widget) |
| virtual void | insertWidget (int index, QWidget *widget) |
| virtual void | remove (int index) |
Private Attributes | |
| QDesignerQ3WidgetStack * | m_widget |
| QList< QWidget * > | m_pages |
| Q3WidgetStackContainer::Q3WidgetStackContainer | ( | QDesignerQ3WidgetStack * | widget, | |
| QObject * | parent = 0 | |||
| ) |
| int Q3WidgetStackContainer::count | ( | ) | const [virtual] |
Implements QDesignerContainerExtension.
Definition at line 34 of file q3widgetstack_container.cpp.
References QList< T >::count(), and m_pages.
Referenced by remove().
Here is the call graph for this function:

| QWidget * Q3WidgetStackContainer::widget | ( | int | index | ) | const [virtual] |
Implements QDesignerContainerExtension.
Definition at line 37 of file q3widgetstack_container.cpp.
References QList< T >::at(), and m_pages.
Referenced by addWidget(), and insertWidget().
Here is the call graph for this function:

| int Q3WidgetStackContainer::currentIndex | ( | ) | const [virtual] |
Implements QDesignerContainerExtension.
Definition at line 45 of file q3widgetstack_container.cpp.
References QList< T >::indexOf(), m_pages, m_widget, and Q3WidgetStack::visibleWidget().
Referenced by remove().
00046 { return m_pages.indexOf(m_widget->visibleWidget()); }
Here is the call graph for this function:

| void Q3WidgetStackContainer::setCurrentIndex | ( | int | index | ) | [virtual] |
Implements QDesignerContainerExtension.
Definition at line 48 of file q3widgetstack_container.cpp.
References QList< T >::at(), m_pages, m_widget, and Q3WidgetStack::raiseWidget().
00049 { m_widget->raiseWidget(m_pages.at(index)); }
Here is the call graph for this function:

| void Q3WidgetStackContainer::addWidget | ( | QWidget * | widget | ) | [virtual] |
Implements QDesignerContainerExtension.
Definition at line 51 of file q3widgetstack_container.cpp.
References Q3WidgetStack::addWidget(), QList< T >::append(), m_pages, m_widget, and widget().
Here is the call graph for this function:

| void Q3WidgetStackContainer::insertWidget | ( | int | index, | |
| QWidget * | widget | |||
| ) | [virtual] |
Implements QDesignerContainerExtension.
Definition at line 57 of file q3widgetstack_container.cpp.
References Q3WidgetStack::addWidget(), QList< T >::insert(), m_pages, m_widget, QDesignerQ3WidgetStack::setCurrentIndex(), and widget().
00058 { 00059 m_pages.insert(index, widget); 00060 m_widget->addWidget(widget); 00061 m_widget->setCurrentIndex(index); 00062 }
Here is the call graph for this function:

| void Q3WidgetStackContainer::remove | ( | int | index | ) | [virtual] |
Implements QDesignerContainerExtension.
Definition at line 64 of file q3widgetstack_container.cpp.
References QList< T >::at(), count(), currentIndex(), m_pages, m_widget, QList< T >::removeAt(), Q3WidgetStack::removeWidget(), and QDesignerQ3WidgetStack::setCurrentIndex().
00065 { 00066 int current = currentIndex(); 00067 m_widget->removeWidget(m_pages.at(index)); 00068 m_pages.removeAt(index); 00069 if (index == current) { 00070 if (count() > 0) 00071 m_widget->setCurrentIndex((index == count()) ? index-1 : index); 00072 } else if (index < current) { 00073 if (current > 0) 00074 m_widget->setCurrentIndex(current-1); 00075 } 00076 }
Here is the call graph for this function:

Definition at line 48 of file q3widgetstack_container.h.
Referenced by addWidget(), currentIndex(), insertWidget(), remove(), and setCurrentIndex().
QList<QWidget*> Q3WidgetStackContainer::m_pages [private] |
Definition at line 49 of file q3widgetstack_container.h.
Referenced by addWidget(), count(), currentIndex(), insertWidget(), remove(), setCurrentIndex(), and widget().
1.5.1