summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/ToolbarPrefs.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/ToolbarPrefs.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/ToolbarPrefs.cpp76
1 files changed, 66 insertions, 10 deletions
diff --git a/noncore/apps/opie-reader/ToolbarPrefs.cpp b/noncore/apps/opie-reader/ToolbarPrefs.cpp
index 0347736..5cf220a 100644
--- a/noncore/apps/opie-reader/ToolbarPrefs.cpp
+++ b/noncore/apps/opie-reader/ToolbarPrefs.cpp
@@ -8,6 +8,16 @@
8****************************************************************************/ 8****************************************************************************/
9#include "useqpe.h"
9#include "ToolbarPrefs.h" 10#include "ToolbarPrefs.h"
10 11
12#include <qcheckbox.h>
13#include <qlabel.h>
14#include <qpushbutton.h>
15#include <qspinbox.h>
11#include <qlayout.h> 16#include <qlayout.h>
17#include <qvariant.h>
18#include <qtooltip.h>
19#include <qwhatsthis.h>
20#include <qcombobox.h>
12#include <qbuttongroup.h> 21#include <qbuttongroup.h>
22#include <qlineedit.h>
13#ifdef USEQPE 23#ifdef USEQPE
@@ -15,3 +25,2 @@
15#endif 25#endif
16#include <qpe/qpeapplication.h>
17 26
@@ -36,4 +45,3 @@ CBarPrefs::CBarPrefs(const QString& appdir, bool fs, QWidget* parent, const char
36 45
37 if (fs) 46 if (fs) showMaximized();
38 QPEApplication::showDialog( this );
39} 47}
@@ -123,2 +131,10 @@ CBarPrefs2::CBarPrefs2( Config& _config, QWidget* parent, const char* name, WFl
123 connect(fullscreen, SIGNAL(stateChanged(int)), this, SLOT( isChanged(int) ) ); 131 connect(fullscreen, SIGNAL(stateChanged(int)), this, SLOT( isChanged(int) ) );
132 rotate = new QCheckBox( tr("Rotate"), bg );
133 rotate->setChecked(config.readBoolEntry( "Rotate", false ));
134 connect(rotate, SIGNAL(stateChanged(int)), this, SLOT( isChanged(int) ) );
135
136 invert = new QCheckBox( tr("Invert"), bg );
137 invert->setChecked(config.readBoolEntry( "Invert Action", false ));
138 connect(invert, SIGNAL(stateChanged(int)), this, SLOT( isChanged(int) ) );
139
124 zoom = new QCheckBox( tr("Zoom"), bg ); 140 zoom = new QCheckBox( tr("Zoom"), bg );
@@ -179,2 +195,4 @@ void CBarPrefs2::saveall()
179 config.writeEntry( "Fullscreen", fullscreen->isChecked()); 195 config.writeEntry( "Fullscreen", fullscreen->isChecked());
196 config.writeEntry( "Rotate", rotate->isChecked());
197 config.writeEntry( "Invert Action", invert->isChecked());
180 config.writeEntry( "Zoom In/Out", zoom->isChecked()); 198 config.writeEntry( "Zoom In/Out", zoom->isChecked());
@@ -317,2 +335,10 @@ CViewBarPrefs::CViewBarPrefs( Config& _config, QWidget* parent, const char* nam
317 connect(fullscreen, SIGNAL(stateChanged(int)), this, SLOT( isChanged(int) ) ); 335 connect(fullscreen, SIGNAL(stateChanged(int)), this, SLOT( isChanged(int) ) );
336 rotate = new QCheckBox( tr("Rotate"), bg );
337 rotate->setChecked(config.readBoolEntry( "Rotate", false ));
338 connect(rotate, SIGNAL(stateChanged(int)), this, SLOT( isChanged(int) ) );
339
340 invert = new QCheckBox( tr("Invert"), bg );
341 invert->setChecked(config.readBoolEntry( "Invert Action", false ));
342 connect(invert, SIGNAL(stateChanged(int)), this, SLOT( isChanged(int) ) );
343
318 zoomin = new QCheckBox( tr("Zoom In"), bg ); 344 zoomin = new QCheckBox( tr("Zoom In"), bg );
@@ -340,2 +366,4 @@ void CViewBarPrefs::saveall()
340 config.writeEntry( "Fullscreen", fullscreen->isChecked()); 366 config.writeEntry( "Fullscreen", fullscreen->isChecked());
367 config.writeEntry( "Rotate", rotate->isChecked());
368 config.writeEntry( "Invert Action", invert->isChecked());
341 config.writeEntry( "Zoom In", zoomin->isChecked()); 369 config.writeEntry( "Zoom In", zoomin->isChecked());
@@ -414,3 +442,3 @@ CMiscBarPrefs::CMiscBarPrefs( QWidget* parent, const char* name, WFlags fl )
414 442
415 QGridLayout* hl = new QGridLayout(this,1,2); 443 QGridLayout* hl = new QGridLayout(this,2,2);
416 444
@@ -421,7 +449,2 @@ CMiscBarPrefs::CMiscBarPrefs( QWidget* parent, const char* name, WFlags fl )
421 floating->setText(tr("Floating")); 449 floating->setText(tr("Floating"));
422
423// QLabel* TextLabel = new QLabel( gb );
424// TextLabel->setText( tr( "Select Button" ) );
425
426
427 hl->addWidget( gb, 0, 0 ); 450 hl->addWidget( gb, 0, 0 );
@@ -441,2 +464,3 @@ CMiscBarPrefs::CMiscBarPrefs( QWidget* parent, const char* name, WFlags fl )
441 tbpolicy->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); 464 tbpolicy->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
465#ifdef USEQPE
442 tbpolicy->insertItem(tr("Single bar")); 466 tbpolicy->insertItem(tr("Single bar"));
@@ -444,2 +468,6 @@ CMiscBarPrefs::CMiscBarPrefs( QWidget* parent, const char* name, WFlags fl )
444 tbpolicy->insertItem(tr("Multiple bars")); 468 tbpolicy->insertItem(tr("Multiple bars"));
469#else
470 tbpolicy->insertItem(tr("Single bar"));
471 tbpolicy->insertItem(tr("Multiple bars"));
472#endif
445 473
@@ -457,3 +485,2 @@ CMiscBarPrefs::CMiscBarPrefs( QWidget* parent, const char* name, WFlags fl )
457 tbmovable = new QCheckBox( tr("Movable"), gb ); 485 tbmovable = new QCheckBox( tr("Movable"), gb );
458// ch->setChecked(config.readBoolEntry( "Movable", false ));
459 486
@@ -461,2 +488,31 @@ CMiscBarPrefs::CMiscBarPrefs( QWidget* parent, const char* name, WFlags fl )
461 488
489 gb = new QGroupBox(1, Qt::Horizontal, "QT Scroll Bar", this);
490
491#ifdef USECOMBO
492 qtscroll = new QComboBox(gb);
493#else
494 qtscroll = new MenuButton(gb);
495#endif
496 qtscroll->insertItem(tr("None"));
497 qtscroll->insertItem(tr("Right"));
498 qtscroll->insertItem(tr("Left"));
499
500 hl->addWidget(gb, 1, 0);
501 gb = new QGroupBox(1, Qt::Horizontal, "Miniscroll", this);
502
503#ifdef USECOMBO
504 localscroll = new QComboBox(gb);
505#else
506 localscroll = new MenuButton(gb);
507#endif
508 localscroll->insertItem(tr("None"));
509 localscroll->insertItem(tr("Bottom"));
510 localscroll->insertItem(tr("Right"));
511 localscroll->insertItem(tr("Left"));
512
513 //scrollonleft = new QCheckBox( tr("... on Left"), gb );
514 // ch->setChecked(config.readBoolEntry( "Movable", false ));
515
516 hl->addWidget(gb, 1, 1);
517
462} 518}