#ifndef __QPDF_H__ #define __QPDF_H__ #include "aconf.h" #include //#define QPDF_QPE_ONLY 1 class QPEOutputDev; class PDFDoc; class DocLnk; class FileSelector; class OFileSelector; class QWidgetStack; class QLineEdit; class QPdfDlg : public QMainWindow { Q_OBJECT public: QPdfDlg ( ); virtual ~QPdfDlg ( ); public slots: void firstPage ( ); void prevPage ( ); void nextPage ( ); void lastPage ( ); void gotoPage ( int n ); void setZoom ( int z ); void gotoPageDialog ( ); void toggleFullscreen ( ); void toggleFindBar ( ); void findText ( const QString & ); void findText ( ); void openFile ( ); void openFile ( const QString & ); void openFile ( const DocLnk & ); void setDocument ( const QString & ); private slots: void delayedInit ( ); void closeFileSelector ( ); void updateCaption ( ); void copyToClipboard ( const QRect & ); protected: void setFullscreen ( bool b = true ); void setBusy ( bool b = true ); bool busy ( ) const; void renderPage ( ); virtual void resizeEvent ( QResizeEvent *e ); virtual void focusInEvent ( QFocusEvent *e ); private: QWidgetStack *m_stack; QPEOutputDev *m_outdev; #ifdef QPDF_QPE_ONLY FileSelector *m_filesel; #else OFileSelector *m_filesel; #endif QToolBar *m_tb_menu, *m_tb_tool, *m_tb_find; QLineEdit *m_findedit; QPopupMenu *m_pm_zoom; QToolButton *m_to_find, *m_to_full; bool m_fullscreen; bool m_busy; bool m_renderok; int m_currentpage; int m_pages; int m_zoom; PDFDoc *m_doc; QString m_currentdoc; }; #endif