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

A generic container side widget show/hide manager (mac only) More...

#include <klfsidewidget.h>

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

List of all members.

Public Slots

virtual void showSideWidget (bool show)

Public Member Functions

 KLFContainerSideWidgetManager (QWidget *parentWidget=NULL, QWidget *sideWidget=NULL, QObject *managerParent=NULL)
virtual ~KLFContainerSideWidgetManager ()
virtual bool sideWidgetVisible () const
bool eventFilter (QObject *obj, QEvent *event)

Protected Member Functions

void init ()
 Must be called in subclasses' constructor.
virtual QWidget * createContainerWidget (QWidget *pw)=0
 Must be reimplemented to create the container widget.
virtual QWidget * containerWidget () const
virtual void newSideWidgetSet (QWidget *oldSideWidget, QWidget *newSideWidget)
virtual void newParentWidgetSet (QWidget *oldWidget, QWidget *newWidget)

Detailed Description

A generic container side widget show/hide manager (mac only)

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 class provides a generic container-based side widget manager, meant to be subclassed for more specific functionality. For example, both KLFFloatSideWidgetManager and KLFDrawerSideWidgetManager inherit this class.

Subclasses must reimplement createContainerWidget() to actually create the widget which will contain the side widget. Also, subclasses must not forget to call init() in their constructor.

Definition at line 223 of file klfsidewidget.h.


Constructor & Destructor Documentation

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

Member Function Documentation

QWidget * KLFContainerSideWidgetManager::containerWidget ( ) const [protected, virtual]
virtual QWidget* KLFContainerSideWidgetManager::createContainerWidget ( QWidget *  pw) [protected, pure virtual]

Must be reimplemented to create the container widget.

Implemented in KLFFloatSideWidgetManager.

Referenced by init().

bool KLFContainerSideWidgetManager::eventFilter ( QObject obj,
QEvent event 
) [virtual]

Reimplemented from QObject.

Definition at line 491 of file klfsidewidget.cpp.

References klfDbg, KLFSideWidgetManagerBase::showSideWidget(), and QEvent::type().

void KLFContainerSideWidgetManager::newParentWidgetSet ( QWidget *  oldWidget,
QWidget *  newWidget 
) [protected, virtual]

Reimplemented from KLFSideWidgetManagerBase.

Definition at line 559 of file klfsidewidget.cpp.

void KLFContainerSideWidgetManager::newSideWidgetSet ( QWidget *  oldSideWidget,
QWidget *  newSideWidget 
) [protected, virtual]
void KLFContainerSideWidgetManager::showSideWidget ( bool  show) [virtual, slot]

Implements KLFSideWidgetManagerBase.

Reimplemented in KLFFloatSideWidgetManager.

Definition at line 505 of file klfsidewidget.cpp.

References KLF_ASSERT_NOT_NULL.


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