Diffstat (limited to 'noncore/apps/opie-reader/QTReaderApp.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/QTReaderApp.h | 50 |
1 files changed, 39 insertions, 11 deletions
diff --git a/noncore/apps/opie-reader/QTReaderApp.h b/noncore/apps/opie-reader/QTReaderApp.h index 22c57e4..cb33e4a 100644 --- a/noncore/apps/opie-reader/QTReaderApp.h +++ b/noncore/apps/opie-reader/QTReaderApp.h @@ -22,9 +22,9 @@ //#define __ISEARCH #define MAX_ENCODING 6 -#define MAX_ACTIONS 3 +#define MAX_ACTIONS 4 #include <qmainwindow.h> #include "CExpander.h" #include <qlist.h> @@ -38,22 +38,24 @@ class QWidgetStack; class QToolButton; class QPopupMenu; class QToolBar; -class QPEToolBar; +//class QPEToolBar; class CBkmkSelector; class QProgressBar; class QAction; class CAnnoEdit; class QFloatBar; class CDrawBuffer; class QTReader; +class QPixmap; enum ActionTypes { cesOpenFile = 0, cesAutoScroll, - cesActionMark + cesActionMark, + cesFullScreen }; #ifdef __ISEARCH struct searchrecord @@ -64,8 +66,9 @@ struct searchrecord }; #endif class infowin; +class GraphicWin; class QTReaderApp : public QMainWindow { Q_OBJECT @@ -75,18 +78,20 @@ class QTReaderApp : public QMainWindow public: QTReaderApp( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); ~QTReaderApp(); - + void suspend(); void openFile( const QString & ); void setScrollState(bool _b); protected: void setfontHelper(const QString& lcn, int size = 0); - QAction* m_bkmkAvail; + QAction* m_bkmkAvail, *m_actFullscreen; CAnnoEdit* m_annoWin; Bkmk* m_anno; +// void resizeEvent(QResizeEvent* e); + void keyPressEvent(QKeyEvent* e); void closeEvent( QCloseEvent *e ); void readbkmks(); void do_mono(const QString&); void do_jump(const QString&); @@ -96,12 +101,17 @@ class QTReaderApp : public QMainWindow ActionTypes ActNameToInt(const QString&); bool m_doAnnotation; bool m_doDictionary; bool m_doClipboard; + bool m_fullscreen; public: void saveprefs(); private slots: + void zoomin(); + void zoomout(); + void setfullscreen(bool sfs); + void setcontinuous(bool sfs); void setTwoTouch(bool _b); void restoreFocus(); void OnAnnotation(bool _b) { @@ -115,8 +125,9 @@ private slots: { m_doClipboard = _b; } void OnWordSelected(const QString&, size_t, const QString&); + void showgraphic(QPixmap&); void addAnno(const QString&, const QString&, size_t); void addAnno(const QString&, const QString&); void addanno(); void showAnnotation(); @@ -140,15 +151,14 @@ private slots: void infoClose(); // void oldFile(); void showinfo(); void setDocument(const QString&); - void TBD(); - void TBDzoom(); void indentplus(); void indentminus(); void fileOpen(); + void fileClose(); void editCopy(); void editFind(); @@ -165,12 +175,15 @@ private slots: #else void search(); #endif - void openFile( const DocLnk & ); void showEditTools(); void stripcr(bool); + void onespace(bool); +#ifdef REPALM +// void repalm(bool); +#endif void peanut(bool _b); void remap(bool); void embolden(bool); void autofmt(bool); @@ -180,8 +193,9 @@ private slots: void unindent(bool); void repara(bool); void dblspce(bool); void pagemode(bool); + void navkeys(bool); // void gotobkmk(const QString& bm); void gotobkmk(int); void cancelbkmk(); void do_gotomark(); @@ -191,10 +205,20 @@ private slots: void OnRedraw(); void OnActionPressed(); private: +/* + void setstate(unsigned char* _sd, unsigned short _sdlen); + void getstate(unsigned char*& data, unsigned short& len); +*/ + void fileOpen2(); + void readfilelist(); + void savefilelist(); + void updatefileinfo(); + bool openfrombkmk(Bkmk*); QString m_targetapp, m_targetmsg; - void listbkmk(); + void listbkmk(CList<Bkmk>*, const QString& _lab = QString::null); + QString usefilebrowser(); void do_regedit(); void colorChanged( const QColor &c ); void clear(); void updateCaption(); @@ -222,13 +246,13 @@ private slots: #endif QWidgetStack *editorStack; QTReader* reader; QComboBox* m_fontSelector; - QPEToolBar /* *menu,*/ *editBar; +// QPEToolBar /* *menu,*/ *editBar; + QToolBar /* *menu,*/ *editBar; QFloatBar *searchBar, *regBar/*, *m_fontBar*/; QToolBar /* *searchBar, *regBar,*/ *m_fontBar; QLineEdit *searchEdit, *regEdit; - DocLnk *doc; bool searchVisible; bool regVisible; bool m_fontVisible, m_twoTouch; bool bFromDocView; @@ -242,9 +266,11 @@ private slots: // bgroup->move( width()-bgroup->width(), 0 ); } */ CList<Bkmk>* pBkmklist; + CList<Bkmk>* pOpenlist; infowin* m_infoWin; + GraphicWin* m_graphicwin; QProgressBar* pbar; bool m_fBkmksChanged; int m_nRegAction; QString m_autogenstr; @@ -259,5 +285,7 @@ const int cRmBkmkFile = 4; const int cJump = 5; const int cMonoSpace = 6; const int cOverlap = 7; const int cSetTarget = 8; +const int cOpenFile = 9; + #endif |