diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-01 00:37:02 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-01 00:37:02 +0000 |
commit | cc29364f06178f8f6b457384f2ec37a042bd9d43 (patch) | |
tree | 7c77a3184c698bbf9d98cef09fb1ba8124daceba /korganizer/koagenda.h | |
parent | 4f6c584bacc8c3c694228f36ada3de77a76614a6 (diff) | |
download | tdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.tar.gz tdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.zip |
* Massive set of changes to bring in all fixes and enhancements from the Enterprise PIM branch
* Ensured that the Trinity changes were applied on top of those enhancements, and any redundancy removed
* Added journal read support to the CalDAV resource
* Fixed CalDAV resource to use events URL for tasks and journals when separate URL checkbox unchecked
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1170461 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/koagenda.h')
-rw-r--r-- | korganizer/koagenda.h | 52 |
1 files changed, 29 insertions, 23 deletions
diff --git a/korganizer/koagenda.h b/korganizer/koagenda.h index a6d06d006..223ea1aa3 100644 --- a/korganizer/koagenda.h +++ b/korganizer/koagenda.h @@ -29,6 +29,7 @@ #include <tqguardedptr.h> #include <libkcal/incidencebase.h> +#include "calendarview.h" class TQPopupMenu; class TQTime; @@ -37,44 +38,46 @@ class KConfig; class KOAgenda; class KOAgendaItem; -using namespace KOrg; namespace KOrg { -class IncidenceChangerBase; + class IncidenceChangerBase; } +using namespace KOrg; -using namespace KCal; namespace KCal { -class Event; -class Todo; -class Calendar; + class Event; + class Todo; + class Calendar; } +using namespace KCal; -class MarcusBains : public TQFrame { - Q_OBJECT +class MarcusBains : public TQFrame +{ + Q_OBJECT public: MarcusBains( KOAgenda *agenda = 0, const char *name = 0 ); + void updateLocationRecalc( bool recalculate = false ); virtual ~MarcusBains(); public slots: - void updateLocation( bool recalculate = false ); + void updateLocation(); private: int todayColumn(); TQTimer *minutes; TQLabel *mTimeBox; KOAgenda *agenda; - TQTime oldTime; - int oldToday; + TQTime mOldTime; + int mOldToday; }; - -class KOAgenda : public QScrollView +class KOAgenda : public TQScrollView { - Q_OBJECT + Q_OBJECT public: - KOAgenda ( int columns, int rows, int columnSize, TQWidget *parent=0, - const char *name = 0, WFlags f = 0 ); - KOAgenda ( int columns, TQWidget *parent = 0, + KOAgenda ( int columns, int rows, int columnSize, CalendarView *calendarView, + TQWidget *parent=0, const char *name = 0, WFlags f = 0 ); + + KOAgenda ( int columns, CalendarView *calendarView, TQWidget *parent = 0, const char *name = 0, WFlags f = 0 ); virtual ~KOAgenda(); @@ -103,7 +106,7 @@ class KOAgenda : public QScrollView void setStartTime( const TQTime &startHour ); KOAgendaItem *insertItem ( Incidence *incidence, const TQDate &qd, int X, int YTop, - int YBottom ); + int YBottom, int itemPos, int itemCount ); KOAgendaItem *insertAllDayItem ( Incidence *event, const TQDate &qd, int XBegin, int XEnd ); void insertMultiItem ( Event *event, const TQDate &qd, int XBegin, int XEnd, @@ -171,18 +174,18 @@ class KOAgenda : public QScrollView void showAgendaItem( KOAgendaItem *item ); signals: - void newEventSignal(); + void newEventSignal( ResourceCalendar *res, const TQString &subResource ); void newTimeSpanSignal( const TQPoint &, const TQPoint & ); void newStartSelectSignal(); - void showIncidenceSignal( Incidence * ); - void editIncidenceSignal( Incidence * ); + void showIncidenceSignal( Incidence *, const TQDate & ); + void editIncidenceSignal( Incidence *, const TQDate & ); void deleteIncidenceSignal( Incidence * ); - void showIncidencePopupSignal( Incidence *, const TQDate &); + void showIncidencePopupSignal( Calendar *, Incidence *, const TQDate &); void showNewEventPopupSignal(); void itemModified( KOAgendaItem *item ); - void incidenceSelected( Incidence * ); + void incidenceSelected( Incidence *, const TQDate & ); void startMultiModify( const TQString & ); void endMultiModify(); @@ -343,6 +346,7 @@ class KOAgenda : public QScrollView // The KOAgendaItem, which is being moved/resized TQGuardedPtr<KOAgendaItem> mActionItem; + QPair<ResourceCalendar *, TQString> mResPair; // Currently selected item TQGuardedPtr<KOAgendaItem> mSelectedItem; @@ -373,6 +377,8 @@ class KOAgenda : public QScrollView bool mReturnPressed; KOrg::IncidenceChangerBase *mChanger; + + CalendarView *mCalendarView; }; #endif // KOAGENDA_H |