#include </home/clem/local/src/opie/libopie2/opieui/big-screen/osplitter.h>
Collaboration diagram for Opie::Ui::OSplitter:

Public Types | |
| typedef QValueList< Opie::Ui::Internal::OSplitterContainer > | ContainerList |
Signals | |
| void | currentChanged (QWidget *) |
| void | sizeChanged (bool b, Orientation ori) |
Public Member Functions | |
| OSplitter (Qt::Orientation=Horizontal, QWidget *parent=0, const char *name=0, WFlags fl=0) | |
| ~OSplitter () | |
| void | setLabel (const QString &name) |
| void | setIconName (const QString &name) |
| QString | label () const |
| QString | iconName () const |
| void | setSizeChange (int width_height) |
| void | addWidget (OSplitter *splitter) |
| void | addWidget (QWidget *wid, const QString &icon, const QString &label) |
| void | removeWidget (QWidget *) |
| void | removeWidget (OSplitter *) |
| void | setCurrentWidget (QWidget *) |
| void | setCurrentWidget (const QString &label) |
| void | setCurrentWidget (int) |
| QWidget * | currentWidget () const |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *) |
Private Member Functions | |
| bool | layoutMode () const |
| void | setTabWidget (OTabWidget *) |
| void | addToTab (const Opie::Ui::Internal::OSplitterContainer &) |
| void | addToBox (const Opie::Ui::Internal::OSplitterContainer &) |
| void | removeFromTab (QWidget *) |
| void | changeTab () |
| void | changeHBox () |
| void | changeVBox () |
| void | commonChangeBox () |
Private Attributes | |
| QHBox * | m_hbox |
| OTabWidget * | m_tabWidget |
| OTabWidget * | m_parentTab |
| Orientation | m_orient |
| int | m_size_policy |
| ContainerList | m_container |
| QList< OSplitter > | m_splitter |
| QString | m_icon |
| QString | m_name |
| Private * | d |
If you've widgets that could be placed side by side but you think on small resolutions is not enough place but it would really make sense on bigger resolutions this class will help you. You can add as many widgets you want to it. Set a poliy on which width/height it should switch the layout. You can either say to place widgets vertical or horizontal. This class uses QHBox, QVBox and QTAbWidget internally. OSplitter takes ownership of the widgets
Definition at line 72 of file osplitter.h.
|
|
Definition at line 74 of file osplitter.h. |
|
||||||||||||||||||||
|
|
|
|
Destructor destructs this object and cleans up. All child widgets will be deleted
Definition at line 83 of file osplitter.cpp. References m_hbox, m_splitter, and m_tabWidget. |
|
|
Definition at line 408 of file osplitter.cpp. References m_hbox, wid, and Opie::Ui::Internal::OSplitterContainer::widget. Referenced by addWidget(), and commonChangeBox(). |
|
|
Definition at line 394 of file osplitter.cpp. References Opie::Ui::OTabWidget::addTab(), Opie::Ui::Internal::OSplitterContainer::icon, m_tabWidget, Opie::Ui::Internal::OSplitterContainer::name, wid, and Opie::Ui::Internal::OSplitterContainer::widget. Referenced by addWidget(), and changeTab(). |
|
||||||||||||||||
|
Adds a widget to the Splitter. The widgets gets inserted at the end of either the Box or TabWidget. Ownership gets transfered and the widgets gets reparented. Note: icon and label is only available on small screensizes if size is smaller than the mark Warning: No null checking of the widget is done. Only on debug a message will be outputtet
Definition at line 208 of file osplitter.cpp. References addToBox(), addToTab(), QValueList< T >::append(), Opie::Ui::Internal::OSplitterContainer::icon, m_container, m_hbox, m_parentTab, m_splitter, m_tabWidget, Opie::Ui::Internal::OSplitterContainer::name, setTabWidget(), and Opie::Ui::Internal::OSplitterContainer::widget. |
|
|
This functions allows to add another OSplitter and to share the OTabBar in small screen mode. The ownerships gets transfered. OSplitters are always added after normal widget items Definition at line 161 of file osplitter.cpp. References addToBox(), m_parentTab, m_splitter, m_tabWidget, setTabWidget(), and Opie::Ui::Internal::OSplitterContainer::widget. |
|
|
Definition at line 491 of file osplitter.cpp. References commonChangeBox(), and m_hbox. Referenced by resizeEvent(), and setTabWidget(). |
|
|
Definition at line 430 of file osplitter.cpp. References addToTab(), QValueList< T >::begin(), currentChanged(), QValueList< T >::end(), QValueList< T >::isEmpty(), m_container, m_hbox, m_splitter, and m_tabWidget. Referenced by resizeEvent(), and setTabWidget(). |
|
|
Definition at line 503 of file osplitter.cpp. References commonChangeBox(), and m_hbox. Referenced by resizeEvent(), and setTabWidget(). |
|
|
Definition at line 523 of file osplitter.cpp. References addToBox(), QValueList< T >::begin(), QValueList< T >::end(), iconName(), label(), m_container, m_hbox, m_splitter, m_tabWidget, removeFromTab(), and Opie::Ui::Internal::OSplitterContainer::widget. Referenced by changeHBox(), and changeVBox(). |
|
|
Emitted if in tab and comes directly from the tab widget Referenced by changeTab(). |
|
|
return the currently activated widget if in tab widget mode or null because all widgets are visible Definition at line 320 of file osplitter.cpp. References Opie::Ui::OTabWidget::currentWidget(), l, m_parentTab, and m_tabWidget. |
|
|
returns the iconName
Definition at line 121 of file osplitter.cpp. References m_icon. Referenced by commonChangeBox(). |
|
|
returns the label set with setLabel
Definition at line 130 of file osplitter.cpp. References m_name. Referenced by commonChangeBox(). |
|
|
For internal use only.
Definition at line 611 of file osplitter.cpp. References height, m_orient, m_size_policy, size, and width. Referenced by setTabWidget(). |
|
|
Definition at line 418 of file osplitter.cpp. References m_tabWidget, and Opie::Ui::OTabWidget::removePage(). Referenced by commonChangeBox(), and removeWidget(). |
|
|
This removes the splitter again. You currently need to call this before you delete or otherwise you can get mem corruption or other weird behaviour. Owner ship gets transfered back to you it's current parent is 0 Definition at line 189 of file osplitter.cpp. References setTabWidget(). |
|
|
Removes the widget from the tab widgets if necessary. OSplitter drops ownership of this widget and the widget will be reparented i tto 0. The widget will not be deleted.
Definition at line 244 of file osplitter.cpp. References QValueList< T >::begin(), QValueList< T >::end(), m_container, m_hbox, QValueList< T >::remove(), and removeFromTab(). |
|
|
for internal reasons Definition at line 360 of file osplitter.cpp. References changeHBox(), changeTab(), changeVBox(), m_orient, m_size_policy, and sizeChanged(). Referenced by setSizeChange(). |
|
|
This will only work when the TabWidget is active If everything is visible this signal is kindly ignored
Definition at line 310 of file osplitter.cpp. References m_tabWidget, and Opie::Ui::OTabWidget::setCurrentTab(). |
|
|
This is an overloaded member function and only differs in the argument it takes. Searches list of widgets for label. It'll pick the first label it finds
Definition at line 290 of file osplitter.cpp. References QValueList< T >::begin(), QValueList< T >::end(), m_container, and setCurrentWidget(). |
|
|
This method will give focus to the widget. If in a tabwidget the tabbar will be changed
Definition at line 274 of file osplitter.cpp. References m_tabWidget, and Opie::Ui::OTabWidget::setCurrentTab(). Referenced by setCurrentWidget(). |
|
|
Definition at line 111 of file osplitter.cpp. References m_icon. |
|
|
Sets the label for the Splitter. This label will be used if a parent splitter is arranged as TabWidget but this splitter is in fullscreen mode. Then a tab with OSplitter::label() and iconName() gets added.
Definition at line 101 of file osplitter.cpp. References m_name. |
|
|
This function sets the size change policy of the splitter. If this size marked is crossed the splitter will relayout. Note: that depending on the set Orientation it'll either look at the width or height. Note: If you want to from side to side view to tabbed view you need to make sure that the size you supply is not smaller than the minimum size of your added widgets. Note that if you use widgets like QComboBoxes you need to teach them to accept smaller sizes as well
Definition at line 148 of file osplitter.cpp. References height, m_size_policy, resizeEvent(), and width. Referenced by ListViews::ListViews(). |
|
|
Definition at line 560 of file osplitter.cpp. References QValueList< T >::begin(), changeHBox(), changeTab(), changeVBox(), QValueList< T >::end(), QValueList< T >::isEmpty(), layoutMode(), m_container, m_hbox, m_orient, and m_tabWidget. Referenced by addWidget(), and removeWidget(). |
|
||||||||||||
|
emitted whenever a border is crossed true if in small screen mode false if in bigscreen this signal is emitted after the layout switch Referenced by resizeEvent(). |
|
|
Definition at line 145 of file osplitter.h. |
|
|
Definition at line 140 of file osplitter.h. Referenced by addWidget(), changeTab(), commonChangeBox(), removeWidget(), setCurrentWidget(), and setTabWidget(). |
|
|
Definition at line 134 of file osplitter.h. Referenced by addToBox(), addWidget(), changeHBox(), changeTab(), changeVBox(), commonChangeBox(), removeWidget(), setTabWidget(), and ~OSplitter(). |
|
|
Definition at line 143 of file osplitter.h. Referenced by iconName(), and setIconName(). |
|
|
Definition at line 143 of file osplitter.h. Referenced by label(), and setLabel(). |
|
|
Definition at line 137 of file osplitter.h. Referenced by layoutMode(), resizeEvent(), and setTabWidget(). |
|
|
Definition at line 136 of file osplitter.h. Referenced by addWidget(), and currentWidget(). |
|
|
Definition at line 138 of file osplitter.h. Referenced by layoutMode(), resizeEvent(), and setSizeChange(). |
|
|
Definition at line 141 of file osplitter.h. Referenced by addWidget(), changeTab(), commonChangeBox(), and ~OSplitter(). |
|
|
Definition at line 135 of file osplitter.h. Referenced by addToTab(), addWidget(), changeTab(), commonChangeBox(), currentWidget(), removeFromTab(), setCurrentWidget(), setTabWidget(), and ~OSplitter(). |
1.4.2