• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KHexEdit

  • sources
  • kde-4.12
  • kdelibs
  • interfaces
  • khexedit
zoominterface.h
Go to the documentation of this file.
1 /***************************************************************************
2  zoominterface.h - description
3  -------------------
4  begin : Fri Sep 12 2003
5  copyright : (C) 2003 by Friedrich W. H. Kossebau
6  email : kossebau@kde.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Library General Public *
13  * License version 2 as published by the Free Software Foundation. *
14  * *
15  ***************************************************************************/
16 
17 
18 #ifndef KHE_ZOOMINTERFACE_H
19 #define KHE_ZOOMINTERFACE_H
20 
21 #include <QtCore/QObject>
22 
23 namespace KHE
24 {
25 
35 class ZoomInterface
36 {
37  public:
38  virtual ~ZoomInterface() {}
39 
40  public:
44  virtual void zoomIn( int PointInc ) = 0;
48  virtual void zoomIn() = 0;
52  virtual void zoomOut( int PointDec ) = 0;
56  virtual void zoomOut() = 0;
60  virtual void zoomTo( int PointSize ) = 0;
62  virtual void unZoom() = 0;
63 };
64 
65 
70 template<class T>
71 ZoomInterface *zoomInterface( T *t )
72 {
73  return t ? qobject_cast<KHE::ZoomInterface *>( t ) : 0;
74 }
75 
76 }
77 
78 Q_DECLARE_INTERFACE( KHE::ZoomInterface, "org.kde.khe.zoominterface/1.0" )
79 
80 #endif
KHE::ZoomInterface::~ZoomInterface
virtual ~ZoomInterface()
Definition: zoominterface.h:38
KHE::ZoomInterface::zoomOut
virtual void zoomOut()=0
decreases the display size by an arbitrary value, usually 1 font point
KHE::ZoomInterface::zoomTo
virtual void zoomTo(int PointSize)=0
sets the display size
KHE::ZoomInterface::unZoom
virtual void unZoom()=0
resets the display to the default size
KHE::zoomInterface
ZoomInterface * zoomInterface(T *t)
tries to get the zoom interface of t
Definition: zoominterface.h:71
KHE::ZoomInterface
A simple interface for zooming.
Definition: zoominterface.h:35
KHE::ZoomInterface::zoomIn
virtual void zoomIn()=0
increases the display size by an arbitrary value, usually 1 font point
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHexEdit

Skip menu "KHexEdit"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Members
  • File List
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal