lib

KoZoomAction.h
1/* This file is part of the KDE libraries
2 Copyright (C) 2004 Ariya Hidayat <ariya@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
17*/
18
19#ifndef kozoomaction_h
20#define kozoomaction_h
21
22#include <tdeaction.h>
23#include <koffice_export.h>
31class KOFFICEUI_EXPORT KoZoomAction : public TDESelectAction
32{
33TQ_OBJECT
34
35
36public:
37
41 KoZoomAction( const TQString& text, const TQIconSet& pix,
42 const TDEShortcut& cut = TDEShortcut(), TQObject* parent = 0, const char* name = 0 );
43
47 KoZoomAction( const TQString& text, const TQString& pix,
48 const TDEShortcut& cut = TDEShortcut(), TQObject* parent = 0, const char* name = 0 );
49
50public slots:
51
56 void setZoom( const TQString& zoom );
57
62 void setZoom( int zoom );
63
64protected slots:
65
66 void activated( const TQString& text );
67
68signals:
69
74 void zoomChanged( const TQString& zoom );
75
76protected:
77
78 void init();
79
80};
81
82
83#endif // kozoomaction_h
void zoomChanged(const TQString &zoom)
Signal zoomChanged is triggered when user changes the zoom value, either by choosing it from the list...
void setZoom(const TQString &zoom)
Sets the zoom.
KoZoomAction(const TQString &text, const TQIconSet &pix, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0)
Creates a new zoom action.
virtual TQString text() const
void activated()
TDESelectAction(const TQString &text, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0)