author | harlekin <harlekin> | 2003-03-24 20:51:53 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-24 20:51:53 (UTC) |
commit | e0c0eaf4b77f87d27cd56ffae62bb8cc702753c1 (patch) (side-by-side diff) | |
tree | 9e07a20530b8e8777398f00337f9d6d05b74f1fb | |
parent | 2bf0790dac098fd24a20161f32cd848a87fe56ca (diff) | |
download | opie-e0c0eaf4b77f87d27cd56ffae62bb8cc702753c1.zip opie-e0c0eaf4b77f87d27cd56ffae62bb8cc702753c1.tar.gz opie-e0c0eaf4b77f87d27cd56ffae62bb8cc702753c1.tar.bz2 |
configuration for hte big busy cursor
-rw-r--r-- | core/settings/launcher/tabssettings.cpp | 12 | ||||
-rw-r--r-- | core/settings/launcher/tabssettings.h | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/core/settings/launcher/tabssettings.cpp b/core/settings/launcher/tabssettings.cpp index 9d6e8c1..7cd00bd 100644 --- a/core/settings/launcher/tabssettings.cpp +++ b/core/settings/launcher/tabssettings.cpp @@ -73,28 +73,32 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name ) connect ( p2, SIGNAL( clicked ( )), this, SLOT( editClicked ( ))); p3 = new QPushButton ( tr( "Delete" ), this ); lay-> addWidget ( p3, 3, 1 ); connect ( p3, SIGNAL( clicked ( )), this, SLOT( deleteClicked ( ))); lay-> setRowStretch ( 4, 10 ); + m_bigbusy = new QCheckBox( tr( "Enable big busy indicator" ), this ); + lay-> addMultiCellWidget ( m_bigbusy, 5, 5, 0, 1 ); + m_busyblink = new QCheckBox ( tr( "Enable blinking busy indicator" ), this ); - lay-> addMultiCellWidget ( m_busyblink, 5, 5, 0, 1 ); + lay-> addMultiCellWidget ( m_busyblink, 6, 6, 0, 1 ); p1-> setEnabled ( false ); p3-> setEnabled ( false ); init ( ); QWhatsThis::add ( m_list, tr( "Select the Launcher Tab you want to edit or delete." )); QWhatsThis::add ( p1, tr( "Adds a new Tab to the Launcher." ) + QString ( "<center><br><i>not yet implemented</i><br>Please use the tabmanager</center>." )); QWhatsThis::add ( p2, tr( "Opens a new dialog to customize the select Tab." )); QWhatsThis::add ( p3, tr( "Deletes a Tab from the Launcher." ) + QString ( "<center><br><i>not yet implemented</i><br>Please use the tabmanager</center>." )); + QWhatsThis::add ( m_bigbusy, tr( "Activate this, if you want a big busy indicator in the middle of the screen instead of the one in taskbar." )); QWhatsThis::add ( m_busyblink, tr( "Activate this, if you want a blinking busy indicator for starting applications in the Launcher." )); } void TabsSettings::init ( ) { AppLnkSet rootFolder( MimeType::appsFolderName ( )); QStringList types = rootFolder. types ( ); @@ -112,18 +116,20 @@ void TabsSettings::init ( ) m_ids += "Documents"; // No tr Config cfg ( "Launcher" ); readTabSettings ( cfg ); cfg. setGroup ( "GUI" ); m_busyblink-> setChecked ( cfg. readEntry ( "BusyType" ). lower ( ) == "blink" ); + m_bigbusy->setChecked( cfg. readBoolEntry ( "BigBusy" ) ); } + void TabsSettings::readTabSettings ( Config &cfg ) { QString grp ( "Tab %1" ); // No tr m_tabs. clear ( ); TabConfig global_def; global_def. m_view = TabConfig::Icon; global_def. m_bg_type = TabConfig::Ruled; @@ -254,18 +260,20 @@ void TabsSettings::accept ( ) fe << tc. m_font_size; fe << tc. m_font_weight; fe << ( tc. m_font_italic ? 1 : 0 ); tc. m_changed = false; } cfg. setGroup ( "GUI" ); QString busytype = QString ( m_busyblink-> isChecked ( ) ? "blink" : "" ); - cfg. writeEntry ( "BusyType", busytype ); + + cfg. writeEntry ( "BigBusy", m_bigbusy->isChecked( ) ); + { QCopEnvelope e ( "QPE/Launcher", "setBusyIndicatorType(QString)" ); e << busytype; } } void TabsSettings::newClicked ( ) { diff --git a/core/settings/launcher/tabssettings.h b/core/settings/launcher/tabssettings.h index 47fcee2..439def6 100644 --- a/core/settings/launcher/tabssettings.h +++ b/core/settings/launcher/tabssettings.h @@ -54,15 +54,15 @@ protected: void init ( ); void readTabSettings ( Config & ); private: QListBox *m_list; // QString currentTab; QStringList m_ids; QMap <QString, TabConfig> m_tabs; - QCheckBox *m_busyblink; + QCheckBox *m_busyblink, *m_bigbusy; }; #endif |