lib

KoZoomAction Class Reference

#include <KoZoomAction.h>

Inheritance diagram for KoZoomAction:

KSelectAction KAction List of all members.

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.


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 ()

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 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.

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.

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 Home | KDE Accessibility Home | Description of Access Keys