-rw-r--r-- | bin/kdepim/WhatsNew.txt | 4 | ||||
-rw-r--r-- | desktop/rpm/kdepim_rpm | 2 | ||||
-rw-r--r-- | korganizer/komonthview.cpp | 20 | ||||
-rw-r--r-- | korganizer/komonthview.h | 3 | ||||
-rw-r--r-- | korganizer/koviewmanager.cpp | 4 | ||||
-rw-r--r-- | version | 2 |
6 files changed, 22 insertions, 13 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 6945864..65bb075 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,18 +1,22 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.0.5 ************ | ||
4 | |||
5 | Bugfixes in KO/Pi. | ||
6 | |||
3 | ********** VERSION 2.0.4 ************ | 7 | ********** VERSION 2.0.4 ************ |
4 | 8 | ||
5 | KO/Pi: | 9 | KO/Pi: |
6 | Fixed problem loading translations for summary/location edit boxes in event/todo editor. | 10 | Fixed problem loading translations for summary/location edit boxes in event/todo editor. |
7 | 11 | ||
8 | Added a general "select week number" to the toolbar. | 12 | Added a general "select week number" to the toolbar. |
9 | 13 | ||
10 | Fixed some small problem of the new features introduced in version 2.0.3. | 14 | Fixed some small problem of the new features introduced in version 2.0.3. |
11 | 15 | ||
12 | Made it possible to specify one specific category as category color, | 16 | Made it possible to specify one specific category as category color, |
13 | if more than one categories are selected. | 17 | if more than one categories are selected. |
14 | 18 | ||
15 | Fixed a bug in saving colors for categories with non-ascii characters. | 19 | Fixed a bug in saving colors for categories with non-ascii characters. |
16 | (Like, e.g. German Umlauts). | 20 | (Like, e.g. German Umlauts). |
17 | Propably you have to set your colors again for those categories. | 21 | Propably you have to set your colors again for those categories. |
18 | 22 | ||
diff --git a/desktop/rpm/kdepim_rpm b/desktop/rpm/kdepim_rpm index 04c6aa1..4c53aac 100644 --- a/desktop/rpm/kdepim_rpm +++ b/desktop/rpm/kdepim_rpm | |||
@@ -1,19 +1,19 @@ | |||
1 | Summary: A collection of PIM programs | 1 | Summary: A collection of PIM programs |
2 | Name: KDE-Pim-Pi | 2 | Name: KDE-Pim-Pi |
3 | Version: 2.0.4 | 3 | Version: 2.0.5 |
4 | Release: SuSE_9.2 | 4 | Release: SuSE_9.2 |
5 | Copyright:GPL | 5 | Copyright:GPL |
6 | Group: Productivity/Pim | 6 | Group: Productivity/Pim |
7 | Source:http://sourceforge.net/projects/kdepimpi/ | 7 | Source:http://sourceforge.net/projects/kdepimpi/ |
8 | URL:http://sourceforge.net/projects/kdepimpi/ | 8 | URL:http://sourceforge.net/projects/kdepimpi/ |
9 | Packager: zautrix | 9 | Packager: zautrix |
10 | 10 | ||
11 | %description | 11 | %description |
12 | This package contains the platform-independent PIM programs from | 12 | This package contains the platform-independent PIM programs from |
13 | www.pi-sync.net, compiled for SuSE 9.2: | 13 | www.pi-sync.net, compiled for SuSE 9.2: |
14 | KTimeTacker/Pi | 14 | KTimeTacker/Pi |
15 | KPhone/Pi | 15 | KPhone/Pi |
16 | KAddressbook/Pi | 16 | KAddressbook/Pi |
17 | KOrganizer/Pi | 17 | KOrganizer/Pi |
18 | PasswordManager/Pi | 18 | PasswordManager/Pi |
19 | KOPieMail/Pi | 19 | KOPieMail/Pi |
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 9b9e164..6ae4c6f 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp | |||
@@ -777,34 +777,36 @@ void MonthViewCell::contextMenu( QListBoxItem *item ) | |||
777 | void MonthViewCell::selection( QListBoxItem *item ) | 777 | void MonthViewCell::selection( QListBoxItem *item ) |
778 | { | 778 | { |
779 | if ( !item ) return; | 779 | if ( !item ) return; |
780 | 780 | ||
781 | mMonthView->setSelectedCell( this ); | 781 | mMonthView->setSelectedCell( this ); |
782 | } | 782 | } |
783 | 783 | ||
784 | 784 | ||
785 | // ******************************************************************************* | 785 | // ******************************************************************************* |
786 | // ******************************************************************************* | 786 | // ******************************************************************************* |
787 | // ******************************************************************************* | 787 | // ******************************************************************************* |
788 | 788 | ||
789 | 789 | ||
790 | KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) | 790 | KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) |
791 | : KOEventView( calendar, parent, name ), | 791 | : KOEventView( calendar, parent, name ), |
792 | mDaysPerWeek( 7 ), mNumWeeks( 6 ), mNumCells( mDaysPerWeek * mNumWeeks ), | 792 | mDaysPerWeek( 7 ), mNumWeeks( 6 ), mNumCells( mDaysPerWeek * mNumWeeks ), |
793 | mShortDayLabels( false ), mWidthLongDayLabel( 0 ), mSelectedCell( 0 ) | 793 | mWidthLongDayLabel( 0 ), mSelectedCell( 0 ) |
794 | { | 794 | { |
795 | mShortDayLabelsM = false; | ||
796 | mShortDayLabelsW = false; | ||
795 | skipResize = false; | 797 | skipResize = false; |
796 | clPending = true; | 798 | clPending = true; |
797 | mNavigatorBar = new NavigatorBar( QDate::currentDate(), this, "useBigPixmaps" ); | 799 | mNavigatorBar = new NavigatorBar( QDate::currentDate(), this, "useBigPixmaps" ); |
798 | mWidStack = new QWidgetStack( this ); | 800 | mWidStack = new QWidgetStack( this ); |
799 | QVBoxLayout* hb = new QVBoxLayout( this ); | 801 | QVBoxLayout* hb = new QVBoxLayout( this ); |
800 | mMonthView = new QWidget( mWidStack ); | 802 | mMonthView = new QWidget( mWidStack ); |
801 | mWeekView = new QWidget( mWidStack ); | 803 | mWeekView = new QWidget( mWidStack ); |
802 | #if QT_VERSION >= 0x030000 | 804 | #if QT_VERSION >= 0x030000 |
803 | mWidStack->addWidget(mMonthView ); | 805 | mWidStack->addWidget(mMonthView ); |
804 | mWidStack->addWidget(mWeekView ); | 806 | mWidStack->addWidget(mWeekView ); |
805 | #else | 807 | #else |
806 | mWidStack->addWidget( mMonthView, 1 ); | 808 | mWidStack->addWidget( mMonthView, 1 ); |
807 | mWidStack->addWidget( mWeekView , 1 ); | 809 | mWidStack->addWidget( mWeekView , 1 ); |
808 | #endif | 810 | #endif |
809 | hb->addWidget( mNavigatorBar ); | 811 | hb->addWidget( mNavigatorBar ); |
810 | hb->addWidget( mWidStack ); | 812 | hb->addWidget( mWidStack ); |
@@ -1037,52 +1039,52 @@ void KOMonthView::updateConfig() | |||
1037 | mCellsW[i]->updateConfig(KOPrefs::instance()->mMonthViewUsesBigFont); | 1039 | mCellsW[i]->updateConfig(KOPrefs::instance()->mMonthViewUsesBigFont); |
1038 | } | 1040 | } |
1039 | #ifdef DESKTOP_VERSION | 1041 | #ifdef DESKTOP_VERSION |
1040 | MonthViewCell::toolTipGroup()->setEnabled(KOPrefs::instance()->mEnableToolTips); | 1042 | MonthViewCell::toolTipGroup()->setEnabled(KOPrefs::instance()->mEnableToolTips); |
1041 | #endif | 1043 | #endif |
1042 | updateView(); | 1044 | updateView(); |
1043 | } | 1045 | } |
1044 | 1046 | ||
1045 | void KOMonthView::updateDayLabels() | 1047 | void KOMonthView::updateDayLabels() |
1046 | { | 1048 | { |
1047 | 1049 | ||
1048 | QPtrVector<QLabel> *mDayLabelsT; | 1050 | QPtrVector<QLabel> *mDayLabelsT; |
1049 | 1051 | ||
1050 | mDayLabelsT = &mDayLabelsW; | 1052 | mDayLabelsT = &mDayLabelsW; |
1051 | for (int i = 0; i < 7; i++) { | 1053 | for (int i = 0; i < 7; i++) { |
1052 | if (mWeekStartsMonday) { | 1054 | if (mWeekStartsMonday) { |
1053 | bool show = mShortDayLabels; | 1055 | bool show = mShortDayLabelsW; |
1054 | if ( i > 4 && mShowSatSunComp && mWidthLongDayLabel > (*mDayLabelsT)[i]->width() ) | 1056 | if ( i > 4 && mShowSatSunComp && mWidthLongDayLabel > (*mDayLabelsT)[i]->width() ) |
1055 | show = true; | 1057 | show = true; |
1056 | (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(i+1,show)); | 1058 | (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(i+1,show)); |
1057 | } else { | 1059 | } else { |
1058 | if (i==0) (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(7,mShortDayLabels)); | 1060 | if (i==0) (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(7,mShortDayLabelsW)); |
1059 | else (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(i,mShortDayLabels)); | 1061 | else (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(i,mShortDayLabelsW)); |
1060 | 1062 | ||
1061 | } | 1063 | } |
1062 | } | 1064 | } |
1063 | mDayLabelsT = &mDayLabels; | 1065 | mDayLabelsT = &mDayLabels; |
1064 | for (int i = 0; i < 7; i++) { | 1066 | for (int i = 0; i < 7; i++) { |
1065 | if (mWeekStartsMonday) { | 1067 | if (mWeekStartsMonday) { |
1066 | bool show = mShortDayLabels; | 1068 | bool show = mShortDayLabelsM; |
1067 | if ( i > 4 && mShowSatSunComp && mWidthLongDayLabel > (*mDayLabelsT)[i]->width() ) | 1069 | if ( i > 4 && mShowSatSunComp && mWidthLongDayLabel > (*mDayLabelsT)[i]->width() ) |
1068 | show = true; | 1070 | show = true; |
1069 | (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(i+1,show)); | 1071 | (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(i+1,show)); |
1070 | } else { | 1072 | } else { |
1071 | if (i==0) (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(7,mShortDayLabels)); | 1073 | if (i==0) (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(7,mShortDayLabelsM)); |
1072 | else (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(i,mShortDayLabels)); | 1074 | else (*mDayLabelsT)[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(i,mShortDayLabelsM)); |
1073 | 1075 | ||
1074 | } | 1076 | } |
1075 | } | 1077 | } |
1076 | 1078 | ||
1077 | } | 1079 | } |
1078 | 1080 | ||
1079 | void KOMonthView::showDates(const QDate &start, const QDate &) | 1081 | void KOMonthView::showDates(const QDate &start, const QDate &) |
1080 | { | 1082 | { |
1081 | // kdDebug() << "KOMonthView::showDates(): " << start.toString() << endl; | 1083 | // kdDebug() << "KOMonthView::showDates(): " << start.toString() << endl; |
1082 | 1084 | ||
1083 | QPtrVector<MonthViewCell> *cells; | 1085 | QPtrVector<MonthViewCell> *cells; |
1084 | QPtrVector<QLabel> *dayLabels; | 1086 | QPtrVector<QLabel> *dayLabels; |
1085 | QPtrVector<KOWeekButton> *weekLabels; | 1087 | QPtrVector<KOWeekButton> *weekLabels; |
1086 | int weekNum = 6; | 1088 | int weekNum = 6; |
1087 | if ( mShowWeekView ) { | 1089 | if ( mShowWeekView ) { |
1088 | weekNum = 1; | 1090 | weekNum = 1; |
@@ -1373,33 +1375,33 @@ void KOMonthView::computeLayoutWeek() | |||
1373 | } else | 1375 | } else |
1374 | mCellsW[i]->setGeometry ( x+weeklabelwid,y,w,h ); | 1376 | mCellsW[i]->setGeometry ( x+weeklabelwid,y,w,h ); |
1375 | 1377 | ||
1376 | 1378 | ||
1377 | x += w; | 1379 | x += w; |
1378 | if ( x + w/2 > wid ) { | 1380 | if ( x + w/2 > wid ) { |
1379 | x = 0; | 1381 | x = 0; |
1380 | y += h+dayLabelHei ; | 1382 | y += h+dayLabelHei ; |
1381 | } | 1383 | } |
1382 | } | 1384 | } |
1383 | y= dayLabelHei; | 1385 | y= dayLabelHei; |
1384 | h = cellHei ; | 1386 | h = cellHei ; |
1385 | mWeekLabelsW[0]->setGeometry( 0,y,weeklabelwid,hei-dayLabelHei); | 1387 | mWeekLabelsW[0]->setGeometry( 0,y,weeklabelwid,hei-dayLabelHei); |
1386 | mWeekLabelsW[1]->setGeometry( 0,0,weeklabelwid,dayLabelHei); | 1388 | mWeekLabelsW[1]->setGeometry( 0,0,weeklabelwid,dayLabelHei); |
1387 | // qDebug("RRRRRRRRRRRRR %d %d old %d %d", e->size().width(),e->size().height() , e->oldSize().width(),e->oldSize().height()); | 1389 | // qDebug("RRRRRRRRRRRRR %d %d old %d %d", e->size().width(),e->size().height() , e->oldSize().width(),e->oldSize().height()); |
1388 | //qDebug("parent %d %d ", topLevelWidget()->size().width(), topLevelWidget()->size().height()); | 1390 | //qDebug("parent %d %d ", topLevelWidget()->size().width(), topLevelWidget()->size().height()); |
1389 | mShortDayLabels = mDayLabelsW[0]->width() < mWidthLongDayLabel ; | 1391 | mShortDayLabelsW = mDayLabelsW[0]->width()-2 < mWidthLongDayLabel ; |
1390 | updateDayLabels(); | 1392 | updateDayLabels(); |
1391 | //bool forceUpdate = !updatePossible; | 1393 | //bool forceUpdate = !updatePossible; |
1392 | updatePossible = true; | 1394 | updatePossible = true; |
1393 | //mWeekLabels[mNumWeeks]->setText( i18n("M")); | 1395 | //mWeekLabels[mNumWeeks]->setText( i18n("M")); |
1394 | //if ( forceUpdate ) | 1396 | //if ( forceUpdate ) |
1395 | // updateView(); | 1397 | // updateView(); |
1396 | } | 1398 | } |
1397 | void KOMonthView::computeLayout() | 1399 | void KOMonthView::computeLayout() |
1398 | { | 1400 | { |
1399 | 1401 | ||
1400 | 1402 | ||
1401 | static int lastWid = 0; | 1403 | static int lastWid = 0; |
1402 | static int lastHei = 0; | 1404 | static int lastHei = 0; |
1403 | 1405 | ||
1404 | if ( mShowWeekView ){ | 1406 | if ( mShowWeekView ){ |
1405 | computeLayoutWeek(); | 1407 | computeLayoutWeek(); |
@@ -1489,33 +1491,33 @@ void KOMonthView::computeLayout() | |||
1489 | if ( x + w/2 > wid ) { | 1491 | if ( x + w/2 > wid ) { |
1490 | x = 0; | 1492 | x = 0; |
1491 | y += h; | 1493 | y += h; |
1492 | } | 1494 | } |
1493 | } | 1495 | } |
1494 | y= dayLabelHei; | 1496 | y= dayLabelHei; |
1495 | h = cellHei ; | 1497 | h = cellHei ; |
1496 | for ( i = 0; i < 6; i++) { | 1498 | for ( i = 0; i < 6; i++) { |
1497 | if ( i == (6-rowModulo)) | 1499 | if ( i == (6-rowModulo)) |
1498 | ++h; | 1500 | ++h; |
1499 | mWeekLabels[i]->setGeometry( 0,y,weeklabelwid,h); | 1501 | mWeekLabels[i]->setGeometry( 0,y,weeklabelwid,h); |
1500 | y += h; | 1502 | y += h; |
1501 | } | 1503 | } |
1502 | mWeekLabels[6]->setGeometry( 0,0,weeklabelwid,dayLabelHei); | 1504 | mWeekLabels[6]->setGeometry( 0,0,weeklabelwid,dayLabelHei); |
1503 | // qDebug("RRRRRRRRRRRRR %d %d old %d %d", e->size().width(),e->size().height() , e->oldSize().width(),e->oldSize().height()); | 1505 | // qDebug("RRRRRRRRRRRRR %d %d old %d %d", e->size().width(),e->size().height() , e->oldSize().width(),e->oldSize().height()); |
1504 | //qDebug("parent %d %d ", topLevelWidget()->size().width(), topLevelWidget()->size().height()); | 1506 | //qDebug("parent %d %d ", topLevelWidget()->size().width(), topLevelWidget()->size().height()); |
1505 | mShortDayLabels = mDayLabels[0]->width() < mWidthLongDayLabel ; | 1507 | mShortDayLabelsM = mDayLabels[0]->width()-2 < mWidthLongDayLabel ; |
1506 | updateDayLabels(); | 1508 | updateDayLabels(); |
1507 | //bool forceUpdate = !updatePossible; | 1509 | //bool forceUpdate = !updatePossible; |
1508 | updatePossible = true; | 1510 | updatePossible = true; |
1509 | //mWeekLabels[mNumWeeks]->setText( i18n("W")); | 1511 | //mWeekLabels[mNumWeeks]->setText( i18n("W")); |
1510 | } | 1512 | } |
1511 | 1513 | ||
1512 | void KOMonthView::showContextMenu( Incidence *incidence ) | 1514 | void KOMonthView::showContextMenu( Incidence *incidence ) |
1513 | { | 1515 | { |
1514 | mContextMenu->showIncidencePopup(incidence); | 1516 | mContextMenu->showIncidencePopup(incidence); |
1515 | /* | 1517 | /* |
1516 | if( incidence && incidence->type() == "Event" ) { | 1518 | if( incidence && incidence->type() == "Event" ) { |
1517 | Event *event = static_cast<Event *>(incidence); | 1519 | Event *event = static_cast<Event *>(incidence); |
1518 | mContextMenu->showEventPopup(event); | 1520 | mContextMenu->showEventPopup(event); |
1519 | } else { | 1521 | } else { |
1520 | kdDebug() << "MonthView::showContextMenu(): cast failed." << endl; | 1522 | kdDebug() << "MonthView::showContextMenu(): cast failed." << endl; |
1521 | } | 1523 | } |
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index bf861ef..03f9dc6 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h | |||
@@ -269,29 +269,30 @@ class KOMonthView: public KOEventView | |||
269 | bool updatePossible; | 269 | bool updatePossible; |
270 | int mDaysPerWeek; | 270 | int mDaysPerWeek; |
271 | int mNumWeeks; | 271 | int mNumWeeks; |
272 | int mNumCells; | 272 | int mNumCells; |
273 | bool mWeekStartsMonday; | 273 | bool mWeekStartsMonday; |
274 | bool mShowSatSunComp; | 274 | bool mShowSatSunComp; |
275 | void computeLayout(); | 275 | void computeLayout(); |
276 | void computeLayoutWeek(); | 276 | void computeLayoutWeek(); |
277 | 277 | ||
278 | QPtrVector<MonthViewCell> mCells; | 278 | QPtrVector<MonthViewCell> mCells; |
279 | QPtrVector<QLabel> mDayLabels; | 279 | QPtrVector<QLabel> mDayLabels; |
280 | QPtrVector<KOWeekButton> mWeekLabels; | 280 | QPtrVector<KOWeekButton> mWeekLabels; |
281 | QPtrVector<MonthViewCell> mCellsW; | 281 | QPtrVector<MonthViewCell> mCellsW; |
282 | QPtrVector<QLabel> mDayLabelsW; | 282 | QPtrVector<QLabel> mDayLabelsW; |
283 | QPtrVector<KOWeekButton> mWeekLabelsW; | 283 | QPtrVector<KOWeekButton> mWeekLabelsW; |
284 | 284 | ||
285 | bool mShortDayLabels; | 285 | bool mShortDayLabelsM; |
286 | bool mShortDayLabelsW; | ||
286 | int mWidthLongDayLabel; | 287 | int mWidthLongDayLabel; |
287 | 288 | ||
288 | QDate mStartDate; | 289 | QDate mStartDate; |
289 | 290 | ||
290 | MonthViewCell *mSelectedCell; | 291 | MonthViewCell *mSelectedCell; |
291 | 292 | ||
292 | KOEventPopupMenu *mContextMenu; | 293 | KOEventPopupMenu *mContextMenu; |
293 | void keyPressEvent ( QKeyEvent * ) ; | 294 | void keyPressEvent ( QKeyEvent * ) ; |
294 | 295 | ||
295 | }; | 296 | }; |
296 | 297 | ||
297 | #endif | 298 | #endif |
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp index 90be237..b0f26d1 100644 --- a/korganizer/koviewmanager.cpp +++ b/korganizer/koviewmanager.cpp | |||
@@ -93,41 +93,44 @@ void KOViewManager::readSettings(KConfig *config) | |||
93 | else if (view == "Journal") showJournalView(); | 93 | else if (view == "Journal") showJournalView(); |
94 | else if (view == "TimeSpan") showTimeSpanView(); | 94 | else if (view == "TimeSpan") showTimeSpanView(); |
95 | else if (view == "Todo") showTodoView(); | 95 | else if (view == "Todo") showTodoView(); |
96 | else { | 96 | else { |
97 | showAgendaView(); | 97 | showAgendaView(); |
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | void KOViewManager::showDateView( int view, QDate date) | 101 | void KOViewManager::showDateView( int view, QDate date) |
102 | { | 102 | { |
103 | static int lastMode = 0; | 103 | static int lastMode = 0; |
104 | static int lastCount = 0; | 104 | static int lastCount = 0; |
105 | static bool lastNDMode = false; | 105 | static bool lastNDMode = false; |
106 | static QDate lastDate; | 106 | static QDate lastDate; |
107 | //qDebug("date %d %s", view, date.toString().latin1()); | 107 | //qDebug("date %d %s", view, date.toString().latin1()); |
108 | 108 | ||
109 | if (view != 9) | ||
110 | lastMode = 0; | ||
109 | //qDebug("%d %d ", lastNDMode, mFlagShowNextxDays ); | 111 | //qDebug("%d %d ", lastNDMode, mFlagShowNextxDays ); |
110 | bool savemFlagShowNextxDays = mFlagShowNextxDays; | 112 | bool savemFlagShowNextxDays = mFlagShowNextxDays; |
111 | mFlagShowNextxDays = false; | 113 | mFlagShowNextxDays = false; |
112 | if ( view == 3 ) { | 114 | if ( view == 3 ) { |
113 | //mCurrentAgendaView = 1 ; | 115 | //mCurrentAgendaView = 1 ; |
114 | lastDate = mMainView->dateNavigator()->selectedDates().first(); | 116 | lastDate = mMainView->dateNavigator()->selectedDates().first(); |
115 | lastCount = mMainView->dateNavigator()->selectedDates().count(); | 117 | lastCount = mMainView->dateNavigator()->selectedDates().count(); |
116 | lastNDMode = savemFlagShowNextxDays; | 118 | lastNDMode = savemFlagShowNextxDays; |
117 | mMainView->showDay( date ); | 119 | mMainView->showDay( date ); |
120 | lastMode = 1; | ||
118 | } else if (view == 4 ) { | 121 | } else if (view == 4 ) { |
119 | mCurrentAgendaView = 7 ; | 122 | mCurrentAgendaView = 7 ; |
120 | mMainView->dateNavigator()->selectDates( date, 7 ); | 123 | mMainView->dateNavigator()->selectDates( date, 7 ); |
121 | } else if (view == 5 ) { | 124 | } else if (view == 5 ) { |
122 | mCurrentAgendaView = 14 ; | 125 | mCurrentAgendaView = 14 ; |
123 | mMainView->dateNavigator()->selectDates( date, 14); | 126 | mMainView->dateNavigator()->selectDates( date, 14); |
124 | } else if (view == 6 ) { | 127 | } else if (view == 6 ) { |
125 | //mMainView->dateNavigator()->selectDates( date, 7 ); | 128 | //mMainView->dateNavigator()->selectDates( date, 7 ); |
126 | showMonthView(); | 129 | showMonthView(); |
127 | } else if (view == 7 ) { | 130 | } else if (view == 7 ) { |
128 | mMainView->dateNavigator()->selectDate( date ); | 131 | mMainView->dateNavigator()->selectDate( date ); |
129 | showJournalView(); | 132 | showJournalView(); |
130 | } else if (view == 8 ) { | 133 | } else if (view == 8 ) { |
131 | globalFlagBlockAgenda = 1; | 134 | globalFlagBlockAgenda = 1; |
132 | if ( mCurrentAgendaView != 3 ) | 135 | if ( mCurrentAgendaView != 3 ) |
133 | mCurrentAgendaView = -1; | 136 | mCurrentAgendaView = -1; |
@@ -137,33 +140,32 @@ void KOViewManager::showDateView( int view, QDate date) | |||
137 | KOPrefs::instance()->mNextXDays ); | 140 | KOPrefs::instance()->mNextXDays ); |
138 | mFlagShowNextxDays = true; | 141 | mFlagShowNextxDays = true; |
139 | mCurrentAgendaView = 3 ; | 142 | mCurrentAgendaView = 3 ; |
140 | } if (view == 9) { // return behaviour, for getting back from mode == 3 (single day mode ) | 143 | } if (view == 9) { // return behaviour, for getting back from mode == 3 (single day mode ) |
141 | if ( lastMode ) { | 144 | if ( lastMode ) { |
142 | mCurrentAgendaView = lastCount ; | 145 | mCurrentAgendaView = lastCount ; |
143 | mMainView->dateNavigator()->selectDates( lastDate, lastCount); | 146 | mMainView->dateNavigator()->selectDates( lastDate, lastCount); |
144 | mFlagShowNextxDays = lastNDMode; | 147 | mFlagShowNextxDays = lastNDMode; |
145 | if ( mFlagShowNextxDays ) { | 148 | if ( mFlagShowNextxDays ) { |
146 | mCurrentAgendaView = 3 ; | 149 | mCurrentAgendaView = 3 ; |
147 | } | 150 | } |
148 | } else | 151 | } else |
149 | showWeekView(); | 152 | showWeekView(); |
150 | } else if (view == 10) { | 153 | } else if (view == 10) { |
151 | mMainView->dateNavigator()->selectDates( date,mMainView->dateNavigator()->selectedDates().count() ); | 154 | mMainView->dateNavigator()->selectDates( date,mMainView->dateNavigator()->selectedDates().count() ); |
152 | } | 155 | } |
153 | lastMode = view; | ||
154 | } | 156 | } |
155 | 157 | ||
156 | 158 | ||
157 | 159 | ||
158 | void KOViewManager::writeSettings(KConfig *config) | 160 | void KOViewManager::writeSettings(KConfig *config) |
159 | { | 161 | { |
160 | config->setGroup("General"); | 162 | config->setGroup("General"); |
161 | 163 | ||
162 | QString view; | 164 | QString view; |
163 | if (mCurrentView == mWhatsNextView) view = "WhatsNext"; | 165 | if (mCurrentView == mWhatsNextView) view = "WhatsNext"; |
164 | else if (mCurrentView == mMonthView) view = "Month"; | 166 | else if (mCurrentView == mMonthView) view = "Month"; |
165 | else if (mCurrentView == mListView) view = "List"; | 167 | else if (mCurrentView == mListView) view = "List"; |
166 | else if (mCurrentView == mJournalView) view = "Journal"; | 168 | else if (mCurrentView == mJournalView) view = "Journal"; |
167 | else if (mCurrentView == mTimeSpanView) view = "TimeSpan"; | 169 | else if (mCurrentView == mTimeSpanView) view = "TimeSpan"; |
168 | else if (mCurrentView == mTodoView) view = "Todo"; | 170 | else if (mCurrentView == mTodoView) view = "Todo"; |
169 | else view = "Agenda"; | 171 | else view = "Agenda"; |
@@ -1 +1 @@ | |||
version = "2.0.4"; | version = "2.0.5"; | ||