summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -77,10 +77,13 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name )
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 );
@@ -89,8 +92,9 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name )
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 ( )
@@ -116,10 +120,12 @@ void TabsSettings::init ( )
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 ( );
@@ -258,10 +264,12 @@ void TabsSettings::accept ( )
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;
}
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
@@ -58,9 +58,9 @@ private:
QListBox *m_list;
// QString currentTab;
QStringList m_ids;
QMap <QString, TabConfig> m_tabs;
- QCheckBox *m_busyblink;
+ QCheckBox *m_busyblink, *m_bigbusy;
};