XpdfApp.h (xpdf-4.03) | : | XpdfApp.h (xpdf-4.04) | ||
---|---|---|---|---|
skipping to change at line 16 | skipping to change at line 16 | |||
// | // | |||
//======================================================================== | //======================================================================== | |||
#ifndef XPDFAPP_H | #ifndef XPDFAPP_H | |||
#define XPDFAPP_H | #define XPDFAPP_H | |||
#include <aconf.h> | #include <aconf.h> | |||
#include <QApplication> | #include <QApplication> | |||
#include <QColor> | #include <QColor> | |||
#include <QDateTime> | ||||
#include "gtypes.h" | #include "gtypes.h" | |||
class GList; | class GList; | |||
class XpdfViewer; | class XpdfViewer; | |||
//------------------------------------------------------------------------ | //------------------------------------------------------------------------ | |||
struct XpdfSavedPageNumber { | ||||
XpdfSavedPageNumber(): pageNumber(1) {} | ||||
XpdfSavedPageNumber(const QString &fileNameA, int pageNumberA) | ||||
: fileName(fileNameA), pageNumber(pageNumberA) {} | ||||
QString fileName; | ||||
int pageNumber; | ||||
}; | ||||
#define maxSavedPageNumbers 100 | ||||
//------------------------------------------------------------------------ | ||||
// XpdfApp | // XpdfApp | |||
//------------------------------------------------------------------------ | //------------------------------------------------------------------------ | |||
class XpdfApp: public QApplication { | class XpdfApp: public QApplication { | |||
Q_OBJECT | Q_OBJECT | |||
public: | public: | |||
XpdfApp(int &argc, char **argv); | XpdfApp(int &argc, char **argv); | |||
virtual ~XpdfApp(); | virtual ~XpdfApp(); | |||
skipping to change at line 47 | skipping to change at line 60 | |||
GBool openInNewWindow(QString fileName, int page = 1, | GBool openInNewWindow(QString fileName, int page = 1, | |||
QString dest = QString(), | QString dest = QString(), | |||
int rotate = 0, | int rotate = 0, | |||
QString password = QString(), | QString password = QString(), | |||
GBool fullScreen = gFalse, | GBool fullScreen = gFalse, | |||
const char *remoteServerName = NULL); | const char *remoteServerName = NULL); | |||
void closeWindowOrQuit(XpdfViewer *viewer); | void closeWindowOrQuit(XpdfViewer *viewer); | |||
// Called just before closing one or more PDF files. | ||||
void startUpdatePagesFile(); | ||||
void updatePagesFile(const QString &fileName, int pageNumber); | ||||
void finishUpdatePagesFile(); | ||||
// Return the saved page number for [fileName]. | ||||
int getSavedPageNumber(const QString &fileName); | ||||
void quit(); | void quit(); | |||
//--- for use by XpdfViewer | //--- for use by XpdfViewer | |||
int getErrorEventType() { return errorEventType; } | int getErrorEventType() { return errorEventType; } | |||
const QColor &getPaperColor() { return paperColor; } | const QColor &getPaperColor() { return paperColor; } | |||
const QColor &getMatteColor() { return matteColor; } | const QColor &getMatteColor() { return matteColor; } | |||
const QColor &getFullScreenMatteColor() { return fsMatteColor; } | const QColor &getFullScreenMatteColor() { return fsMatteColor; } | |||
const QColor &getSelectionColor() { return selectionColor; } | const QColor &getSelectionColor() { return selectionColor; } | |||
GBool getReverseVideo() { return reverseVideo; } | GBool getReverseVideo() { return reverseVideo; } | |||
private: | private: | |||
void readPagesFile(); | ||||
void writePagesFile(); | ||||
int errorEventType; | int errorEventType; | |||
QColor paperColor; | QColor paperColor; | |||
QColor matteColor; | QColor matteColor; | |||
QColor fsMatteColor; | QColor fsMatteColor; | |||
QColor selectionColor; | QColor selectionColor; | |||
GBool reverseVideo; | GBool reverseVideo; | |||
GList *viewers; // [XpdfViewer] | GList *viewers; // [XpdfViewer] | |||
QString savedPagesFileName; | ||||
QDateTime savedPagesFileTimestamp; | ||||
XpdfSavedPageNumber savedPageNumbers[maxSavedPageNumbers]; | ||||
GBool savedPagesFileChanged; | ||||
}; | }; | |||
#endif | #endif | |||
End of changes. 5 change blocks. | ||||
0 lines changed or deleted | 29 lines changed or added |