summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-03-24 20:51:53 (UTC)
committer harlekin <harlekin>2003-03-24 20:51:53 (UTC)
commite0c0eaf4b77f87d27cd56ffae62bb8cc702753c1 (patch) (unidiff)
tree9e07a20530b8e8777398f00337f9d6d05b74f1fb
parent2bf0790dac098fd24a20161f32cd848a87fe56ca (diff)
downloadopie-e0c0eaf4b77f87d27cd56ffae62bb8cc702753c1.zip
opie-e0c0eaf4b77f87d27cd56ffae62bb8cc702753c1.tar.gz
opie-e0c0eaf4b77f87d27cd56ffae62bb8cc702753c1.tar.bz2
configuration for hte big busy cursor
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/settings/launcher/tabssettings.cpp12
-rw-r--r--core/settings/launcher/tabssettings.h2
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
@@ -78,8 +78,11 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name )
78 78
79 lay-> setRowStretch ( 4, 10 ); 79 lay-> setRowStretch ( 4, 10 );
80 80
81 m_bigbusy = new QCheckBox( tr( "Enable big busy indicator" ), this );
82 lay-> addMultiCellWidget ( m_bigbusy, 5, 5, 0, 1 );
83
81 m_busyblink = new QCheckBox ( tr( "Enable blinking busy indicator" ), this ); 84 m_busyblink = new QCheckBox ( tr( "Enable blinking busy indicator" ), this );
82 lay-> addMultiCellWidget ( m_busyblink, 5, 5, 0, 1 ); 85 lay-> addMultiCellWidget ( m_busyblink, 6, 6, 0, 1 );
83 86
84 p1-> setEnabled ( false ); 87 p1-> setEnabled ( false );
85 p3-> setEnabled ( false ); 88 p3-> setEnabled ( false );
@@ -90,6 +93,7 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name )
90 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>." )); 93 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>." ));
91 QWhatsThis::add ( p2, tr( "Opens a new dialog to customize the select Tab." )); 94 QWhatsThis::add ( p2, tr( "Opens a new dialog to customize the select Tab." ));
92 QWhatsThis::add ( p3, tr( "Deletes a Tab from the Launcher." ) + QString ( "<center><br><i>not yet implemented</i><br>Please use the tabmanager</center>." )); 95 QWhatsThis::add ( p3, tr( "Deletes a Tab from the Launcher." ) + QString ( "<center><br><i>not yet implemented</i><br>Please use the tabmanager</center>." ));
96 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." ));
93 QWhatsThis::add ( m_busyblink, tr( "Activate this, if you want a blinking busy indicator for starting applications in the Launcher." )); 97 QWhatsThis::add ( m_busyblink, tr( "Activate this, if you want a blinking busy indicator for starting applications in the Launcher." ));
94} 98}
95 99
@@ -117,8 +121,10 @@ void TabsSettings::init ( )
117 121
118 cfg. setGroup ( "GUI" ); 122 cfg. setGroup ( "GUI" );
119 m_busyblink-> setChecked ( cfg. readEntry ( "BusyType" ). lower ( ) == "blink" ); 123 m_busyblink-> setChecked ( cfg. readEntry ( "BusyType" ). lower ( ) == "blink" );
124 m_bigbusy->setChecked( cfg. readBoolEntry ( "BigBusy" ) );
120} 125}
121 126
127
122void TabsSettings::readTabSettings ( Config &cfg ) 128void TabsSettings::readTabSettings ( Config &cfg )
123{ 129{
124 QString grp ( "Tab %1" ); // No tr 130 QString grp ( "Tab %1" ); // No tr
@@ -259,8 +265,10 @@ void TabsSettings::accept ( )
259 } 265 }
260 cfg. setGroup ( "GUI" ); 266 cfg. setGroup ( "GUI" );
261 QString busytype = QString ( m_busyblink-> isChecked ( ) ? "blink" : "" ); 267 QString busytype = QString ( m_busyblink-> isChecked ( ) ? "blink" : "" );
262
263 cfg. writeEntry ( "BusyType", busytype ); 268 cfg. writeEntry ( "BusyType", busytype );
269
270 cfg. writeEntry ( "BigBusy", m_bigbusy->isChecked( ) );
271
264 { 272 {
265 QCopEnvelope e ( "QPE/Launcher", "setBusyIndicatorType(QString)" ); 273 QCopEnvelope e ( "QPE/Launcher", "setBusyIndicatorType(QString)" );
266 e << busytype; 274 e << busytype;
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
@@ -59,7 +59,7 @@ private:
59 //QString currentTab; 59 //QString currentTab;
60 QStringList m_ids; 60 QStringList m_ids;
61 QMap <QString, TabConfig> m_tabs; 61 QMap <QString, TabConfig> m_tabs;
62 QCheckBox *m_busyblink; 62 QCheckBox *m_busyblink, *m_bigbusy;
63}; 63};
64 64
65 65