author | alwin <alwin> | 2004-04-05 22:09:25 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-04-05 22:09:25 (UTC) |
commit | 266b184c615022484b988e1638be768b11c0c19b (patch) (unidiff) | |
tree | b2560b3a64c49db414fa950fc3ef4670e25cd5ca /noncore/graphics/opie-eye/gui/mainwindow.h | |
parent | 930abeed35ee6dd3aaec491f13d400f825b9d9d1 (diff) | |
download | opie-266b184c615022484b988e1638be768b11c0c19b.zip opie-266b184c615022484b988e1638be768b11c0c19b.tar.gz opie-266b184c615022484b988e1638be768b11c0c19b.tar.bz2 |
yeah - autoresize and autoscale now have toggle-buttons and the image display
respect these buttons
ToDo:
find a good way for prescaled loading of images if autoScale is on (in respect
to autorotate and so on)
Diffstat (limited to 'noncore/graphics/opie-eye/gui/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/mainwindow.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.h b/noncore/graphics/opie-eye/gui/mainwindow.h index 35116ae..6debf7f 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.h +++ b/noncore/graphics/opie-eye/gui/mainwindow.h | |||
@@ -28,35 +28,40 @@ class PMainWindow : public QMainWindow { | |||
28 | public: | 28 | public: |
29 | static QString appName() { return QString::fromLatin1("opie-eye" ); } | 29 | static QString appName() { return QString::fromLatin1("opie-eye" ); } |
30 | PMainWindow(QWidget*, const char*, WFlags ); | 30 | PMainWindow(QWidget*, const char*, WFlags ); |
31 | ~PMainWindow(); | 31 | ~PMainWindow(); |
32 | 32 | ||
33 | signals: | 33 | signals: |
34 | void configChanged(); | 34 | void configChanged(); |
35 | 35 | ||
36 | public slots: | 36 | public slots: |
37 | void slotShowInfo( const QString& inf ); | 37 | void slotShowInfo( const QString& inf ); |
38 | void slotDisplay( const QString& inf ); | 38 | void slotDisplay( const QString& inf ); |
39 | void slotReturn(); | 39 | void slotReturn(); |
40 | void slotRotateToggled(bool); | ||
41 | void slotScaleToggled(bool); | ||
40 | 42 | ||
41 | protected: | 43 | protected: |
42 | void raiseIconView(); | 44 | void raiseIconView(); |
43 | void closeEvent( QCloseEvent* ); | 45 | void closeEvent( QCloseEvent* ); |
44 | 46 | ||
45 | private: | 47 | private: |
46 | template<class T> void initT( const char* name, T**, int ); | 48 | template<class T> void initT( const char* name, T**, int ); |
47 | void initInfo(); | 49 | void initInfo(); |
48 | void initDisp(); | 50 | void initDisp(); |
49 | 51 | ||
50 | private: | 52 | private: |
51 | Opie::Core::OConfig *m_cfg; | 53 | Opie::Core::OConfig *m_cfg; |
52 | Opie::Ui::OWidgetStack *m_stack; | 54 | Opie::Ui::OWidgetStack *m_stack; |
53 | PIconView* m_view; | 55 | PIconView* m_view; |
54 | imageinfo *m_info; | 56 | imageinfo *m_info; |
55 | ImageScrollView *m_disp; | 57 | ImageScrollView *m_disp; |
58 | bool autoRotate; | ||
59 | bool autoScale; | ||
60 | QToolButton*rotateButton; | ||
56 | 61 | ||
57 | 62 | ||
58 | private slots: | 63 | private slots: |
59 | void slotConfig(); | 64 | void slotConfig(); |
60 | }; | 65 | }; |
61 | 66 | ||
62 | #endif | 67 | #endif |