summaryrefslogtreecommitdiffabout
path: root/korganizer/kolistview.h
Unidiff
Diffstat (limited to 'korganizer/kolistview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kolistview.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/korganizer/kolistview.h b/korganizer/kolistview.h
index bcef0f0..a54b550 100644
--- a/korganizer/kolistview.h
+++ b/korganizer/kolistview.h
@@ -9,53 +9,48 @@
9 (at your option) any later version. 9 (at your option) any later version.
10 10
11 This program is distributed in the hope that it will be useful, 11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details. 14 GNU General Public License for more details.
15 15
16 You should have received a copy of the GNU General Public License 16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software 17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 19
20 As a special exception, permission is given to link this program 20 As a special exception, permission is given to link this program
21 with any edition of Qt, and distribute the resulting executable, 21 with any edition of Qt, and distribute the resulting executable,
22 without including the source code for Qt in the source distribution. 22 without including the source code for Qt in the source distribution.
23*/ 23*/
24#ifndef _KOLISTVIEW_H 24#ifndef _KOLISTVIEW_H
25#define _KOLISTVIEW_H 25#define _KOLISTVIEW_H
26 26
27#include <qlistview.h> 27#include <qlistview.h>
28#include <qmap.h> 28#include <qmap.h>
29#include <qdict.h> 29#include <qdict.h>
30 30
31#include <klistview.h> 31#include <klistview.h>
32 32
33#ifndef DESKTOP_VERSION
34#include <qtopia/ir.h>
35#else
36#define Ir char
37#endif
38#include <libkcal/incidence.h> 33#include <libkcal/incidence.h>
39 34
40#include "koeventview.h" 35#include "koeventview.h"
41#include "customlistviewitem.h" 36#include "customlistviewitem.h"
42 37
43using namespace KCal; 38using namespace KCal;
44 39
45class KOListViewWhatsThis; 40class KOListViewWhatsThis;
46 41
47#include <qpushbutton.h> 42#include <qpushbutton.h>
48#include <qlayout.h> 43#include <qlayout.h>
49#include <qdialog.h> 44#include <qdialog.h>
50#include <qtimer.h> 45#include <qtimer.h>
51#include <qcombobox.h> 46#include <qcombobox.h>
52#include <qspinbox.h> 47#include <qspinbox.h>
53#include <qtooltip.h> 48#include <qtooltip.h>
54#include <qcheckbox.h> 49#include <qcheckbox.h>
55#include <qhbox.h> 50#include <qhbox.h>
56#include <qlabel.h> 51#include <qlabel.h>
57#include <kiconloader.h> 52#include <kiconloader.h>
58#include "kfiledialog.h" 53#include "kfiledialog.h"
59#include "koprefs.h" 54#include "koprefs.h"
60class KOAlarmPrefs : public QDialog 55class KOAlarmPrefs : public QDialog
61{ 56{
@@ -258,58 +253,56 @@ class KOListView : public KOEventView
258 void readSettings(KConfig *config, QString setting = "KOListView Layout"); 253 void readSettings(KConfig *config, QString setting = "KOListView Layout");
259 void writeSettings(KConfig *config, QString setting = "KOListView Layout"); 254 void writeSettings(KConfig *config, QString setting = "KOListView Layout");
260 void updateList(); 255 void updateList();
261 void clearList(); 256 void clearList();
262 void setStartDate(const QDate &start); 257 void setStartDate(const QDate &start);
263 int count(); 258 int count();
264 QString getWhatsThisText(QPoint p); 259 QString getWhatsThisText(QPoint p);
265 QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents = true, bool includeTodos = true , bool includeJournals = true, bool onlyDueTodos = false ); 260 QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents = true, bool includeTodos = true , bool includeJournals = true, bool onlyDueTodos = false );
266 void showCompletedTodos(); 261 void showCompletedTodos();
267 signals: 262 signals:
268 void signalNewEvent(); 263 void signalNewEvent();
269 void beamIncidenceList(QPtrList<Incidence>); 264 void beamIncidenceList(QPtrList<Incidence>);
270 265
271 public slots: 266 public slots:
272 void hideAll(); 267 void hideAll();
273 void printList(); 268 void printList();
274 void resetFocus(); 269 void resetFocus();
275 virtual void updateView(); 270 virtual void updateView();
276 virtual void showDates(const QDate &start, const QDate &end); 271 virtual void showDates(const QDate &start, const QDate &end);
277 virtual void showEvents(QPtrList<Event> eventList); 272 virtual void showEvents(QPtrList<Event> eventList);
278 void clearSelection(); 273 void clearSelection();
279 void allSelection(); 274 void allSelection();
280 275
281 void clear(); 276 void clear();
282 void beamDone( Ir *ir );
283 void showDates(); 277 void showDates();
284 void hideDates(); 278 void hideDates();
285 void deleteAll(); 279 void deleteAll();
286 void saveToFile(); 280 void saveToFile();
287 void saveToFileVCS(); 281 void saveToFileVCS();
288 void saveDescriptionToFile(); 282 void saveDescriptionToFile();
289 void beamSelected(); 283 void beamSelected();
290 void updateConfig(); 284 void updateConfig();
291 void addCat();
292 void setCat(); 285 void setCat();
293 void setAlarm(); 286 void setAlarm();
294 void setCategories( bool removeOld ); 287 void setCategories( bool removeOld );
295 void changeEventDisplay(Event *, int); 288 void changeEventDisplay(Event *, int);
296 289
297 void defaultItemAction(QListViewItem *item); 290 void defaultItemAction(QListViewItem *item);
298 void popupMenu(QListViewItem *item,const QPoint &,int); 291 void popupMenu(QListViewItem *item,const QPoint &,int);
299 void setCalendar( int c ); 292 void setCalendar( int c );
300 void populateCalPopup(); 293 void populateCalPopup();
301 294
302 protected slots: 295 protected slots:
303 void processSelectionChange(QListViewItem *); 296 void processSelectionChange(QListViewItem *);
304 297
305 protected: 298 protected:
306 void writeToFile( bool iCal ); 299 void writeToFile( bool iCal );
307 void addEvents(QPtrList<Event> eventList); 300 void addEvents(QPtrList<Event> eventList);
308 void addIncidence(Incidence *); 301 void addIncidence(Incidence *);
309 KOListViewItem *getItemForEvent(Incidence *event); 302 KOListViewItem *getItemForEvent(Incidence *event);
310 303
311 private: 304 private:
312 bool mForceShowCompletedTodos; 305 bool mForceShowCompletedTodos;
313 QPopupMenu* mCalPopup; 306 QPopupMenu* mCalPopup;
314 KOListViewWhatsThis *mKOListViewWhatsThis; 307 KOListViewWhatsThis *mKOListViewWhatsThis;
315 KOListViewListView *mListView; 308 KOListViewListView *mListView;