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

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
view.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #ifndef OKULAR_VIEW_H
11 #define OKULAR_VIEW_H
12 
13 #include "okular_export.h"
14 
15 class QString;
16 class QVariant;
17 
18 namespace Okular {
19 
20 class Document;
21 class DocumentPrivate;
22 class ViewPrivate;
23 
32 class OKULAR_EXPORT View
33 {
35  friend class Document;
36  friend class DocumentPrivate;
38 
39  public:
43  enum ViewCapability
44  {
45  Zoom,
46  ZoomModality
47  };
48 
52  enum CapabilityFlag
53  {
54  NoFlag = 0,
55  CapabilityRead = 0x01,
56  CapabilityWrite = 0x02,
57  CapabilitySerializable = 0x04
58  };
59  Q_DECLARE_FLAGS( CapabilityFlags, CapabilityFlag )
60 
61  virtual ~View();
62 
67  Document* viewDocument() const;
68 
72  QString name() const;
73 
77  virtual bool supportsCapability( ViewCapability capability ) const;
78 
82  virtual CapabilityFlags capabilityFlags( ViewCapability capability ) const;
83 
87  virtual QVariant capability( ViewCapability capability ) const;
88 
92  virtual void setCapability( ViewCapability capability, const QVariant &option );
93 
94  protected:
98  View( const QString &name );
99 
101  Q_DECLARE_PRIVATE( View )
102  ViewPrivate *d_ptr;
104 
105  private:
106  Q_DISABLE_COPY( View )
107 };
108 
109 }
110 
111 Q_DECLARE_OPERATORS_FOR_FLAGS( Okular::View::CapabilityFlags )
112 
113 #endif
Okular::View
View on the document.
Definition: view.h:32
Okular::View::ViewCapability
ViewCapability
The capabilities of a view.
Definition: view.h:43
okular_export.h
Okular::Document
The Document.
Definition: document.h:84
Okular::DocumentPrivate
Definition: document_p.h:83
Okular::View::Zoom
Possibility to get/set the zoom of the view.
Definition: view.h:45
OKULAR_EXPORT
#define OKULAR_EXPORT
Definition: okular_export.h:30
Okular::ViewPrivate
Definition: view_p.h:21
Okular::View::CapabilityFlag
CapabilityFlag
The access type of a capability.
Definition: view.h:52
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

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

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

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