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) |
![]() | |
virtual void | showSideWidget (bool show)=0 |
Show or hide the side widget. More... | |
void | showSideWidget () |
void | hideSideWidget (bool hide=true) |
void | toggleSideWidget () |
virtual void | waitForShowHideActionFinished (int timeout_ms=2000) |
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 |
![]() | |
KLFSideWidgetManagerBase (QWidget *parentWidget=NULL, QWidget *sideWidget=NULL, bool requireSideWidgetParentConsistency=false, QObject *managerParent=NULL) | |
virtual | ~KLFSideWidgetManagerBase () |
virtual QWidget * | sideWidget () const |
virtual QWidget * | ourParentWidget () const |
void | setSideWidget (QWidget *widget) |
void | setOurParentWidget (QWidget *widget) |
![]() | |
QObject (QObject *parent) | |
virtual | ~QObject () |
virtual const QMetaObject * | metaObject () const |
QString | objectName () const |
void | setObjectName (const QString &name) |
bool | isWidgetType () const |
bool | isWindowType () const |
bool | signalsBlocked () const |
bool | blockSignals (bool block) |
QThread * | thread () const |
void | moveToThread (QThread *targetThread) |
int | startTimer (int interval, Qt::TimerType timerType) |
void | killTimer (int id) |
T | findChild (const QString &name, Qt::FindChildOptions options) const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const |
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const |
const QObjectList & | children () const |
void | setParent (QObject *parent) |
void | installEventFilter (QObject *filterObj) |
void | removeEventFilter (QObject *obj) |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const |
bool | disconnect (const QObject *receiver, const char *method) const |
void | dumpObjectTree () |
void | dumpObjectInfo () |
bool | setProperty (const char *name, const QVariant &value) |
QVariant | property (const char *name) const |
QList< QByteArray > | dynamicPropertyNames () const |
void | destroyed (QObject *obj) |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const |
bool | inherits (const char *className) const |
void | deleteLater () |
Protected Member Functions | |
virtual bool | event (QEvent *event) |
virtual void | newSideWidgetSet (QWidget *oldSideWidget, QWidget *newSideWidget) |
virtual void | newParentWidgetSet (QWidget *oldParentWidget, QWidget *newParentWidget) |
![]() | |
virtual bool | showHideIsAnimating () |
![]() | |
QObject * | sender () const |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
virtual void | childEvent (QChildEvent *event) |
virtual void | customEvent (QEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
Properties | |
Qt::Orientation | orientation |
int | calcSpacing |
![]() | |
objectName | |
Additional Inherited Members | |
![]() | |
void | sideWidgetShown (bool shown) |
Emitted whenever the shown status of the side widget has changed. More... | |
![]() | |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
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().
|
virtual |
Definition at line 203 of file klfsidewidget.cpp.
References KLF_DELETE_PRIVATE.
int KLFShowHideSideWidgetManager::calcSpacing | ( | ) | const |
Referenced by showSideWidget().
|
protectedvirtual |
Reimplemented from QObject.
Definition at line 307 of file klfsidewidget.cpp.
References QObject::event().
Reimplemented from QObject.
Definition at line 276 of file klfsidewidget.cpp.
References QObject::eventFilter(), KLF_ASSERT_CONDITION, klfDbg, QResizeEvent::oldSize(), KLFSideWidgetManagerBase::ourParentWidget(), KLFSideWidgetManagerBase::setOurParentWidget(), KLFSideWidgetManagerBase::sideWidget(), QResizeEvent::size(), and QEvent::type().
|
protectedvirtual |
Reimplemented from KLFSideWidgetManagerBase.
Definition at line 256 of file klfsidewidget.cpp.
References KLF_DEBUG_BLOCK, and KLF_FUNC_NAME.
|
protectedvirtual |
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 |
Referenced by showSideWidget().
|
slot |
Referenced by newSideWidgetSet().
|
slot |
|
virtualslot |
Definition at line 313 of file klfsidewidget.cpp.
References calcSpacing(), QMetaObject::invokeMethod(), KLF_ASSERT_CONDITION, KLF_ASSERT_NOT_NULL, KLF_DEBUG_BLOCK, KLF_DEFINE_PROPERTY_GETSET(), KLF_FUNC_NAME, KLF_PRIVATE_HEAD, klfDbg, orientation(), KLFSideWidgetManagerBase::ourParentWidget(), KLFSideWidgetManagerBase::setOurParentWidget(), KLFSideWidgetManagerBase::sideWidget(), and sideWidgetVisible().
|
virtual |
Implements KLFSideWidgetManagerBase.
Definition at line 270 of file klfsidewidget.cpp.
References KLF_ASSERT_NOT_NULL, and KLFSideWidgetManagerBase::sideWidget().
Referenced by showSideWidget().
|
readwrite |
Definition at line 172 of file klfsidewidget.h.
|
readwrite |
Definition at line 172 of file klfsidewidget.h.