summaryrefslogtreecommitdiff
path: root/noncore/graphics
Side-by-side diff
Diffstat (limited to 'noncore/graphics') (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/mainwindow.cpp21
-rw-r--r--noncore/graphics/opie-eye/phunk_view.pro8
2 files changed, 22 insertions, 7 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp
index dd9cced..f63b5a1 100644
--- a/noncore/graphics/opie-eye/gui/mainwindow.cpp
+++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp
@@ -9,6 +9,7 @@
#include "imageinfoui.h"
#include "imageview.h"
+#if 0
#include "viewmodebutton.h"
-
+#endif
#include <iface/ifaceinfo.h>
#include <iface/dirview.h>
@@ -63,4 +64,6 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style)
this, SLOT(slotShowInfo(const QString&)) );
+ m_stack->forceMode(Opie::Ui::OWidgetStack::NoForce);
+
QToolButton *btn = new QToolButton( bar );
btn->setIconSet( Resource::loadIconSet( "up" ) );
@@ -89,8 +92,9 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style)
m_view, SLOT(slotTrash() ) );
+#if 0
btn = new ViewModeButton( bar );
connect( btn, SIGNAL(changeMode(int)),
m_view, SLOT(slotChangeMode(int)));
-
+#endif
btn = new QToolButton( bar );
btn->setIconSet( Resource::loadIconSet( "SettingsIcon" ) );
@@ -101,7 +105,15 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style)
rotateButton->setIconSet( Resource::loadIconSet( "rotate" ) );
rotateButton->setToggleButton(true);
+
+ odebug << "Mode = " << m_stack->mode() << oendl;
+ if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) {
rotateButton->setOn(true);
- connect(rotateButton,SIGNAL(toggled(bool)),this,SLOT(slotRotateToggled(bool)));
autoRotate = true;
+ } else {
+ rotateButton->setOn(false);
+ autoRotate = false;
+ }
+
+ connect(rotateButton,SIGNAL(toggled(bool)),this,SLOT(slotRotateToggled(bool)));
btn = new QToolButton(bar);
@@ -249,4 +261,7 @@ void PMainWindow::initDisp() {
initT<ImageView>( "Image ScrollView", &m_disp, ImageDisplay );
if (m_disp) {
+ if (m_stack->mode() != Opie::Ui::OWidgetStack::SmallScreen) {
+ m_disp->setMinimumSize(QApplication::desktop()->size()/2);
+ }
m_disp->setAutoScale(autoScale);
m_disp->setAutoRotate(autoRotate);
diff --git a/noncore/graphics/opie-eye/phunk_view.pro b/noncore/graphics/opie-eye/phunk_view.pro
index e9459ad..0aa7e14 100644
--- a/noncore/graphics/opie-eye/phunk_view.pro
+++ b/noncore/graphics/opie-eye/phunk_view.pro
@@ -13,6 +13,6 @@ HEADERS = gui/iconview.h gui/filesystem.h gui/mainwindow.h \
gui/imageinfoui.h gui/imagescrollview.h \
gui/imageview.h \
- lib/oimagezoomer.h \
- gui/viewmodebutton.h
+ lib/oimagezoomer.h #\
+# gui/viewmodebutton.h
# A list header files
@@ -26,6 +26,6 @@ SOURCES = gui/iconview.cpp gui/filesystem.cpp gui/mainwindow.cpp \
gui/imageinfoui.cpp gui/imagescrollview.cpp \
gui/imageview.cpp \
- lib/oimagezoomer.cpp \
- gui/viewmodebutton.cpp
+ lib/oimagezoomer.cpp #\
+# gui/viewmodebutton.cpp
# A list of source files