mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-13 03:12:22 +00:00
89b8dbba4a
Files moved from KDVI to KViewShell: selection.{h,cpp} documentPage.{h,cpp} documentPageCache.{h,cpp} documentWidget.{h,cpp} history.{h,cpp} optionDialogGUIWidget_base.ui Methods moved from KDVIMultiPage to KMultiPage: void doGoForward() void doGoBack() Q_UINT16 getCurrentPageNumber() void goto_page(int page, int y, bool isLink) bool gotoPage(int page) void generateDocumentWidgets(int startPage) void setViewMode(int mode) New Classes in KViewShell: DocumentRenderer: Abstract baseclass for dviWin. TODO: needs a more complete API. New Classes in KDVI: DviWidget: Subclass of DocumentWidget. Handels DVI-specific source links. TODO: Source link data structures need to be moved out of class DocumentPage, which is now part of KViewShell. TODO: Restore Configuration GUI of the Overview Viewmode. svn path=/trunk/kdegraphics/kdvi/; revision=357089
38 lines
783 B
C++
38 lines
783 B
C++
//
|
|
// Class: DVIWidget
|
|
//
|
|
// Widget for displaying TeX DVI files.
|
|
// Part of KDVI- A previewer for TeX DVI files.
|
|
//
|
|
// (C) 2004 Wilfried Huss. Distributed under the GPL.
|
|
|
|
#ifndef _DVIWIDGET_H_
|
|
#define _DVIWIDGET_H_
|
|
|
|
#include <qwidget.h>
|
|
|
|
#include "documentWidget.h"
|
|
|
|
class CenteringScrollview;
|
|
class DocumentPageCache;
|
|
class QPaintEvent;
|
|
class QMouseEvent;
|
|
class Selection;
|
|
|
|
class DVIWidget : public DocumentWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
DVIWidget(QWidget* parent, CenteringScrollview* sv, QSize size,
|
|
DocumentPageCache* cache, Selection* documentSelection, const char* name);
|
|
signals:
|
|
void SRCLink(const QString&, QMouseEvent* e, DocumentWidget*);
|
|
|
|
private:
|
|
virtual void mousePressEvent(QMouseEvent* e);
|
|
virtual void mouseMoveEvent(QMouseEvent* e);
|
|
};
|
|
|
|
#endif
|