summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt21
-rw-r--r--kalarmd/simplealarmdaemonimpl.cpp48
-rw-r--r--kalarmd/simplealarmdaemonimpl.h4
3 files changed, 61 insertions, 12 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index 681e433..73f42f1 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -3,8 +3,29 @@ Info about the changes in new versions of KDE-Pim/Pi
********** VERSION 2.2.6 ************
KO/Pi:
Made navigation in datepicker more userfriendly when using keyboard for scrolling.
+KO/Pi Alarm applet:
+Made font size for the two popup menus with larger font configurable:
+Change size with menu:
+Play Beeps->Font Size
+Save settings such that it will be restored after next reboot with menu:
+Play Beeps->Config->Save.
+KA/Pi:
+Big change! Needed for the upcoming Outlook sync:
+Telephone number types are now fixed in KA/Pi
+(but still compatible with the vCard standard, of cource)
+and they are compatible with the types used by the evil empire.
+That makes syncing with OL possible and make it possible to sync better with mobile devices.
+NOTE:
+All your telephone types will be converted automatically at loading/importing!
+Such that it may bea good idea to make a backup of the data before starting KA/Pi.
+But the editing of phone numbers and types has changed completely such that it is now much faster to edit/change types and numbers.
+HINT:
+To see whether there was some number for some contact not converted senseful, choose
+Menu: View->Modify view
+and add "Other Phone" ( in German "Sonst. Telefon") to the view.
+If a type was not converted senseful to some of the 18 new, fixed types, it will get the "Other" type.
********** VERSION 2.2.5 ************
Bugfixes in KO/Pi, KA/Pi and OM/Pi.
diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp
index 82873e1..2742610 100644
--- a/kalarmd/simplealarmdaemonimpl.cpp
+++ b/kalarmd/simplealarmdaemonimpl.cpp
@@ -66,16 +66,19 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent )
mPopUp->insertItem( "New Mail", this, SLOT ( newMail() ) );
mPopUp->insertSeparator();
mPopUp->insertItem( "Multi Sync", this, SLOT ( ringSync() ) );
mTimerPopUp = new QPopupMenu( this );
- QFont fon = mTimerPopUp->font();
- int points = (fon.pointSize()*4)/3;
- fon.setPointSize( points );
- mTimerPopUp->setFont( fon );
- mPopUp->setFont( fon );
+
mBeepPopUp = new QPopupMenu( this );
mSoundPopUp = new QPopupMenu( this );
mPausePopUp = new QPopupMenu( this );
+ mFontsizePopup = new QPopupMenu( this );
+ mFontsizePopup->insertItem( "10", 10 );
+ mFontsizePopup->insertItem( "12", 12 );
+ mFontsizePopup->insertItem( "14", 14 );
+ mFontsizePopup->insertItem( "16", 16 );
+ mFontsizePopup->insertItem( "18", 18 );
+ mFontsizePopup->insertItem( "24", 24 );
QPopupMenu* savePopUp = new QPopupMenu( this );
savePopUp->insertItem( "Save", 0 );
savePopUp->insertItem( "Load", 1 );
mSoundPopUp->insertItem( "Buzzer", 0 );
@@ -100,8 +103,9 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent )
mSuspendPopUp->insertItem( "30x", 30 );
mBeepPopUp->insertItem( "Auto suspend",mSuspendPopUp );
mBeepPopUp->insertItem( "Beep interval",mPausePopUp );
mBeepPopUp->insertItem( "Replay",mSoundPopUp );
+ mBeepPopUp->insertItem( "Font Size",mFontsizePopup );
mBeepPopUp->insertItem( "Config",savePopUp );
mBeepPopUp->insertItem( "300", 300 );
mBeepPopUp->insertItem( "180", 180 );
mBeepPopUp->insertItem( "60", 60 );
@@ -129,8 +133,9 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent )
connect ( mSoundPopUp, SIGNAL( activated ( int ) ), this, SLOT (confSound( int ) ) );
connect ( mPausePopUp, SIGNAL( activated ( int ) ), this, SLOT (confPause( int ) ) );
connect ( mSuspendPopUp, SIGNAL( activated ( int ) ), this, SLOT (confSuspend( int ) ) );
connect ( savePopUp, SIGNAL( activated ( int ) ), this, SLOT (saveSlot( int ) ) );
+ connect ( mFontsizePopup, SIGNAL( activated ( int ) ), this, SLOT (confFontSize( int ) ) );
mTimerTime = 0;
mCustomText = "Custom Text";
mCustomMinutes = 7;
mTimerPopupConf = 1;
@@ -146,17 +151,15 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent )
else {
wavAlarm = true;
mSoundPopUp->setItemChecked ( 1, true );
}
- saveSlot( 1 );
mTimerStartLabel = new QLabel( 0, 0, WType_Popup );
//mTimerStartLabel->setCaption( "Timer started!");
mTimerStartLabel->setAlignment ( Qt::AlignCenter ) ;
- fon = mTimerPopUp->font();
- fon.setBold( true );
- points = (fon.pointSize()*2);
- fon.setPointSize( points );
- mTimerStartLabel->setFont( fon );
+ saveSlot( 1 );
+
+
+
}
SimpleAlarmDaemonImpl::~SimpleAlarmDaemonImpl()
{
@@ -170,8 +173,10 @@ void SimpleAlarmDaemonImpl::saveSlot( int load )
QString fileName = QDir::homeDirPath() +"/.kopialarmrc";
//qDebug("save %d ", load );
QFile file( fileName );
if ( load ) {
+ mPopupFontSize = mTimerPopUp->font().pointSize();
+ confFontSize( mPopupFontSize );
if( !QFile::exists( fileName) )
return;
if (!file.open( IO_ReadOnly ) ) {
return ;
@@ -188,8 +193,14 @@ void SimpleAlarmDaemonImpl::saveSlot( int load )
if ( ok ) {
confPause( val );
}
}
+ if ( line.left(4 ) == "POFO" ) {
+ val = line.mid( 4,len-5).toInt( &ok );
+ if ( ok ) {
+ confFontSize( val );
+ }
+ }
if ( line.left(4 ) == "SUCO" ) {
val = line.mid( 4,len-5).toInt( &ok );
if ( ok )
confSuspend ( val );
@@ -231,8 +242,9 @@ void SimpleAlarmDaemonImpl::saveSlot( int load )
}
QString configString ;
configString += "PPAU " + QString::number( mPausePlay ) + "\n";
configString += "SUCO " + QString::number( mSuspend ) + "\n";
+ configString += "POFO " + QString::number( mPopupFontSize ) + "\n";
configString += "WAAL " + QString::number( wavAlarm ) + "\n";
configString += "PLBE " + QString::number( mPlayBeeps ) + "\n";
configString += "CUTE " + mCustomText + "\n";
configString += "CUMI " + QString::number( mCustomMinutes ) + "\n";
@@ -630,8 +642,22 @@ void SimpleAlarmDaemonImpl::confTimer( int time )
QTimer::singleShot( 5000, mTimerStartLabel, SLOT ( hide() ) );
mTimerTime = 1;
}
+void SimpleAlarmDaemonImpl::confFontSize( int size )
+{
+
+ mFontsizePopup->setItemChecked( mPopupFontSize, false );
+ mPopupFontSize = size;
+ mFontsizePopup->setItemChecked( mPopupFontSize, true );
+ QFont fon = mTimerPopUp->font();
+ fon.setPointSize( mPopupFontSize );
+ mTimerPopUp->setFont( fon );
+ mPopUp->setFont( fon );
+ fon.setBold( true );
+ fon.setPointSize( mPopupFontSize * 2 );
+ mTimerStartLabel->setFont( fon );
+}
void SimpleAlarmDaemonImpl::writeFile()
{
QCopEnvelope e("QPE/Application/kopi", "-writeFileSilent");
//QCopEnvelope e("QPE/Application/kopi", "-writeFile");
diff --git a/kalarmd/simplealarmdaemonimpl.h b/kalarmd/simplealarmdaemonimpl.h
index 9b7de94..06ef91b 100644
--- a/kalarmd/simplealarmdaemonimpl.h
+++ b/kalarmd/simplealarmdaemonimpl.h
@@ -56,8 +56,9 @@ class SimpleAlarmDaemonImpl : public QLabel
void writeJournal();
void slotPlayBeep( int );
void showTimer( );
void confPause( int );
+ void confFontSize( int );
void confTimer( int );
void saveSlot( int );
void confSuspend( int );
void confSound( int num );
@@ -74,16 +75,17 @@ class SimpleAlarmDaemonImpl : public QLabel
int mSuspend;
QString mAlarmMessage;
int mTimerTime;
int getFileNameLen( QString );
- QPopupMenu* mPopUp, *mBeepPopUp, *mTimerPopUp, *mSoundPopUp,*mPausePopUp,*mSuspendPopUp;
+ QPopupMenu* mPopUp, *mBeepPopUp, *mTimerPopUp, *mSoundPopUp,*mPausePopUp,*mSuspendPopUp, *mFontsizePopup;
QDateTime mRunningTimer;
void fillTimerPopUp();
QString timerMesssage;
QString mCustomText;
QString mRunningTimerText;
int mCustomMinutes;
int mTimerPopupConf;
+ int mPopupFontSize;
bool wavAlarm;
};
class KODateLabel : public QLabel
{