Okular

viewerinterface.h
1 /***************************************************************************
2  * Copyright (C) 2011 by Michel Ludwig <[email protected]> *
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_VIEWERINTERFACE_H_
11 #define _OKULAR_VIEWERINTERFACE_H_
12 
13 #include "../core/okularcore_export.h"
14 #ifdef Q_OS_WIN
15 #define VIEWERINTERFACE_EXPORT __declspec(dllexport)
16 #else
17 #define VIEWERINTERFACE_EXPORT OKULARCORE_EXPORT
18 #endif
19 
20 #include <QObject>
21 #include <QString>
22 
23 namespace Okular {
24 
31 class VIEWERINTERFACE_EXPORT ViewerInterface
32 {
33  public:
34  ViewerInterface() {}
35  virtual ~ViewerInterface() {}
36 
37  ViewerInterface(const ViewerInterface &) = delete;
38  ViewerInterface &operator=(const ViewerInterface &) = delete;
39 
49  virtual void showSourceLocation(const QString& fileName, int line, int column, bool showGraphically = true) = 0;
50 
54  virtual void clearLastShownSourceLocation() = 0;
55 
59  virtual bool areSourceLocationsShownGraphically() const = 0;
60 
64  virtual void setShowSourceLocationsGraphically(bool b) = 0;
65 
69  virtual bool isWatchFileModeEnabled() const = 0;
70 
74  virtual void setWatchFileModeEnabled(bool b) = 0;
75 
79  virtual bool openNewFilesInTabs() const = 0;
80 
81  // SIGNALS
86  void openSourceReference(const QString& absFileName, int line, int column);
87 
92  void viewerMenuStateChange(bool enabled);
93 };
94 
95 }
96 
97 Q_DECLARE_INTERFACE( Okular::ViewerInterface, "org.kde.okular.ViewerInterface/0.1" )
98 
99 #endif
global.h
Definition: action.h:19
Abstract interface for controlling advanced features of a document viewer.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 22:31:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.