lib Library API Documentation

KoZoomAction Class Reference

Class KoZoomAction implements an action to provide zoom values. More...

#include <kozoomaction.h>

List of all members.

Public Slots

void setZoom (const QString &zoom)
void setZoom (int zoom)

Signals

void zoomChanged (const QString &zoom)

Public Member Functions

 KoZoomAction (const QString &text, const QIconSet &pix, const KShortcut &cut=KShortcut(), QObject *parent=0, const char *name=0)
 KoZoomAction (const QString &text, const QString &pix, const KShortcut &cut=KShortcut(), QObject *parent=0, const char *name=0)

Protected Slots

void activated (const QString &text)

Protected Member Functions

void init ()


Detailed Description

Class KoZoomAction implements an action to provide zoom values.

In a toolbar, KoZoomAction will show a dropdown list, also with the possibility for the user to enter arbritrary zoom value (must be an integer). The values shown on the list are alwalys sorted.

Definition at line 31 of file kozoomaction.h.


Constructor & Destructor Documentation

KoZoomAction::KoZoomAction const QString text,
const QIconSet pix,
const KShortcut &  cut = KShortcut(),
QObject parent = 0,
const char *  name = 0
 

Creates a new zoom action.

Definition at line 28 of file kozoomaction.cpp.

KoZoomAction::KoZoomAction const QString text,
const QString pix,
const KShortcut &  cut = KShortcut(),
QObject parent = 0,
const char *  name = 0
 

Creates a new zoom action.

Definition at line 35 of file kozoomaction.cpp.


Member Function Documentation

void KoZoomAction::setZoom const QString zoom  )  [slot]
 

Sets the zoom.

If it's not yet on the list of zoom values, it will be inserted into the list at proper place so that the the values remain sorted.

Definition at line 43 of file kozoomaction.cpp.

Referenced by setZoom().

void KoZoomAction::setZoom int  zoom  )  [slot]
 

Sets the zoom.

If it's not yet on the list of zoom values, it will be inserted into the list at proper place so that the the values remain sorted.

Definition at line 79 of file kozoomaction.cpp.

References setZoom().

void KoZoomAction::zoomChanged const QString zoom  )  [signal]
 

Signal zoomChanged is triggered when user changes the zoom value, either by choosing it from the list or by entering new value.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:41:51 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003