-rw-r--r-- | noncore/graphics/opie-eye/gui/gui.pro | 6 | ||||
-rw-r--r-- | noncore/graphics/opie-eye/gui/iconview.cpp | 3 | ||||
-rw-r--r-- | noncore/graphics/opie-eye/gui/mainwindow.cpp | 19 |
3 files changed, 23 insertions, 5 deletions
diff --git a/noncore/graphics/opie-eye/gui/gui.pro b/noncore/graphics/opie-eye/gui/gui.pro index b9f0bf8..2759dd5 100644 --- a/noncore/graphics/opie-eye/gui/gui.pro +++ b/noncore/graphics/opie-eye/gui/gui.pro @@ -5,3 +5,4 @@ HEADERS += gui/filesystem.h \ gui/mainwindow.h \ - gui/viewmodebutton.h + gui/viewmodebutton.h \ + gui/basesetup.h @@ -12,3 +13,4 @@ SOURCES += gui/filesystem.cpp \ gui/mainwindow.cpp \ - gui/viewmodebutton.cpp + gui/viewmodebutton.cpp \ + gui/basesetup.cpp diff --git a/noncore/graphics/opie-eye/gui/iconview.cpp b/noncore/graphics/opie-eye/gui/iconview.cpp index a41ce9f..7c8c88d 100644 --- a/noncore/graphics/opie-eye/gui/iconview.cpp +++ b/noncore/graphics/opie-eye/gui/iconview.cpp @@ -687,3 +687,4 @@ void PIconView::slotStartSlide() { } - emit sig_startslide(2); + int t = m_cfg->readNumEntry("base_slideshowtimeout", 2); + emit sig_startslide(t); } diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp index e714e84..570ee45 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.cpp +++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp @@ -11,2 +11,3 @@ #include "viewmodebutton.h" +#include "basesetup.h" @@ -71,2 +72,3 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) setupMenu(); + m_aHideToolbar->setOn(m_cfg->readBoolEntry("base_showtoolbar",true)); } @@ -142,2 +144,6 @@ void PMainWindow::slotConfig() { lay->addWidget( wid ); + + BaseSetup*bSetup = new BaseSetup(m_cfg,wid); + wid->addTab(bSetup,"SettingsIcon","Basics setup"); + ViewMap *vM = viewMap(); @@ -198,2 +204,3 @@ void PMainWindow::slotConfig() { m_view->manager()->save(); + bSetup->save_values(); } @@ -270,4 +277,12 @@ void PMainWindow::slotFullScreenToggled(bool current) odebug << "window" << oendl; - m_disp->setMinimumSize(10,10); - m_disp->reparent(0,QPoint(0,0)); + if (m_stack->mode() != Opie::Ui::OWidgetStack::SmallScreen) { + m_disp->setMinimumSize(QApplication::desktop()->size()/2); + } else { + m_disp->setMinimumSize(10,10); + } + if (m_stack->mode() != Opie::Ui::OWidgetStack::SmallScreen) { + m_disp->reparent(0,QPoint(50,50)); + } else { + m_disp->reparent(0,QPoint(0,0)); + } m_disp->setBackgroundColor(white); |