Diffstat (limited to 'noncore/graphics/opie-eye/gui/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/mainwindow.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp index 3650493..ef23f79 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.cpp +++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp | |||
@@ -103,18 +103,32 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) | |||
103 | btn->setIconSet( Resource::loadIconSet( "1to1" ) ); | 103 | btn->setIconSet( Resource::loadIconSet( "1to1" ) ); |
104 | btn->setToggleButton(true); | 104 | btn->setToggleButton(true); |
105 | btn->setOn(false); | 105 | btn->setOn(false); |
106 | connect(btn,SIGNAL(toggled(bool)),this,SLOT(slotScaleToggled(bool))); | 106 | connect(btn,SIGNAL(toggled(bool)),this,SLOT(slotScaleToggled(bool))); |
107 | autoScale = true; | 107 | autoScale = true; |
108 | 108 | ||
109 | btn = new QToolButton(bar); | ||
110 | btn->setIconSet( Resource::loadIconSet( "mag" ) ); | ||
111 | btn->setToggleButton(true); | ||
112 | btn->setOn(true); | ||
113 | connect(btn,SIGNAL(toggled(bool)),this,SLOT(slotZoomerToggled(bool))); | ||
114 | zoomerOn = true; | ||
109 | } | 115 | } |
110 | 116 | ||
111 | PMainWindow::~PMainWindow() { | 117 | PMainWindow::~PMainWindow() { |
112 | odebug << "Shutting down" << oendl; | 118 | odebug << "Shutting down" << oendl; |
113 | } | 119 | } |
114 | 120 | ||
121 | void PMainWindow::slotZoomerToggled(bool how) | ||
122 | { | ||
123 | zoomerOn = how; | ||
124 | if (m_disp) { | ||
125 | m_disp->setShowZoomer(zoomerOn); | ||
126 | } | ||
127 | } | ||
128 | |||
115 | void PMainWindow::slotRotateToggled(bool how) | 129 | void PMainWindow::slotRotateToggled(bool how) |
116 | { | 130 | { |
117 | autoRotate = how; | 131 | autoRotate = how; |
118 | if (m_disp) { | 132 | if (m_disp) { |
119 | m_disp->setAutoRotate(how); | 133 | m_disp->setAutoRotate(how); |
120 | } | 134 | } |
@@ -228,12 +242,13 @@ void PMainWindow::initInfo() { | |||
228 | } | 242 | } |
229 | void PMainWindow::initDisp() { | 243 | void PMainWindow::initDisp() { |
230 | initT<ImageView>( "Image ScrollView", &m_disp, ImageDisplay ); | 244 | initT<ImageView>( "Image ScrollView", &m_disp, ImageDisplay ); |
231 | if (m_disp) { | 245 | if (m_disp) { |
232 | m_disp->setAutoScale(autoScale); | 246 | m_disp->setAutoScale(autoScale); |
233 | m_disp->setAutoRotate(autoRotate); | 247 | m_disp->setAutoRotate(autoRotate); |
248 | m_disp->setShowZoomer(zoomerOn); | ||
234 | connect(m_disp,SIGNAL(dispImageInfo(const QString&)),this,SLOT(slotShowInfo(const QString&))); | 249 | connect(m_disp,SIGNAL(dispImageInfo(const QString&)),this,SLOT(slotShowInfo(const QString&))); |
235 | } | 250 | } |
236 | } | 251 | } |
237 | 252 | ||
238 | /** | 253 | /** |
239 | * With big Screen the plan could be to 'detach' the image | 254 | * With big Screen the plan could be to 'detach' the image |