Okular::ViewerInterface
#include <viewerinterface.h>
Public Member Functions | |
ViewerInterface (const ViewerInterface &)=delete | |
virtual bool | areSourceLocationsShownGraphically () const =0 |
virtual void | clearLastShownSourceLocation ()=0 |
virtual QWidget * | getSideContainer () const =0 |
virtual bool | isWatchFileModeEnabled () const =0 |
virtual bool | openNewFilesInTabs () const =0 |
void | openSourceReference (const QString &absFileName, int line, int column) |
ViewerInterface & | operator= (const ViewerInterface &)=delete |
virtual void | setShowSourceLocationsGraphically (bool b)=0 |
virtual void | setWatchFileModeEnabled (bool b)=0 |
virtual void | showSourceLocation (const QString &fileName, int line, int column, bool showGraphically=true)=0 |
void | viewerMenuStateChange (bool enabled) |
Detailed Description
Abstract interface for controlling advanced features of a document viewer.
This interface can be used to control some more or less advanced features of a document viewer.
Definition at line 28 of file viewerinterface.h.
Constructor & Destructor Documentation
◆ ViewerInterface()
|
inline |
Definition at line 31 of file viewerinterface.h.
◆ ~ViewerInterface()
|
inlinevirtual |
Definition at line 34 of file viewerinterface.h.
Member Function Documentation
◆ areSourceLocationsShownGraphically()
|
pure virtual |
Returns true iff source locations are shown graphically.
◆ clearLastShownSourceLocation()
|
pure virtual |
Clear the source location that was set last in the viewer.
◆ getSideContainer()
|
pure virtual |
Returns the sidebar container.
- Since
- 23.04
◆ isWatchFileModeEnabled()
|
pure virtual |
Returns true iff the watch file mode is enabled.
◆ openNewFilesInTabs()
|
pure virtual |
Should the shell that supports tabs open new files in tabs?
◆ openSourceReference()
void Okular::ViewerInterface::openSourceReference | ( | const QString & | absFileName, |
int | line, | ||
int | column ) |
The signal 'openSourceReference' is emitted whenever the user has triggered a source reference in the currently displayed document.
◆ setShowSourceLocationsGraphically()
|
pure virtual |
Allows to control whether source locations are shown graphically, or not.
◆ setWatchFileModeEnabled()
|
pure virtual |
Allows to enable or disable the watch file mode.
◆ showSourceLocation()
|
pure virtual |
Show the specified source location centrally in the viewer.
- Parameters
-
fileName source file name line in the source file, starts from 0 column in the source file, starts from 0 showGraphically controls whether the given source location will be shown graphically in the viewer (if that feature is globally activated)
◆ viewerMenuStateChange()
void Okular::ViewerInterface::viewerMenuStateChange | ( | bool | enabled | ) |
The signal 'viewerMenuStateChange' is emitted whenever the state of the menu 'menu_okular_part_viewer' defined in 'part-viewermode.rc' has changed.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 1 2024 18:48:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.