You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

56 lines
1.4 KiB

/***************************************************************************
* Copyright (C) 2004 by Albert Astals Cid <tsdgeos@terra.es> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#ifndef PDFPARTVIEW_H
#define PDFPARTVIEW_H
#include <qwidget.h>
class QHBoxLayout;
class QMutex;
namespace KPDF {
class PageWidget;
}
class PDFDoc;
class ThumbnailList;
class PDFPartView : public QWidget
{
Q_OBJECT
public:
PDFPartView(QWidget* parent, const char* name, QMutex *docMutex);
~PDFPartView();
// first page is page 1
void setCurrentThumbnail(int i);
void setPages(int i, double ar);
void generateThumbnails(PDFDoc *doc);
void stopThumbnailGeneration();
void showPageList(bool show);
// TODO make private
KPDF::PageWidget* outputdev;
signals:
void clicked(int);
protected:
QHBoxLayout* PDFPartViewLayout;
private:
ThumbnailList* pagesList;
};
#endif // PDFPARTVIEW_H