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

KHexEdit

  • 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
23namespace KHE
24{
25
35class 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
70template<class T>
71ZoomInterface *zoomInterface( T *t )
72{
73 return t ? qobject_cast<KHE::ZoomInterface *>( t ) : 0;
74}
75
76}
77
78Q_DECLARE_INTERFACE( KHE::ZoomInterface, "org.kde.khe.zoominterface/1.0" )
79
80#endif
KHE::ZoomInterface
A simple interface for zooming.
Definition: zoominterface.h:36
KHE::ZoomInterface::zoomIn
virtual void zoomIn(int PointInc)=0
enlarges the display
KHE::ZoomInterface::~ZoomInterface
virtual ~ZoomInterface()
Definition: zoominterface.h:38
KHE::ZoomInterface::zoomOut
virtual void zoomOut(int PointDec)=0
makes the display smaller
KHE::ZoomInterface::zoomTo
virtual void zoomTo(int PointSize)=0
sets the display size
KHE::ZoomInterface::zoomIn
virtual void zoomIn()=0
increases the display size by an arbitrary value, usually 1 font point
KHE::ZoomInterface::zoomOut
virtual void zoomOut()=0
decreases the display size by an arbitrary value, usually 1 font point
KHE::ZoomInterface::unZoom
virtual void unZoom()=0
resets the display to the default size
KHE
KHE (short for KHexEdit) is KDE's namespace for all things related to the viewing/editing of bytes.
Definition: byteseditinterface.h:31
KHE::zoomInterface
ZoomInterface * zoomInterface(T *t)
tries to get the zoom interface of t
Definition: zoominterface.h:71
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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