• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kviewshell

zoom.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // zoom.h
00003 //
00004 // Part of KVIEWSHELL - A framework for multipage text/gfx viewers
00005 //
00006 // (C) 2002 Stefan Kebekus
00007 // Distributed under the GPL
00008 
00009 // Add header files alphabetically
00010 
00011 #ifndef ZOOM_H
00012 #define ZOOM_H
00013 
00014 #include <qobject.h>
00015 #include <qstringlist.h>
00016 
00017 
00018 class Zoom : public QObject
00019 {
00020 Q_OBJECT
00021 
00022 public:
00024   Zoom();
00025 
00029   QStringList zoomNames() const { return valueNames; }
00030 
00031   float       zoomIn();
00032   float       zoomOut();
00033   float       value() const { return _zoomValue; }
00034 
00035 public slots:
00036   void        setZoomValue(float);
00037   void        setZoomValue(const QString &);
00038 
00039   void        setZoomFitWidth(float zoom);
00040   void        setZoomFitHeight(float zoom);
00041   void        setZoomFitPage(float zoom);
00042 
00043 signals:
00044   void        zoomNamesChanged(const QStringList &);
00045   void        zoomNameChanged(const QString &);
00046   void        valNoChanged(int);
00047 
00048 private:
00049   float       _zoomValue;
00050   QStringList valueNames;
00051   // This will be the number of the current value in the generated QStringList.
00052   int         valNo;
00053 };
00054 
00055 #endif

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal