A show-widget/hide-widget side widget show/hide manager. More...
#include <klfsidewidget.h>
Public Slots | |
virtual void | showSideWidget (bool show) |
void | setOrientation (Qt::Orientation o) |
void | setCalcSpacing (int cs) |
Public Member Functions | |
KLFShowHideSideWidgetManager (QWidget *parentWidget=NULL, QWidget *sideWidget=NULL, QObject *managerParent=NULL) | |
virtual | ~KLFShowHideSideWidgetManager () |
Qt::Orientation | orientation () const |
int | calcSpacing () const |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
virtual bool | sideWidgetVisible () const |
Protected Member Functions | |
virtual bool | event (QEvent *event) |
virtual void | newSideWidgetSet (QWidget *oldSideWidget, QWidget *newSideWidget) |
virtual void | newParentWidgetSet (QWidget *oldParentWidget, QWidget *newParentWidget) |
Properties | |
Qt::Orientation | orientation |
int | calcSpacing |
A show-widget/hide-widget side widget show/hide manager.
This class is provided in case you want to subclass it and use part of its functionality to write custom, more advanced side widget managers. See also KLFSideWidgetManagerBase.
This manager just shows and hides the widget inside its original parent layout, and adapts the parent's size correctly upon each show/hide.
Definition at line 168 of file klfsidewidget.h.
KLFShowHideSideWidgetManager::KLFShowHideSideWidgetManager | ( | QWidget * | parentWidget = NULL , |
QWidget * | sideWidget = NULL , |
||
QObject * | managerParent = NULL |
||
) |
Definition at line 193 of file klfsidewidget.cpp.
References KLF_INIT_PRIVATE, KLFSideWidgetManagerBase::setOurParentWidget(), and KLFSideWidgetManagerBase::setSideWidget().
Definition at line 203 of file klfsidewidget.cpp.
References KLF_DELETE_PRIVATE.
int KLFShowHideSideWidgetManager::calcSpacing | ( | ) | const |
bool KLFShowHideSideWidgetManager::event | ( | QEvent * | event | ) | [protected, virtual] |
Reimplemented from QObject.
Definition at line 307 of file klfsidewidget.cpp.
bool KLFShowHideSideWidgetManager::eventFilter | ( | QObject * | obj, |
QEvent * | event | ||
) | [virtual] |
Reimplemented from QObject.
Definition at line 276 of file klfsidewidget.cpp.
References KLF_ASSERT_CONDITION, klfDbg, QResizeEvent::oldSize(), KLFSideWidgetManagerBase::ourParentWidget(), KLFSideWidgetManagerBase::setOurParentWidget(), KLFSideWidgetManagerBase::sideWidget(), QResizeEvent::size(), and QEvent::type().
void KLFShowHideSideWidgetManager::newParentWidgetSet | ( | QWidget * | oldParentWidget, |
QWidget * | newParentWidget | ||
) | [protected, virtual] |
Reimplemented from KLFSideWidgetManagerBase.
Definition at line 256 of file klfsidewidget.cpp.
References KLF_DEBUG_BLOCK, and KLF_FUNC_NAME.
void KLFShowHideSideWidgetManager::newSideWidgetSet | ( | QWidget * | oldSideWidget, |
QWidget * | newSideWidget | ||
) | [protected, virtual] |
Reimplemented from KLFSideWidgetManagerBase.
Definition at line 209 of file klfsidewidget.cpp.
References KLF_ASSERT_CONDITION, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, KLFSideWidgetManagerBase::ourParentWidget(), setCalcSpacing(), KLFSideWidgetManagerBase::setOurParentWidget(), and KLFSideWidgetManagerBase::sideWidgetShown().
Qt::Orientation KLFShowHideSideWidgetManager::orientation | ( | ) | const |
void KLFShowHideSideWidgetManager::setCalcSpacing | ( | int | cs | ) | [slot] |
Referenced by newSideWidgetSet().
void KLFShowHideSideWidgetManager::setOrientation | ( | Qt::Orientation | o | ) | [slot] |
void KLFShowHideSideWidgetManager::showSideWidget | ( | bool | show | ) | [virtual, slot] |
Implements KLFSideWidgetManagerBase.
Definition at line 313 of file klfsidewidget.cpp.
References QMetaObject::invokeMethod(), KLF_ASSERT_CONDITION, KLF_ASSERT_NOT_NULL, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, KLFSideWidgetManagerBase::ourParentWidget(), KLFSideWidgetManagerBase::setOurParentWidget(), KLFSideWidgetManagerBase::sideWidget(), and sideWidgetVisible().
bool KLFShowHideSideWidgetManager::sideWidgetVisible | ( | ) | const [virtual] |
Implements KLFSideWidgetManagerBase.
Definition at line 270 of file klfsidewidget.cpp.
References KLF_ASSERT_NOT_NULL, and KLFSideWidgetManagerBase::sideWidget().
Referenced by showSideWidget().
int KLFShowHideSideWidgetManager::calcSpacing [read, write] |
Definition at line 172 of file klfsidewidget.h.
Qt::Orientation KLFShowHideSideWidgetManager::orientation [read, write] |
Definition at line 172 of file klfsidewidget.h.