summaryrefslogtreecommitdiff
authoralwin <alwin>2004-04-16 07:40:36 (UTC)
committer alwin <alwin>2004-04-16 07:40:36 (UTC)
commit7be2cf603eb773672f8d4b0a411a4ee16ae0818f (patch) (unidiff)
tree22c9af3b5de541da6c1662adb0366934f6493a3b
parent9692c199f1f8b4c334687081e0d75bfbf9375ad8 (diff)
downloadopie-7be2cf603eb773672f8d4b0a411a4ee16ae0818f.zip
opie-7be2cf603eb773672f8d4b0a411a4ee16ae0818f.tar.gz
opie-7be2cf603eb773672f8d4b0a411a4ee16ae0818f.tar.bz2
use setAutoScaleRotate of the imagedisplay
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/mainwindow.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp
index 6f3f255..5ba4c8e 100644
--- a/noncore/graphics/opie-eye/gui/mainwindow.cpp
+++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp
@@ -144,52 +144,55 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style)
144 144
145PMainWindow::~PMainWindow() { 145PMainWindow::~PMainWindow() {
146 odebug << "Shutting down" << oendl; 146 odebug << "Shutting down" << oendl;
147} 147}
148 148
149void PMainWindow::slotZoomerToggled(bool how) 149void PMainWindow::slotZoomerToggled(bool how)
150{ 150{
151 zoomerOn = how; 151 zoomerOn = how;
152 if (m_disp) { 152 if (m_disp) {
153 m_disp->setShowZoomer(zoomerOn); 153 m_disp->setShowZoomer(zoomerOn);
154 } 154 }
155} 155}
156 156
157void PMainWindow::slotRotateToggled(bool how) 157void PMainWindow::slotRotateToggled(bool how)
158{ 158{
159 autoRotate = how; 159 autoRotate = how;
160 if (m_disp) { 160 if (m_disp) {
161 m_disp->setAutoRotate(how); 161 m_disp->setAutoRotate(how);
162 } 162 }
163} 163}
164 164
165void PMainWindow::slotScaleToggled(bool how) 165void PMainWindow::slotScaleToggled(bool how)
166{ 166{
167 autoScale = !how; 167 autoScale = !how;
168 if (!how) {
169 autoRotate = how;
170 }
168 if (m_disp) { 171 if (m_disp) {
169 m_disp->setAutoScale(autoScale); 172 m_disp->setAutoScaleRotate(autoScale,autoRotate);
170 } 173 }
171 if (!autoScale && autoRotate) { 174 if (!autoScale) {
172 rotateButton->setOn(false); 175 rotateButton->setOn(false);
173 } 176 }
174 rotateButton->setEnabled(!how); 177 rotateButton->setEnabled(!how);
175} 178}
176 179
177void PMainWindow::slotConfig() { 180void PMainWindow::slotConfig() {
178 /* 181 /*
179 * have a tab with the possible views 182 * have a tab with the possible views
180 * a tab for globals image cache size.. scaled loading 183 * a tab for globals image cache size.. scaled loading
181 * and one tab for the KeyConfigs 184 * and one tab for the KeyConfigs
182 */ 185 */
183 QDialog dlg(this, 0, true); 186 QDialog dlg(this, 0, true);
184 dlg.setCaption( tr("Phunk View - Config" ) ); 187 dlg.setCaption( tr("Phunk View - Config" ) );
185 188
186 QHBoxLayout *lay = new QHBoxLayout(&dlg); 189 QHBoxLayout *lay = new QHBoxLayout(&dlg);
187 Opie::Ui::OTabWidget *wid = new Opie::Ui::OTabWidget(&dlg ); 190 Opie::Ui::OTabWidget *wid = new Opie::Ui::OTabWidget(&dlg );
188 lay->addWidget( wid ); 191 lay->addWidget( wid );
189 ViewMap *vM = viewMap(); 192 ViewMap *vM = viewMap();
190 ViewMap::Iterator _it = vM->begin(); 193 ViewMap::Iterator _it = vM->begin();
191 QMap<PDirView*, QWidget*> lst; 194 QMap<PDirView*, QWidget*> lst;
192 195
193 for( ; _it != vM->end(); ++_it ) { 196 for( ; _it != vM->end(); ++_it ) {
194 PDirView *view = (_it.data())(*m_cfg); 197 PDirView *view = (_it.data())(*m_cfg);
195 PInterfaceInfo *inf = view->interfaceInfo(); 198 PInterfaceInfo *inf = view->interfaceInfo();