Diffstat (limited to 'noncore/apps/opie-reader/ToolbarPrefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ToolbarPrefs.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/noncore/apps/opie-reader/ToolbarPrefs.h b/noncore/apps/opie-reader/ToolbarPrefs.h index 9571c28..a2686e5 100644 --- a/noncore/apps/opie-reader/ToolbarPrefs.h +++ b/noncore/apps/opie-reader/ToolbarPrefs.h | |||
@@ -113,13 +113,13 @@ class CBarPrefs2 : public QWidget | |||
113 | }; | 113 | }; |
114 | */ | 114 | */ |
115 | class CViewBarPrefs : public QWidget | 115 | class CViewBarPrefs : public QWidget |
116 | { | 116 | { |
117 | Q_OBJECT | 117 | Q_OBJECT |
118 | Config& config; | 118 | Config& config; |
119 | QCheckBox *fullscreen, *zoomin, *zoomout, *setfont, *encoding, *ideogram; | 119 | QCheckBox *fullscreen, *rotate, *zoomin, *zoomout, *setfont, *encoding, *ideogram, *invert; |
120 | 120 | ||
121 | bool m_isChanged; | 121 | bool m_isChanged; |
122 | 122 | ||
123 | private slots: | 123 | private slots: |
124 | void isChanged(int _v) { m_isChanged = true; } | 124 | void isChanged(int _v) { m_isChanged = true; } |
125 | 125 | ||
@@ -168,22 +168,22 @@ class CIndBarPrefs : public QWidget | |||
168 | bool isChanged() { return m_isChanged; } | 168 | bool isChanged() { return m_isChanged; } |
169 | 169 | ||
170 | }; | 170 | }; |
171 | 171 | ||
172 | class CMiscBarPrefs : public QWidget | 172 | class CMiscBarPrefs : public QWidget |
173 | { | 173 | { |
174 | Q_OBJECT | 174 | |
175 | public: | 175 | public: |
176 | 176 | ||
177 | CMiscBarPrefs( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 177 | CMiscBarPrefs( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
178 | ~CMiscBarPrefs(); | 178 | ~CMiscBarPrefs(); |
179 | 179 | ||
180 | #ifdef USECOMBO | 180 | #ifdef USECOMBO |
181 | QComboBox *tbpolicy, *tbposition; | 181 | QComboBox *tbpolicy, *tbposition, *qtscroll, *localscroll; |
182 | #else | 182 | #else |
183 | MenuButton *tbpolicy, *tbposition; | 183 | MenuButton *tbpolicy, *tbposition, *qtscroll, *localscroll; |
184 | #endif | 184 | #endif |
185 | QCheckBox *tbmovable, *floating; | 185 | QCheckBox *tbmovable, *floating; |
186 | }; | 186 | }; |
187 | 187 | ||
188 | class CBarPrefs : public QDialog | 188 | class CBarPrefs : public QDialog |
189 | { | 189 | { |
@@ -242,16 +242,22 @@ class CBarPrefs : public QDialog | |||
242 | indbar->isChanged() | 242 | indbar->isChanged() |
243 | ); | 243 | ); |
244 | } | 244 | } |
245 | bool floating() { return misc->floating->isChecked(); } | 245 | bool floating() { return misc->floating->isChecked(); } |
246 | void floating(bool v) { misc->floating->setChecked(v); } | 246 | void floating(bool v) { misc->floating->setChecked(v); } |
247 | int tbpolicy() { return misc->tbpolicy->currentItem(); } | 247 | int tbpolicy() { return misc->tbpolicy->currentItem(); } |
248 | int qtscroll() { return misc->qtscroll->currentItem(); } | ||
249 | int localscroll() { return misc->localscroll->currentItem(); } | ||
248 | #ifdef USECOMBO | 250 | #ifdef USECOMBO |
249 | void tbpolicy(int v) { misc->tbpolicy->setCurrentItem(v); } | 251 | void tbpolicy(int v) { misc->tbpolicy->setCurrentItem(v); } |
252 | void qtscroll(int v) { misc->qtscroll->setCurrentItem(v); } | ||
253 | void localscroll(int v) { misc->localscroll->setCurrentItem(v); } | ||
250 | #else | 254 | #else |
251 | void tbpolicy(int v) { misc->tbpolicy->select(v); } | 255 | void tbpolicy(int v) { misc->tbpolicy->select(v); } |
256 | void qtscroll(int v) { misc->qtscroll->select(v); } | ||
257 | void localscroll(int v) { misc->localscroll->select(v); } | ||
252 | #endif | 258 | #endif |
253 | bool tbmovable() { return misc->tbmovable->isChecked(); } | 259 | bool tbmovable() { return misc->tbmovable->isChecked(); } |
254 | void tbmovable(bool v) { misc->tbmovable->setChecked(v); } | 260 | void tbmovable(bool v) { misc->tbmovable->setChecked(v); } |
255 | int tbposition() { return misc->tbposition->currentItem(); } | 261 | int tbposition() { return misc->tbposition->currentItem(); } |
256 | #ifdef USECOMBO | 262 | #ifdef USECOMBO |
257 | void tbposition(int v) { misc->tbposition->setCurrentItem(v); } | 263 | void tbposition(int v) { misc->tbposition->setCurrentItem(v); } |