summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog2
-rw-r--r--noncore/settings/appearance2/appearance.cpp37
-rw-r--r--noncore/settings/appearance2/appearance.h5
3 files changed, 43 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 85a26bd..2922afd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,18 +1,18 @@
2005-??-?? Opie 1.2.2
New Features
------------
-
+ * Appearance: Added configuration options to set smallIconSize, bigIconSize, useBigPixmaps (hrw)
Fixed Bugs
----------
* #1695 - Date selector use too small fontsize on VGA screen (hrw)
* #1686 - opie-console lack UI setting for switching scrollbar (hrw)
* #1624 - Button settngs changes are applied only after restart (hrw)
* #1492 - Backup and Restore does not show list of backups to restore on start (hrw)
* n.a. - remove hardcoded font size from wellenreiter (hrw)
* n.a. - added patch to build QT/E 2.3.10 with gc 4.x.x (hrw)
2005-09-11 Opie 1.2.1
diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp
index eea1a19..054b645 100644
--- a/noncore/settings/appearance2/appearance.cpp
+++ b/noncore/settings/appearance2/appearance.cpp
@@ -385,24 +385,57 @@ QWidget *Appearance::createAdvancedTab ( QWidget *parent, Config &cfg )
{
rot = ODevice::inst ( )-> direction ( );
}
else
{
rot = (ODirection)rotDirection;
}
m_rotdir_cw-> setChecked ( rot == CW );
m_rotdir_ccw-> setChecked ( rot == CCW );
m_rotdir_flip-> setChecked ( rot == Flip );
+ QFrame *f2 = new QFrame ( tab );
+ f2-> setFrameStyle ( QFrame::HLine | QFrame::Sunken );
+ vertLayout-> addWidget ( f2 );
+ vertLayout-> addSpacing ( 3 );
+
+ QHBoxLayout *bigIconlay = new QHBoxLayout ( vertLayout, 3 );
+
+ QLabel* label2 = new QLabel( tr( "&Big Icon size:" ), tab );
+ bigIconlay-> addWidget ( label2, 0, 0 );
+
+ m_bigIconSize = new QSpinBox(0, 128, 1, tab);
+ m_bigIconSize->setValue(cfg.readNumEntry( "BigIconSize" ));
+ bigIconlay->addWidget( m_bigIconSize );
+ label2->setBuddy( m_bigIconSize );
+ QWhatsThis::add( label2, tr( "Big Icon Size determines the size of the application icons in Launcher" ) );
+ QWhatsThis::add( m_bigIconSize, tr( "Big Icon Size determines the size of the application icons in Launcher" ) );
+
+ QHBoxLayout *smallIconlay = new QHBoxLayout ( vertLayout, 3 );
+
+ QLabel* label3 = new QLabel( tr( "&Small Icon size:" ), tab );
+ smallIconlay-> addWidget ( label3, 0, 0 );
+
+ m_smallIconSize = new QSpinBox(0, 128, 1, tab);
+ m_smallIconSize->setValue(cfg.readNumEntry( "SmallIconSize" ));
+ smallIconlay->addWidget( m_smallIconSize );
+ label3->setBuddy( m_smallIconSize );
+ QWhatsThis::add( label3, tr( "Small Icon Size determines the size of many of the icons seen in applications (in menus, tab bars, tool bars, etc.), as well as the size of taskbar." ) );
+ QWhatsThis::add( m_smallIconSize, tr( "Small Icon Size determines the size of many of the icons seen in applications (in menus, tab bars, tool bars, etc.), as well as the size of taskbar." ) );
+
+ m_useBigPixmaps = new QCheckBox( tr("use Big &Pixmaps"), tab);
+ m_useBigPixmaps->setChecked(cfg.readBoolEntry( "useBigPixmaps" ));
+ vertLayout->addWidget( m_useBigPixmaps );
+ QWhatsThis::add( m_useBigPixmaps, tr( "Enlarge toolbar pixmaps" ) );
/*
* add a spacing
*/
vertLayout->addItem( new QSpacerItem( 1, 1, QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding ) );
return tab;
}
Appearance::Appearance( QWidget* parent, const char* name, WFlags )
: QDialog ( parent, name, true, WStyle_ContextHelp )
{
@@ -504,24 +537,28 @@ void Appearance::accept ( )
else if (m_rotdir_cw-> isChecked ( ))
{
rot = CW;
}
else
{
rot = Flip;
}
config. writeEntry ( "rotatedir", (int)rot );
config. writeEntry( "LeftHand", m_leftHand->isChecked() );
+ config. writeEntry( "useBigPixmaps", m_useBigPixmaps->isChecked() );
+ config. writeEntry( "BigIconSize", m_bigIconSize->value() );
+ config. writeEntry( "SmallIconSize", m_smallIconSize->value() );
+
config. write ( ); // need to flush the config info first
Global::applyStyle ( );
QDialog::accept ( );
}
void Appearance::done ( int r )
{
QDialog::done ( r );
close ( );
}
diff --git a/noncore/settings/appearance2/appearance.h b/noncore/settings/appearance2/appearance.h
index ef7e874..79e71eb 100644
--- a/noncore/settings/appearance2/appearance.h
+++ b/noncore/settings/appearance2/appearance.h
@@ -28,24 +28,25 @@
Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#ifndef APPEARANCESETTINGS_H
#define APPEARANCESETTINGS_H
#include <opie2/ofontselector.h>
#include <qpe/fontdatabase.h>
#include <qdialog.h>
+#include <qspinbox.h>
using Opie::Ui::OFontSelector;
class QCheckBox;
class QComboBox;
class QLabel;
class QLineEdit;
class QListBox;
class QMultiLineEdit;
class QPushButton;
class QRadioButton;
class QToolButton;
@@ -114,15 +115,19 @@ private:
SampleWindow *m_sample;
QComboBox * m_tabstyle_list;
QRadioButton *m_tabstyle_top;
QRadioButton *m_tabstyle_bottom;
QRadioButton *m_rotdir_cw;
QRadioButton *m_rotdir_ccw;
QRadioButton *m_rotdir_flip;
QWidget * m_advtab;
QCheckBox *m_leftHand;
+
+ QSpinBox *m_bigIconSize;
+ QSpinBox *m_smallIconSize;
+ QCheckBox *m_useBigPixmaps;
};
#endif