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 | 52 | ||||
-rw-r--r-- | core/settings/launcher/tabssettings.h | 2 |
2 files changed, 31 insertions, 23 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 @@ -17,3 +17,3 @@ ..}^=.= = ; Public License for more details. -++= -. .` .: +++= -. .` .: : = ...= . :.=- You should have received a copy of the GNU @@ -64,3 +64,3 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name ) QWhatsThis::add ( m_list, tr( "foobar" )); - + QPushButton *p1, *p2, *p3; @@ -80,4 +80,7 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name ) + 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 ); @@ -87,3 +90,3 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name ) init ( ); - + QWhatsThis::add ( m_list, tr( "Select the Launcher Tab you want to edit or delete." )); @@ -92,2 +95,3 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name ) 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." )); @@ -102,3 +106,3 @@ void TabsSettings::init ( ) m_ids << GLOBALID; - + for ( QStringList::Iterator it = types. begin ( ); it != types. end ( ); ++it ) { @@ -116,7 +120,9 @@ 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 ) @@ -138,3 +144,3 @@ void TabsSettings::readTabSettings ( Config &cfg ) global_def. m_changed = false; - + @@ -169,3 +175,3 @@ void TabsSettings::readTabSettings ( Config &cfg ) tc. m_font_italic = ( f [3]. toInt ( )); - } + } m_tabs [*it] = tc; @@ -174,6 +180,6 @@ void TabsSettings::readTabSettings ( Config &cfg ) // if all tabs have the same config, then initialize the GLOBALID tab to these values - + TabConfig *first = 0; bool same = true; - + for ( QStringList::Iterator it = m_ids. begin ( ); it != m_ids. end ( ); ++it ) { @@ -181,3 +187,3 @@ void TabsSettings::readTabSettings ( Config &cfg ) continue; - else if ( !first ) + else if ( !first ) first = &m_tabs [*it]; @@ -205,3 +211,3 @@ void TabsSettings::accept ( ) continue; - + cfg. setGroup ( grp. arg ( *it )); @@ -229,3 +235,3 @@ void TabsSettings::accept ( ) cfg. removeEntry ( "Font" ); - + QCopEnvelope be ( "QPE/Launcher", "setTabBackground(QString,int,QString)" ); @@ -259,6 +265,8 @@ void TabsSettings::accept ( ) } - cfg. setGroup ( "GUI" ); + cfg. setGroup ( "GUI" ); QString busytype = QString ( m_busyblink-> isChecked ( ) ? "blink" : "" ); - cfg. writeEntry ( "BusyType", busytype ); + + cfg. writeEntry ( "BigBusy", m_bigbusy->isChecked( ) ); + { @@ -277,3 +285,3 @@ void TabsSettings::deleteClicked ( ) int ind = m_list-> currentItem ( ); - + if ( ind < 0 ) @@ -287,3 +295,3 @@ void TabsSettings::editClicked ( ) int ind = m_list-> currentItem ( ); - + if ( ind < 0 ) @@ -292,6 +300,6 @@ void TabsSettings::editClicked ( ) TabConfig tc = m_tabs [m_ids [ind]]; - + TabDialog *d = new TabDialog ( m_list-> pixmap ( ind ), m_list-> text ( ind ), tc, this, "TabDialog", true ); - d-> showMaximized ( ); + d-> showMaximized ( ); if ( d-> exec ( ) == QDialog::Accepted ) { @@ -299,3 +307,3 @@ void TabsSettings::editClicked ( ) m_tabs [m_ids [ind]] = tc; - + if ( m_ids [ind] == GLOBALID ) { @@ -304,6 +312,6 @@ void TabsSettings::editClicked ( ) m_tabs [*it] = tc; - } + } } } - + delete d; 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 @@ -61,3 +61,3 @@ private: QMap <QString, TabConfig> m_tabs; - QCheckBox *m_busyblink; + QCheckBox *m_busyblink, *m_bigbusy; }; |