All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Signals | Public Member Functions
Qtilities::Plugins::Help::SearchWidgetFactory Class Reference

The SearchWidgetFactory class makes a QHelpSearchQueryWidget and QHelpSearchResultsWidget available for the HELP_MANAGER available as a side viewer widget. More...

#include <SearchWidgetFactory.h>

Inheritance diagram for Qtilities::Plugins::Help::SearchWidgetFactory:
Inheritance graph
[legend]

List of all members.

Signals

void newWidgetCreated (QWidget *widget)
 Signal which is emitted when a new widget was manufactured.

Public Member Functions

IActionProvideractionProvider () const
 Provides an action provider interface to provide actions to be shown in the SideWidgetWrapper class.
QList< int > destinationModes () const
 Indication of the modes (which have dynamic side viewer widgets) in which the side viewer may appear.
bool isExclusive () const
 Indicates if the widget is exclusive.
bool manageWidgets () const
 When true, the dynamic side viewer widget will manage the lifetime of widgets returned through produceWidget().
QObject * objectBase ()
 Returns the QObject* base of the interface.
const QObject * objectBase () const
 Returns a const QObject* base of the interface.
QWidget * produceWidget ()
 Function which returns the side viewer widget.
QList< int > startupModes () const
 Indicates if the widget should be shown on startup.
QString widgetLabel () const
 The text used to represent the widget.

Detailed Description

The SearchWidgetFactory class makes a QHelpSearchQueryWidget and QHelpSearchResultsWidget available for the HELP_MANAGER available as a side viewer widget.


Member Function Documentation

bool Qtilities::Plugins::Help::SearchWidgetFactory::isExclusive ( ) const
virtual

Indicates if the widget is exclusive.

When true, this widget can only appear once inside a dynamic side widget viewer.

Note:
When true this side viewer widget can only be used with a Qtilities::CoreGui::DynamicSideWidgetViewer which is set to be exclusive. When the mode(s) specified in destinationModes() is not for an exclusive viewer widget, an error message will be printed.

Implements Qtilities::CoreGui::Interfaces::ISideViewerWidget.

const QObject* Qtilities::Plugins::Help::SearchWidgetFactory::objectBase ( ) const
inlinevirtual

Returns a const QObject* base of the interface.

This function can be used in const methods, but make sure that you don't modify things that should stay const. An example where this is used is when we want to get a property on an object in a const method. This is a const operation.

Implements Qtilities::Core::Interfaces::IObjectBase.

QWidget * Qtilities::Plugins::Help::SearchWidgetFactory::produceWidget ( )
virtual

Function which returns the side viewer widget.

Widget() must be able to produce a new widget every time it is called. The Qtilities::CoreGui::SideViewerWidgetFactory class was designed to help with this process.

The dynamic side viewer widget will manage the lifetime of widgets returned.

Implements Qtilities::CoreGui::Interfaces::ISideViewerWidget.



Qtilities : Reference Documentation Back to top Copyright © 2009-2013, Jaco Naudé