KTutorial  0.5.1
Public Slots | Public Member Functions
ktutorial::customization::DefaultKdeCustomization Class Reference

Default KTutorial customization for KDE. More...

#include <DefaultKdeCustomization.h>

Inheritance diagram for ktutorial::customization::DefaultKdeCustomization:
Inheritance graph
[legend]
Collaboration diagram for ktutorial::customization::DefaultKdeCustomization:
Collaboration graph
[legend]

List of all members.

Public Slots

virtual void showTutorialUI (Tutorial *tutorial)
 Shows the tutorial UI.

Public Member Functions

 DefaultKdeCustomization (KXmlGuiWindow *window)
 Creates a new DefaultKdeCustomization for the given window.
virtual void setup (TutorialManager *tutorialManager)
 Sets up the KTutorial user interface.
virtual QWidget * mainApplicationWindow ()
 Returns the main window of the application.

Detailed Description

Default KTutorial customization for KDE.

The default customization adds a "Tutorials" menu entry in the "Help" menu that shows a TutorialManagerDialog; the tutorial UI shown is a StepWidget. It also registers the default tutorial, "Using KTutorial".

Note that the default customization can be used only with XMLGUI applications (applications where the main window is a KXmlGuiWindow). In order to add the menu entry in the proper place in the menu a change must be done in your "applicationnameui.rc". Please refer to KTutorial manual for further information.

Definition at line 41 of file DefaultKdeCustomization.h.


Constructor & Destructor Documentation

Creates a new DefaultKdeCustomization for the given window.

Parameters:
windowThe main window of the application.

Definition at line 54 of file DefaultKdeCustomization.cpp.


Member Function Documentation

Returns the main window of the application.

Returns:
The main window of the application.

Implements ktutorial::KTutorialCustomization.

Definition at line 80 of file DefaultKdeCustomization.cpp.

Sets up the KTutorial user interface.

It adds the Tutorials action and the menu entry for it in Help menu, and prepares the TutorialManagerDialog and the StepWidget to be shown when needed.

Besides setting up the user interface, the default "Using KTutorial" tutorial is registered.

Parameters:
tutorialManagerThe TutorialManager used by KTutorial.

Implements ktutorial::KTutorialCustomization.

Definition at line 58 of file DefaultKdeCustomization.cpp.

References ktutorial::TutorialManager::registerTutorial(), and showTutorialUI().

Shows the tutorial UI.

A StepWidget is used.

Parameters:
tutorialThe tutorial to show its StepWidget.

Implements ktutorial::KTutorialCustomization.

Definition at line 86 of file DefaultKdeCustomization.cpp.

References ktutorial::TutorialInformation::name(), ktutorial::view::StepWidget::setMainApplicationWindow(), and ktutorial::Tutorial::tutorialInformation().

Referenced by setup().


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