[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/rsibreak
From: Tom Albers <tomalbers () kde ! nl>
Date: 2005-11-09 18:59:55
Message-ID: 1131562795.732182.16348.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 479241 by toma:
Possibility to start RSIBreak when KDE starts.
M +2 -0 NEWS
M +2 -0 src/Makefile.am
M +3 -0 src/rsibreak.desktop
M +11 -1 src/setupgeneral.cpp
M +1 -0 src/setupgeneral.h
M +1 -0 src/setuptiming.cpp
--- trunk/playground/utils/rsibreak/NEWS #479240:479241
@@ -1,5 +1,7 @@
To be released:
- Added slideshow feature, during break the shown images gets renewed
+- New logo and icons
+- Added possibility to automatically start RSIBreak when KDE starts
v0.0.3 2005-10-29
- Change to KUniqueApplication to prevent multiple instances
--- trunk/playground/utils/rsibreak/src/Makefile.am #479240:479241
@@ -28,5 +28,7 @@
# this is where the desktop file will go
xdg_apps_DATA = rsibreak.desktop
+autostart_DATA = rsibreak.desktop
+autostartdir = $(datadir)/autostart
include ../../admin/Doxyfile.am
--- trunk/playground/utils/rsibreak/src/rsibreak.desktop #479240:479241
@@ -6,6 +6,9 @@
Icon=rsibreak
DocPath=rsibreak/index.html
X-DCOP-ServiceType=Unique
+X-KDE-autostart-phase=2
+X-KDE-autostart-condition=rsibreakrc:General:AutoStart:false
+X-KDE-autostart-after=panel
Name=RSIBreak
Name[sv]=RSIbreak
Name[tr]=RSI Kesmesi
--- trunk/playground/utils/rsibreak/src/setupgeneral.cpp #479240:479241
@@ -50,8 +50,12 @@
{
kdDebug() << "Entering SetupGeneral" << endl;
QVBoxLayout *layout = new QVBoxLayout( parent );
+ layout->setSpacing( KDialog::spacingHint() );
- // --------------------------------------------------------
+ m_autoStart = new QCheckBox(i18n("&Automatically start RSIBreak at startup"), parent);
+ QWhatsThis::add( m_autoStart, i18n("With this checkbox you can indicate "
+ "that you want RSIBreak to start when KDE starts.") );
+ layout->addWidget(m_autoStart);
QVGroupBox *counterBox = new QVGroupBox(parent);
counterBox->setTitle(i18n("Counter"));
@@ -211,6 +215,9 @@
config->writeEntry("DisableAccel", m_disableAccel->isChecked());
config->writeEntry("MinimizeKey", m_shortcut);
config->sync();
+
+ config->setGroup("General");
+ config->writeEntry("AutoStart", m_autoStart->isChecked());
}
void SetupGeneral::readSettings()
@@ -235,6 +242,9 @@
m_shortcut = config->readEntry("MinimizeKey", "Escape");
m_shortcutBut->setText(m_shortcut);
+ config->setGroup("General");
+ m_autoStart->setChecked(config->readBoolEntry("AutoStart", false));
+
delete Black;
}
--- trunk/playground/utils/rsibreak/src/setupgeneral.h #479240:479241
@@ -92,6 +92,7 @@
QString m_shortcut;
QFont m_counterFont;
KColorButton* m_counterColor;
+ QCheckBox* m_autoStart;
QCheckBox* m_searchRecursiveCheck;
QCheckBox* m_hideMinimizeButton;
QCheckBox* m_hideCounter;
--- trunk/playground/utils/rsibreak/src/setuptiming.cpp #479240:479241
@@ -56,6 +56,7 @@
{
kdDebug() << "Entering SetupTiming" << endl;
QVBoxLayout *layout = new QVBoxLayout( parent );
+ layout->setSpacing( KDialog::spacingHint() );
QVGroupBox *tinyBox = new QVGroupBox(parent);
tinyBox->setTitle(i18n("Tiny breaks"));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic