[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Public Slots | Public Member Functions | Protected Member Functions | Properties
KLFShowHideSideWidgetManager Class Reference

A show-widget/hide-widget side widget show/hide manager. More...

#include <klfsidewidget.h>

Inheritance diagram for KLFShowHideSideWidgetManager:
Inheritance graph
[legend]
Collaboration diagram for KLFShowHideSideWidgetManager:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

A show-widget/hide-widget side widget show/hide manager.

Warning:
NOTE: You do not have to instantiate this class yourself to use KLFSideWidget. This is automatically done in KLFSideWidget::setSideWidgetManager().

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.


Constructor & Destructor Documentation

KLFShowHideSideWidgetManager::KLFShowHideSideWidgetManager ( QWidget *  parentWidget = NULL,
QWidget *  sideWidget = NULL,
QObject managerParent = NULL 
)

Definition at line 203 of file klfsidewidget.cpp.

References KLF_DELETE_PRIVATE.


Member Function Documentation

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]
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]
Qt::Orientation KLFShowHideSideWidgetManager::orientation ( ) const

Referenced by newSideWidgetSet().

void KLFShowHideSideWidgetManager::setOrientation ( Qt::Orientation  o) [slot]
void KLFShowHideSideWidgetManager::showSideWidget ( bool  show) [virtual, slot]

Implements KLFSideWidgetManagerBase.

Definition at line 270 of file klfsidewidget.cpp.

References KLF_ASSERT_NOT_NULL, and KLFSideWidgetManagerBase::sideWidget().

Referenced by showSideWidget().


Property Documentation

Definition at line 172 of file klfsidewidget.h.

Qt::Orientation KLFShowHideSideWidgetManager::orientation [read, write]

Definition at line 172 of file klfsidewidget.h.


The documentation for this class was generated from the following files:

Generated by doxygen 1.7.6.1. The KLatexFormula website is hosted on sourceforge.net