summaryrefslogtreecommitdiff
path: root/core
authorharlekin <harlekin>2003-03-24 20:51:53 (UTC)
committer harlekin <harlekin>2003-03-24 20:51:53 (UTC)
commite0c0eaf4b77f87d27cd56ffae62bb8cc702753c1 (patch) (side-by-side diff)
tree9e07a20530b8e8777398f00337f9d6d05b74f1fb /core
parent2bf0790dac098fd24a20161f32cd848a87fe56ca (diff)
downloadopie-e0c0eaf4b77f87d27cd56ffae62bb8cc702753c1.zip
opie-e0c0eaf4b77f87d27cd56ffae62bb8cc702753c1.tar.gz
opie-e0c0eaf4b77f87d27cd56ffae62bb8cc702753c1.tar.bz2
configuration for hte big busy cursor
Diffstat (limited to 'core') (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
@@ -75,24 +75,28 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name )
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 ( ));
@@ -114,14 +118,16 @@ void TabsSettings::init ( )
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;
@@ -256,14 +262,16 @@ void TabsSettings::accept ( )
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;
}
}
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
@@ -56,13 +56,13 @@ protected:
private:
QListBox *m_list;
// QString currentTab;
QStringList m_ids;
QMap <QString, TabConfig> m_tabs;
- QCheckBox *m_busyblink;
+ QCheckBox *m_busyblink, *m_bigbusy;
};
#endif