33#include <libkcal/incidence.h>
35#include "koeventview.h"
36#include "customlistviewitem.h"
40typedef CustomListViewItem<Incidence *> KOListViewItem;
44class KOListViewToolTip :
public TQToolTip
47 KOListViewToolTip ( TQWidget* parent,
Calendar *calendar, TDEListView* lv );
50 void maybeTip(
const TQPoint &pos );
54 TDEListView* eventlist;
76 bool nonInteractive =
false );
84 void showDates(
bool show );
89 void readSettings(TDEConfig *config);
90 void writeSettings(TDEConfig *config);
93 TQSize sizeHint()
const;
96 virtual void updateView();
97 virtual void showDates(
const TQDate &start,
const TQDate &end );
98 virtual void showIncidences(
const Incidence::List &incidenceList,
const TQDate &date );
100 void clearSelection();
105 void changeIncidenceDisplay(
Incidence *,
int);
107 void defaultItemAction(TQListViewItem *item);
108 void popupMenu(TQListViewItem *item,
const TQPoint &,
int);
111 void processSelectionChange();
114 void addIncidences(
const Incidence::List &,
const TQDate &date);
115 void addIncidence(
Incidence *,
const TQDate &date);
116 KOListViewItem *getItemForIncidence(
Incidence *incidence);
119 class ListItemVisitor;
120 TDEListView *mListView;
121 KOEventPopupMenu *mPopupMenu;
122 KOListViewItem *mActiveItem;
123 TQDict<Incidence> mUidDict;
124 TQMap<TQString, TQDate>mDateList;
125 DateList mSelectedDates;
128 bool mIsNonInteractive;
KOEventView is the abstract base class from which all other calendar views for event data are derived...
This class provides a multi-column list view of events.
virtual int currentDateCount()
Return number of currently shown dates.
virtual DateList selectedIncidenceDates()
virtual int maxDatesHint()
provides a hint back to the caller on the maximum number of dates that the view supports.
virtual Incidence::List selectedIncidences()
virtual Calendar * calendar()
Return calendar object of this view.