author | hrw <hrw> | 2005-10-17 13:28:09 (UTC) |
---|---|---|
committer | hrw <hrw> | 2005-10-17 13:28:09 (UTC) |
commit | 9f41cd10ef92daa889f86cb43793dc75de18e786 (patch) (side-by-side diff) | |
tree | e4df791fa7922f6857d645d81481de98e5bfeaeb /noncore/settings/appearance2 | |
parent | 965a373e7685c8ae2cfc9955efe20424aa95e10c (diff) | |
download | opie-9f41cd10ef92daa889f86cb43793dc75de18e786.zip opie-9f41cd10ef92daa889f86cb43793dc75de18e786.tar.gz opie-9f41cd10ef92daa889f86cb43793dc75de18e786.tar.bz2 |
Appearance: Added configuration options to set smallIconSize, bigIconSize, useBigPixmaps
-rw-r--r-- | noncore/settings/appearance2/appearance.cpp | 37 | ||||
-rw-r--r-- | noncore/settings/appearance2/appearance.h | 5 |
2 files changed, 42 insertions, 0 deletions
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 @@ -396,2 +396,35 @@ QWidget *Appearance::createAdvancedTab ( QWidget *parent, Config &cfg ) + 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" ) ); @@ -515,2 +548,6 @@ void Appearance::accept ( ) + 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 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 @@ -39,2 +39,3 @@ #include <qdialog.h> +#include <qspinbox.h> @@ -125,2 +126,6 @@ private: QCheckBox *m_leftHand; + + QSpinBox *m_bigIconSize; + QSpinBox *m_smallIconSize; + QCheckBox *m_useBigPixmaps; }; |