summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-10-26 14:55:38 (UTC)
committer llornkcor <llornkcor>2002-10-26 14:55:38 (UTC)
commit49f3af452f5011adb3a9042dc001a1d93da3c2ba (patch) (side-by-side diff)
tree3d094974dfea25454f982d1ffa26f74962ca4431
parenta4a1722ba3a2874adef57e0c04093814c0dc4f8f (diff)
downloadopie-49f3af452f5011adb3a9042dc001a1d93da3c2ba.zip
opie-49f3af452f5011adb3a9042dc001a1d93da3c2ba.tar.gz
opie-49f3af452f5011adb3a9042dc001a1d93da3c2ba.tar.bz2
moved large text to context help, so controls fit into window. may need more context help for individual controls
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/mediummount/mainwindow.cc4
-rw-r--r--noncore/settings/mediummount/mainwindow.h2
-rw-r--r--noncore/settings/mediummount/mediumglobal.cc31
3 files changed, 20 insertions, 17 deletions
diff --git a/noncore/settings/mediummount/mainwindow.cc b/noncore/settings/mediummount/mainwindow.cc
index 88f7c61..cf8ad6c 100644
--- a/noncore/settings/mediummount/mainwindow.cc
+++ b/noncore/settings/mediummount/mainwindow.cc
@@ -4,26 +4,26 @@
#include <qlayout.h>
#include <qpe/storage.h>
#include "mediumwidget.h"
#include "mediumglobal.h"
#include "mainwindow.h"
using namespace MediumMountSetting;
-MainWindow::MainWindow( QWidget *parent, const char *name )
- : QMainWindow( parent, name )
+MainWindow::MainWindow( QWidget *parent, const char *name, WFlags )
+ : QMainWindow( parent, name, WStyle_ContextHelp )
{
// m_lay = new QVBoxLayout( this );
m_tab = new QTabWidget( this );
setCentralWidget( m_tab );
init();
}
MainWindow::~MainWindow()
{
}
diff --git a/noncore/settings/mediummount/mainwindow.h b/noncore/settings/mediummount/mainwindow.h
index 1e60e12..ce54674 100644
--- a/noncore/settings/mediummount/mainwindow.h
+++ b/noncore/settings/mediummount/mainwindow.h
@@ -6,25 +6,25 @@
#include <qlist.h>
#include <qmainwindow.h>
class QVBoxLayout;
class QTabWidget;
namespace MediumMountSetting {
class MediumMountWidget;
class MediumGlobalWidget;
class MainWindow : public QMainWindow {
Q_OBJECT
public:
- MainWindow(QWidget *parent = 0, const char *name = 0 );
+ MainWindow(QWidget *parent = 0, const char *name = 0 , WFlags = 0);
~MainWindow();
private slots:
void slotGlobalChanged(int );
void slotCheckingChanged(int );
private:
void init();
QTabWidget *m_tab;
QVBoxLayout *m_lay;
MediumGlobalWidget *m_global;
QList<MediumMountWidget> m_mediums;
};
diff --git a/noncore/settings/mediummount/mediumglobal.cc b/noncore/settings/mediummount/mediumglobal.cc
index 921fcd1..c1ad415 100644
--- a/noncore/settings/mediummount/mediumglobal.cc
+++ b/noncore/settings/mediummount/mediumglobal.cc
@@ -1,107 +1,110 @@
#include <qlineedit.h>
#include <qcheckbox.h>
#include <qlabel.h>
#include <qabstractlayout.h> // spacer item
#include <qlayout.h>
#include <qframe.h>
#include <qgroupbox.h>
+#include <qwhatsthis.h>
#include <qpe/config.h>
#include "mediumglobal.h"
using namespace MediumMountSetting;
MediumGlobalWidget::MediumGlobalWidget(QWidget *wid, const char *name )
: QWidget( wid, name )
{
m_config = 0;
initGUI();
readConfig();
}
void MediumGlobalWidget::initGUI()
{
m_layout = new QVBoxLayout(this );
m_layout->setMargin( 10 );
m_layout->setSpacing( 10 );
m_label = new QLabel( this );
m_label->setTextFormat( Qt::RichText );
- m_label->setText( tr("If a medium gets inserted into this device Opie "
- "tries to search the medium for Dcouments. On "
- "large mediums this can take some time. You can choose "
- "if Opie should scan for Documents globally or on a "
- "per medium level. You're also able to reconfigure "
- "each medium."
- ) );
+ m_label->setText( tr("") );
+ QWhatsThis::add( this, ("If a medium gets inserted into this device Opie "
+ "tries to search the medium for Dcouments. On "
+ "large mediums this can take some time. You can choose "
+ "if Opie should scan for Documents globally or on a "
+ "per medium level. You're also able to reconfigure "
+ "each medium."
+ ) );
+
m_layout->addWidget( m_label );
m_check = new QCheckBox( tr("Enable medium checking" ), this );
connect( m_check, SIGNAL(stateChanged(int) ),
- this, SLOT(slotEnableChecking() ) );
+ this, SLOT(slotEnableChecking() ) );
m_layout->addWidget(m_check );
m_frame = new QFrame(this, "Frame" );
m_frame->setFrameShape( QFrame::Box );
m_frame->setFrameShadow( QFrame::Sunken );
m_box = new QVBoxLayout( m_frame );
m_box->setMargin( 5 );
m_useglobal = new QCheckBox( tr("Use global settings"), m_frame );
connect( m_useglobal, SIGNAL( stateChanged(int) ),
- this, SLOT( slotGlobalChanged() ) );
+ this, SLOT( slotGlobalChanged() ) );
m_box->addWidget( m_useglobal );
m_global = new QGroupBox( tr("Which media files"), m_frame );
m_frameLay = new QGridLayout(m_global, 4, 3 );
m_frameLay->setMargin( 12 );
QSpacerItem *item2 = new QSpacerItem( 5, 8,
- QSizePolicy::Fixed,
- QSizePolicy::Fixed );
+ QSizePolicy::Fixed,
+ QSizePolicy::Fixed );
m_audio = new QCheckBox( tr("Audio"), m_global );
m_all = new QCheckBox( tr("All") , m_global );
m_image = new QCheckBox( tr("Image"), m_global );
m_text = new QCheckBox( tr("Text") , m_global );
m_video = new QCheckBox( tr("Video"), m_global );
connect(m_all, SIGNAL(stateChanged(int) ),
- this, SLOT(slotAllChanged() ) );
+ this, SLOT(slotAllChanged() ) );
m_frameLay->addItem( item2, 0, 0 );
m_frameLay->addWidget( m_audio, 1, 0 );
m_frameLay->addWidget( m_image, 2, 0 );
m_frameLay->addWidget( m_all, 3, 0 );
m_frameLay->addWidget( m_text, 1, 2 );
m_frameLay->addWidget( m_video, 2, 2 );
m_frameLay->addRowSpacing( 0, 8 );
m_frameLay->addColSpacing( 1, 2 );
m_box->addWidget( m_global );
m_layout->addWidget( m_frame );
QSpacerItem *item1 = new QSpacerItem( 1, 24,
- QSizePolicy::Fixed,
- QSizePolicy::Expanding );
+ QSizePolicy::Fixed,
+ QSizePolicy::Expanding );
m_layout->addItem( item1 );
}
void MediumGlobalWidget::readConfig()
{
if( m_config == 0 )
m_config = new Config("medium" );
m_config->setGroup("main");
m_useglobal->setChecked( m_config->readBoolEntry("global", false ) );
m_check->setChecked( m_config->readBoolEntry("use", true ) );
m_config->setGroup("mimetypes" );