• 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.cpp
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 #include "view.h"
11 #include "view_p.h"
12 
13 // local includes
14 #include "document_p.h"
15 
16 using namespace Okular;
17 
18 ViewPrivate::ViewPrivate()
19  : document( 0 )
20 {
21 }
22 
23 ViewPrivate::~ViewPrivate()
24 {
25 }
26 
27 
28 View::View( const QString &name )
29  : d_ptr( new ViewPrivate() )
30 {
31  d_ptr->name = name;
32 }
33 
34 View::~View()
35 {
36  if ( d_ptr->document )
37  {
38  d_ptr->document->m_views.remove( this );
39  }
40 
41  delete d_ptr;
42 }
43 
44 Document* View::viewDocument() const
45 {
46  return d_ptr->document ? d_ptr->document->m_parent : 0;
47 }
48 
49 QString View::name() const
50 {
51  return d_ptr->name;
52 }
53 
54 bool View::supportsCapability( View::ViewCapability capability ) const
55 {
56  Q_UNUSED( capability )
57  return false;
58 }
59 
60 View::CapabilityFlags View::capabilityFlags( View::ViewCapability capability ) const
61 {
62  Q_UNUSED( capability )
63  return 0;
64 }
65 
66 QVariant View::capability( View::ViewCapability capability ) const
67 {
68  Q_UNUSED( capability )
69  return QVariant();
70 }
71 
72 void View::setCapability( View::ViewCapability capability, const QVariant &option )
73 {
74  Q_UNUSED( capability )
75  Q_UNUSED( option )
76 }
77 
Okular::View::setCapability
virtual void setCapability(ViewCapability capability, const QVariant &option)
Sets a new value for the specified capability.
Definition: view.cpp:72
Okular::ViewPrivate::~ViewPrivate
virtual ~ViewPrivate()
Definition: view.cpp:23
Okular::View::~View
virtual ~View()
Definition: view.cpp:34
Okular::ViewPrivate::ViewPrivate
ViewPrivate()
Definition: view.cpp:18
Okular::View::supportsCapability
virtual bool supportsCapability(ViewCapability capability) const
Query whether the view support the specified capability.
Definition: view.cpp:54
Okular::View::ViewCapability
ViewCapability
The capabilities of a view.
Definition: view.h:43
Okular::View::View
View(const QString &name)
Construct a new view with the specified name.
Definition: view.cpp:28
Okular::View::capabilityFlags
virtual CapabilityFlags capabilityFlags(ViewCapability capability) const
Query the flags for the specified capability.
Definition: view.cpp:60
view.h
Okular::Document
The Document.
Definition: document.h:84
view_p.h
document_p.h
Okular::View::name
QString name() const
Return the name of this view.
Definition: view.cpp:49
Okular::View::capability
virtual QVariant capability(ViewCapability capability) const
Query the value of the specified capability.
Definition: view.cpp:66
Okular::View::viewDocument
Document * viewDocument() const
Return the document which this view is associated to, or null if it is not associated with any docume...
Definition: view.cpp:44
Okular::ViewPrivate
Definition: view_p.h:21
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