author | zautrix <zautrix> | 2005-02-01 23:46:24 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-01 23:46:24 (UTC) |
commit | 9ecfd0660e36b6b8dd7401f0edb16dd3d6f03289 (patch) (unidiff) | |
tree | d80eb20b97ab401b4e9e34f25b65030fb2c0b035 | |
parent | afa94abe147d23e09a14a81e47d04d4a3d5670c3 (diff) | |
download | kdepimpi-9ecfd0660e36b6b8dd7401f0edb16dd3d6f03289.zip kdepimpi-9ecfd0660e36b6b8dd7401f0edb16dd3d6f03289.tar.gz kdepimpi-9ecfd0660e36b6b8dd7401f0edb16dd3d6f03289.tar.bz2 |
text
-rw-r--r-- | bin/kdepim/korganizer/featuresKOPI.txt | 39 | ||||
-rw-r--r-- | korganizer/komonthview.cpp | 11 |
2 files changed, 41 insertions, 9 deletions
diff --git a/bin/kdepim/korganizer/featuresKOPI.txt b/bin/kdepim/korganizer/featuresKOPI.txt index ab6b224..052680e 100644 --- a/bin/kdepim/korganizer/featuresKOPI.txt +++ b/bin/kdepim/korganizer/featuresKOPI.txt | |||
@@ -122,90 +122,123 @@ This alarm applet will make the Zaurus wake up, if the device is in suspend mode | |||
122 | On the desktop (e.g. Windows) you can enable in KO/Pi the internal alarm notification, | 122 | On the desktop (e.g. Windows) you can enable in KO/Pi the internal alarm notification, |
123 | such that you are informed about an alarm, if the program is running. | 123 | such that you are informed about an alarm, if the program is running. |
124 | 12) | 124 | 12) |
125 | What'sThis Help: | 125 | What'sThis Help: |
126 | To use the What'sThis Help, you have to enable the What'sThis icon in the toolbar. | 126 | To use the What'sThis Help, you have to enable the What'sThis icon in the toolbar. |
127 | (Choose menu: ME-Toolbar or Action-Configure Toolbar ). | 127 | (Choose menu: ME-Toolbar or Action-Configure Toolbar ). |
128 | (You have to restart to reload the changed toolbar config). | 128 | (You have to restart to reload the changed toolbar config). |
129 | Now click on the QWhat'sThis Icon | 129 | Now click on the QWhat'sThis Icon |
130 | in the top right corner of KO/Pi. | 130 | in the top right corner of KO/Pi. |
131 | Then click now after that on an item in the Agenda View or in the month view | 131 | Then click now after that on an item in the Agenda View or in the month view |
132 | you will get a detailed display of the items content. | 132 | you will get a detailed display of the items content. |
133 | 133 | ||
134 | 134 | ||
135 | 135 | ||
136 | ****************************************************** | 136 | ****************************************************** |
137 | B) Useful features, that are not straighforward to see | 137 | B) Useful features, that are not straighforward to see |
138 | ****************************************************** | 138 | ****************************************************** |
139 | 139 | ||
140 | 1) Right mouse click on Zaurus | 140 | 1) Right mouse click on Zaurus |
141 | 2) Moving of items in the agenda view | 141 | 2) Moving of items in the agenda view |
142 | 3) Creating exceptions for recurring events | 142 | 3) Creating exceptions for recurring events |
143 | 4) Accessing the week in agenda view from the Month view | 143 | 4) Accessing the week in agenda view from the Month view |
144 | 5) Navigation in month view | 144 | 5) Navigation in month view |
145 | 6) Navigation in agenda view | 145 | 6) Navigation in agenda view |
146 | 7) Monthview as week view | ||
147 | 8) Switching display mode in date edit | ||
146 | 148 | ||
147 | 1) | 149 | 1) |
148 | Right mouse click on Zaurus: | 150 | Right mouse click on Zaurus: |
149 | In KO/Pi on the desktop a right mouse click will popup an menu on some items. | 151 | In KO/Pi on the desktop a right mouse click will popup an menu on some items. |
150 | On the Zaurus there can only the stylus be used. | 152 | On the Zaurus there can only the stylus be used. |
151 | To simulte a right mouse click with the stylus press is and hold it down | 153 | To simulte a right mouse click with the stylus press is and hold it down |
152 | for 1-2 seconds. If you release it then, a menu pops up, if there is | 154 | for 1-2 seconds. If you release it then, a menu pops up, if there is |
153 | a menu available for this particular item. | 155 | a menu available for this particular item. |
154 | On some places the menu pops up without releasing the stylus. | 156 | On some places the menu pops up without releasing the stylus. |
155 | That bevaviour is not a bug, it is caused by the the behaviour of the | 157 | That bevaviour is not a bug, it is caused by the the behaviour of the |
156 | single left click on the item. | 158 | single left click on the item. |
159 | |||
157 | 2) | 160 | 2) |
158 | Moving of items in the agenda view: | 161 | Moving of items in the agenda view: |
159 | In the aganda view you can move an item by clicking on it and holding | 162 | In the agenda view you can move an item by clicking on it and holding |
160 | the mouse down. | 163 | the mouse down. |
161 | You have to move the mouse some distance before the items actually | 164 | You have to move the mouse some distance before the items actually |
162 | starts to move. That is not abug, that is a feature to prevent | 165 | starts to move. That is not abug, that is a feature to prevent |
163 | you to make unwanted moves of the item when you click on it(and moving the | 166 | you to make unwanted moves of the item when you click on it(and moving the |
164 | mouse only a small distance with this click) | 167 | mouse only a small distance with this click) |
168 | |||
165 | 3) | 169 | 3) |
166 | Creating exceptions for recurring events: | 170 | Creating exceptions for recurring events: |
167 | To create an exception for a recurring event, | 171 | To create an exception for a recurring event, |
168 | move this event in the agenda view. | 172 | move this event in the agenda view. |
169 | This recurrence is automatically added to the list | 173 | This recurrence is automatically added to the list |
170 | of recurrence exceptions and a non-recurring clone is created. | 174 | of recurrence exceptions and a non-recurring clone is created. |
171 | To cancel a recurrence, create an exception by moving it | 175 | To cancel a single recurrence, create an exception by moving it |
172 | and then move it back and cancel it. | 176 | and then move it back and cancel it. |
177 | |||
173 | 4) | 178 | 4) |
174 | Accessing the week in agenda view from the month view: | 179 | Accessing the week in agenda view from the month view: |
175 | In the month view there are on the left week numbers displayed. | 180 | In the month view there are on the left week numbers displayed. |
176 | Click on a week number to see this week in the agenda view. | 181 | Click on a week number to see this week in the agenda view. |
182 | |||
177 | 5) | 183 | 5) |
178 | Navigation in month view: | 184 | Navigation in month view: |
179 | If you select the month view with the icon in the toolbar, | 185 | If you select the month view with the icon in the toolbar, |
180 | the selected data range in the date navigator | 186 | the selected data range in the date navigator |
181 | is set automatically to the complete month. | 187 | is set automatically to the complete month. |
182 | (Click on month view and then the space bar to see the | 188 | (Click on month view and then the space bar to see the |
183 | selected data range in the date navigator). | 189 | selected data range in the date navigator). |
184 | If you select in the data navigator | 190 | If you select in the data navigator |
185 | (automatically by clicking on the month view or manually) | 191 | (automatically by clicking on the month view or manually) |
186 | a date range from the first of the month to the | 192 | a date range from the first of the month to the |
187 | 28.-31. of the month (the 28.-31. is valid for every month!) | 193 | 28.-31. of the month (the 28.-31. is valid for every month!) |
188 | then the (month-)navigation keys will select automatically the | 194 | then the (month-)navigation keys will select automatically the |
189 | complete next month as date range. | 195 | complete next month as date range. |
196 | |||
190 | 6) | 197 | 6) |
191 | Navigation in agenda view: | 198 | Navigation in agenda view: |
192 | If you select (as an example) 4 days in the date navigator | 199 | If you select (as an example) 4 days in the date navigator |
193 | the (week-) navigation key will select the same 4 days in the next week. | 200 | the (week-) navigation key will select the same 4 days in the next week. |
194 | If you want to get the next 4 days after the selected 4 days selected, | 201 | If you want to get the next 4 days after the selected 4 days selected, |
195 | you have to switch the navigation mode to "next days mode" | 202 | you have to switch the navigation mode to "next days mode" |
196 | by clicking on the next days icons. | 203 | by clicking on the next days icons. |
197 | Now the next days from today are selected, but after selecting | 204 | Now the next days from today are selected, but after selecting |
198 | 4 days in the day navigator the (week-) navigation key | 205 | 4 days in the day navigator the (week-) navigation key |
199 | will select the next 4 days. | 206 | will select the next 4 days. |
200 | The "next days mode" is turned off by clicking on the | 207 | The "next days mode" is turned off by clicking on the |
201 | week view, work week view or day view button. | 208 | week view, work week view or day view button. |
202 | The agenda view has "time labels" on the left, which displays the hours from 0-24. | 209 | The agenda view has "time labels" on the left, which displays the hours from 0-24. |
203 | If you press the mouse on the timelabels and move it up/down you can | 210 | If you press the mouse on the timelabels and move it up/down you can |
204 | increase/decrease the agenda size quickly. | 211 | increase/decrease the agenda size quickly. |
212 | In the agenda view you can click on the day labels (e.g. Mon 14) | ||
213 | to see the selected date in single day mode. | ||
214 | If you click in single day mode the day label you will switch back to | ||
215 | the previously selected date range. | ||
216 | Right of the day labels is a ">" button. | ||
217 | If you click this button, you will go one day ahead. | ||
218 | Left of the day labels is the month name displayed. | ||
219 | If you click this button, the month view is shown. | ||
220 | |||
221 | 7) | ||
222 | Monthview as week view: | ||
223 | On the left side of the monthview are the week number labels displayed. | ||
224 | On top of these labels is a "W" displayed. | ||
225 | If you click on this button the month view mode will switch to week view mode. | ||
226 | To switch back, please click the button, which now displays a "M". | ||
227 | |||
228 | 8) | ||
229 | Switching display mode in date edit: | ||
230 | On several places is a date edit used. | ||
231 | You can scroll the dates by selecting the part of the date (month, day, year) | ||
232 | in the lineedit and pressing the key up/key down key. | ||
233 | The display mode of a date edit is initially short date mode. | ||
234 | (I.e. weekday names are not displayed) | ||
235 | If you doubleclick in the lineedit the mode switches to long date mode. | ||
236 | Now the weekday names are displayed for better overview. | ||
237 | To switch back simply doubleclick again in the line edit. | ||
205 | 238 | ||
206 | 239 | ||
207 | 240 | ||
208 | 241 | ||
209 | 242 | ||
210 | 243 | ||
211 | 244 | ||
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 9888566..6294b98 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp | |||
@@ -669,53 +669,49 @@ QDate MonthViewCell::selectedIncidenceDate() | |||
669 | 669 | ||
670 | MonthViewItem *item = | 670 | MonthViewItem *item = |
671 | static_cast<MonthViewItem *>( mItemList->item( index ) ); | 671 | static_cast<MonthViewItem *>( mItemList->item( index ) ); |
672 | 672 | ||
673 | if ( !item ) return qd; | 673 | if ( !item ) return qd; |
674 | 674 | ||
675 | return item->incidenceDate(); | 675 | return item->incidenceDate(); |
676 | } | 676 | } |
677 | 677 | ||
678 | void MonthViewCell::deselect() | 678 | void MonthViewCell::deselect() |
679 | { | 679 | { |
680 | mItemList->clearSelection(); | 680 | mItemList->clearSelection(); |
681 | enableScrollBars( false ); | 681 | enableScrollBars( false ); |
682 | // updateCell(); | 682 | // updateCell(); |
683 | } | 683 | } |
684 | void MonthViewCell::select() | 684 | void MonthViewCell::select() |
685 | { | 685 | { |
686 | ;// updateCell(); | 686 | ;// updateCell(); |
687 | } | 687 | } |
688 | 688 | ||
689 | void MonthViewCell::resizeEvent ( QResizeEvent * ) | 689 | void MonthViewCell::resizeEvent ( QResizeEvent * ) |
690 | { | 690 | { |
691 | if ( !mMonthView->isUpdatePossible() ) | 691 | if ( !mMonthView->isUpdatePossible() ) |
692 | return; | 692 | return; |
693 | #ifndef DESKTOP_VERSION | 693 | |
694 | if ( !isVisible() ){ | ||
695 | return; | ||
696 | } | ||
697 | #endif | ||
698 | int size = height() - mLabel->height() - 2; | 694 | int size = height() - mLabel->height() - 2; |
699 | if ( size > 0 ) | 695 | if ( size > 0 ) |
700 | mItemList->verticalScrollBar()->setMaximumHeight( size ); | 696 | mItemList->verticalScrollBar()->setMaximumHeight( size ); |
701 | size = width() - mLabel->width() -2; | 697 | size = width() - mLabel->width() -2; |
702 | if ( size > 0 ) | 698 | if ( size > 0 ) |
703 | mItemList->horizontalScrollBar()->setMaximumWidth( size ); | 699 | mItemList->horizontalScrollBar()->setMaximumWidth( size ); |
704 | mLabel->move( width()-mItemList->lineWidth() - mLabel->width(), height()-mItemList->lineWidth() - mLabel->height() ); | 700 | mLabel->move( width()-mItemList->lineWidth() - mLabel->width(), height()-mItemList->lineWidth() - mLabel->height() ); |
705 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); | 701 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); |
706 | } | 702 | } |
707 | 703 | ||
708 | void MonthViewCell::defaultAction( QListBoxItem *item ) | 704 | void MonthViewCell::defaultAction( QListBoxItem *item ) |
709 | { | 705 | { |
710 | if ( !item ) return; | 706 | if ( !item ) return; |
711 | 707 | ||
712 | MonthViewItem *eventItem = static_cast<MonthViewItem *>( item ); | 708 | MonthViewItem *eventItem = static_cast<MonthViewItem *>( item ); |
713 | Incidence *incidence = eventItem->incidence(); | 709 | Incidence *incidence = eventItem->incidence(); |
714 | if ( incidence ) mMonthView->defaultAction( incidence ); | 710 | if ( incidence ) mMonthView->defaultAction( incidence ); |
715 | } | 711 | } |
716 | void MonthViewCell::showDay() | 712 | void MonthViewCell::showDay() |
717 | { | 713 | { |
718 | emit showDaySignal( date() ); | 714 | emit showDaySignal( date() ); |
719 | } | 715 | } |
720 | void MonthViewCell::newEvent() | 716 | void MonthViewCell::newEvent() |
721 | { | 717 | { |
@@ -820,48 +816,50 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) | |||
820 | 816 | ||
821 | connect( cell, SIGNAL( defaultAction( Incidence * ) ), | 817 | connect( cell, SIGNAL( defaultAction( Incidence * ) ), |
822 | SLOT( defaultAction( Incidence * ) ) ); | 818 | SLOT( defaultAction( Incidence * ) ) ); |
823 | connect( cell, SIGNAL( newEventSignal( QDateTime ) ), | 819 | connect( cell, SIGNAL( newEventSignal( QDateTime ) ), |
824 | SIGNAL( newEventSignal( QDateTime ) ) ); | 820 | SIGNAL( newEventSignal( QDateTime ) ) ); |
825 | connect( cell, SIGNAL( showDaySignal( QDate ) ), | 821 | connect( cell, SIGNAL( showDaySignal( QDate ) ), |
826 | SIGNAL( showDaySignal( QDate ) ) ); | 822 | SIGNAL( showDaySignal( QDate ) ) ); |
827 | } | 823 | } |
828 | } | 824 | } |
829 | 825 | ||
830 | connect( mWeekLabels[mNumWeeks], SIGNAL( clicked() ), | 826 | connect( mWeekLabels[mNumWeeks], SIGNAL( clicked() ), |
831 | SLOT( switchView() ) ); | 827 | SLOT( switchView() ) ); |
832 | mContextMenu = eventPopup(); | 828 | mContextMenu = eventPopup(); |
833 | // updateConfig(); //useless here | 829 | // updateConfig(); //useless here |
834 | 830 | ||
835 | emit incidenceSelected( 0 ); | 831 | emit incidenceSelected( 0 ); |
836 | } | 832 | } |
837 | 833 | ||
838 | KOMonthView::~KOMonthView() | 834 | KOMonthView::~KOMonthView() |
839 | { | 835 | { |
840 | delete mContextMenu; | 836 | delete mContextMenu; |
841 | } | 837 | } |
842 | void KOMonthView::switchView() | 838 | void KOMonthView::switchView() |
843 | { | 839 | { |
840 | if ( selectedCell( ) ) | ||
841 | selectedCell()->deselect(); | ||
844 | mShowWeekView = !mShowWeekView; | 842 | mShowWeekView = !mShowWeekView; |
845 | KOPrefs::instance()->mMonthViewWeek = mShowWeekView; | 843 | KOPrefs::instance()->mMonthViewWeek = mShowWeekView; |
846 | emit showNavigator( !mShowWeekView ); | 844 | emit showNavigator( !mShowWeekView ); |
847 | computeLayout(); | 845 | computeLayout(); |
848 | updateConfig(); | 846 | updateConfig(); |
849 | } | 847 | } |
850 | 848 | ||
851 | int KOMonthView::maxDatesHint() | 849 | int KOMonthView::maxDatesHint() |
852 | { | 850 | { |
853 | return mNumCells; | 851 | return mNumCells; |
854 | } | 852 | } |
855 | 853 | ||
856 | int KOMonthView::currentDateCount() | 854 | int KOMonthView::currentDateCount() |
857 | { | 855 | { |
858 | return mNumCells; | 856 | return mNumCells; |
859 | } | 857 | } |
860 | 858 | ||
861 | QPtrList<Incidence> KOMonthView::selectedIncidences() | 859 | QPtrList<Incidence> KOMonthView::selectedIncidences() |
862 | { | 860 | { |
863 | QPtrList<Incidence> selected; | 861 | QPtrList<Incidence> selected; |
864 | 862 | ||
865 | if ( mSelectedCell ) { | 863 | if ( mSelectedCell ) { |
866 | Incidence *incidence = mSelectedCell->selectedIncidence(); | 864 | Incidence *incidence = mSelectedCell->selectedIncidence(); |
867 | if ( incidence ) selected.append( incidence ); | 865 | if ( incidence ) selected.append( incidence ); |
@@ -1138,53 +1136,54 @@ void KOMonthView::computeLayoutWeek() | |||
1138 | combinedSatSun = true; | 1136 | combinedSatSun = true; |
1139 | 1137 | ||
1140 | //qDebug("KOMonthView::computeLayout()------------------------------------ "); | 1138 | //qDebug("KOMonthView::computeLayout()------------------------------------ "); |
1141 | QFontMetrics fm ( mWeekLabels[0]->font() ); | 1139 | QFontMetrics fm ( mWeekLabels[0]->font() ); |
1142 | int weeklabelwid = fm.width( "888" ); | 1140 | int weeklabelwid = fm.width( "888" ); |
1143 | wid -= weeklabelwid; | 1141 | wid -= weeklabelwid; |
1144 | 1142 | ||
1145 | int colWid = wid / daysToShow; | 1143 | int colWid = wid / daysToShow; |
1146 | int lastCol = wid - ( colWid*6 ); | 1144 | int lastCol = wid - ( colWid*6 ); |
1147 | int dayLabelHei = mDayLabels[0]->sizeHint().height(); | 1145 | int dayLabelHei = mDayLabels[0]->sizeHint().height(); |
1148 | int cellHei = (hei - (5- daysToShow )*dayLabelHei) /(5- daysToShow ); | 1146 | int cellHei = (hei - (5- daysToShow )*dayLabelHei) /(5- daysToShow ); |
1149 | int colModulo = wid % daysToShow; | 1147 | int colModulo = wid % daysToShow; |
1150 | int rowModulo = (hei- (5- daysToShow )*dayLabelHei) % daysToShow-1; | 1148 | int rowModulo = (hei- (5- daysToShow )*dayLabelHei) % daysToShow-1; |
1151 | //qDebug("rowmod %d ", rowModulo); | 1149 | //qDebug("rowmod %d ", rowModulo); |
1152 | int i; | 1150 | int i; |
1153 | int x,y,w,h; | 1151 | int x,y,w,h; |
1154 | x= 0; | 1152 | x= 0; |
1155 | y= 0; | 1153 | y= 0; |
1156 | w = colWid; | 1154 | w = colWid; |
1157 | h = dayLabelHei ; | 1155 | h = dayLabelHei ; |
1158 | for ( i = 0; i < 7; i++) { | 1156 | for ( i = 0; i < 7; i++) { |
1159 | if ( i && !( i % daysToShow) && i < 6) { | 1157 | if ( i && !( i % daysToShow) && i < 6) { |
1160 | y += hei/(5-daysToShow); | 1158 | y += hei/(5-daysToShow); |
1161 | x = 0; | 1159 | x = 0; |
1160 | w = colWid; | ||
1162 | } | 1161 | } |
1163 | if ( i == daysToShow-colModulo ) | 1162 | if ( i == daysToShow-colModulo ) |
1164 | ++w; | 1163 | ++w; |
1165 | if ( i >= 5 ) { | 1164 | if ( i >= 5 ) { |
1166 | mDayLabels[i]->setGeometry( x+weeklabelwid,y,w/2,h); | 1165 | mDayLabels[i]->setGeometry( x+weeklabelwid,y,w/2+1,h); |
1167 | x -= w/2 ; | 1166 | x -= w/2 ; |
1168 | } | 1167 | } |
1169 | else | 1168 | else |
1170 | mDayLabels[i]->setGeometry( x+weeklabelwid,y,w,h); | 1169 | mDayLabels[i]->setGeometry( x+weeklabelwid,y,w,h); |
1171 | x += w; | 1170 | x += w; |
1172 | } | 1171 | } |
1173 | x= 0; | 1172 | x= 0; |
1174 | y= dayLabelHei; | 1173 | y= dayLabelHei; |
1175 | w = colWid; | 1174 | w = colWid; |
1176 | h = cellHei; | 1175 | h = cellHei; |
1177 | for ( i = 0; i < mCells.count(); ++i) { | 1176 | for ( i = 0; i < mCells.count(); ++i) { |
1178 | if ( i > 6 ) { | 1177 | if ( i > 6 ) { |
1179 | mCells[i]->hide(); | 1178 | mCells[i]->hide(); |
1180 | continue; | 1179 | continue; |
1181 | } | 1180 | } |
1182 | 1181 | ||
1183 | w = colWid; | 1182 | w = colWid; |
1184 | if ( ((i) % daysToShow) >= daysToShow-colModulo ) { | 1183 | if ( ((i) % daysToShow) >= daysToShow-colModulo ) { |
1185 | ++w; | 1184 | ++w; |
1186 | } | 1185 | } |
1187 | if ( i == (daysToShow-1-rowModulo)*7) | 1186 | if ( i == (daysToShow-1-rowModulo)*7) |
1188 | ++h; | 1187 | ++h; |
1189 | 1188 | ||
1190 | if ( i >= 5 ) { | 1189 | if ( i >= 5 ) { |