korganizer

#include <koagendaview.h>

Inheritance diagram for KOAgendaView:
KOrg::AgendaView KCal::Calendar::Observer KOEventView KOrg::BaseView

Public Slots

virtual void updateView ()
 
virtual void updateConfig ()
 
virtual void showDates (const TQDate &start, const TQDate &end)
 
virtual void showIncidences (const Incidence::List &incidenceList, const TQDate &date)
 
void insertIncidence (Incidence *incidence, const TQDate &curDate)
 
void changeIncidenceDisplayAdded (Incidence *incidence)
 
void changeIncidenceDisplay (Incidence *incidence, int mode)
 
void clearSelection ()
 
void startDrag (Incidence *)
 
void readSettings ()
 
void readSettings (TDEConfig *)
 
void writeSettings (TDEConfig *)
 
void setContentsPos (int y)
 
void setExpandedButton (bool expanded)
 
void finishTypeAhead ()
 
void slotTodoDropped (Todo *, const TQPoint &, bool)
 
void enableAgendaUpdate (bool enable)
 
void setIncidenceChanger (KOrg::IncidenceChangerBase *changer)
 
void zoomInHorizontally (const TQDate &date=TQDate())
 
void zoomOutHorizontally (const TQDate &date=TQDate())
 
void zoomInVertically ()
 
void zoomOutVertically ()
 
void zoomView (const int delta, const TQPoint &pos, const TQt::Orientation orient=TQt::Horizontal)
 
void clearTimeSpanSelection ()
 
void resourcesChanged ()
 
- Public Slots inherited from KOrg::AgendaView
virtual void finishTypeAhead ()=0
 
virtual void resourcesChanged ()=0
 
- Public Slots inherited from KOEventView
void defaultAction (Incidence *)
 
- Public Slots inherited from KOrg::BaseView
virtual void showDates (const TQDate &start, const TQDate &end)=0
 
virtual void showIncidences (const Incidence::List &incidenceList, const TQDate &date)=0
 
virtual void updateView ()=0
 
virtual void dayPassed (const TQDate &)
 
virtual void setIncidenceChanger (IncidenceChangerBase *changer)
 
virtual void flushView ()
 
virtual void changeIncidenceDisplay (Incidence *, int)=0
 
virtual void updateConfig ()
 
virtual void clearSelection ()
 

Signals

void toggleExpand ()
 
void zoomViewHorizontally (const TQDate &, int count)
 
void timeSpanSelectionChanged ()
 
- Signals inherited from KOEventView
void datesSelected (const DateList)
 
void shiftedEvent (const TQDate &olddate, const TQDate &newdate)
 
- Signals inherited from KOrg::BaseView
void incidenceSelected (Incidence *, const TQDate &)
 
void showIncidenceSignal (Incidence *, const TQDate &)
 
void editIncidenceSignal (Incidence *, const TQDate &)
 
void deleteIncidenceSignal (Incidence *)
 
void cutIncidenceSignal (Incidence *)
 
void copyIncidenceSignal (Incidence *)
 
void pasteIncidenceSignal ()
 
void toggleAlarmSignal (Incidence *)
 
void dissociateOccurrenceSignal (Incidence *, const TQDate &)
 
void dissociateFutureOccurrenceSignal (Incidence *, const TQDate &)
 
void startMultiModify (const TQString &)
 
void endMultiModify ()
 
void newEventSignal (ResourceCalendar *res, const TQString &subResource)
 
void newEventSignal (ResourceCalendar *res, const TQString &subResource, const TQDate &)
 
void newEventSignal (ResourceCalendar *res, const TQString &subResource, const TQDateTime &)
 
void newEventSignal (ResourceCalendar *res, const TQString &subResource, const TQDateTime &, const TQDateTime &)
 
void newTodoSignal (ResourceCalendar *res, const TQString &subResource, const TQDate &)
 
void newSubTodoSignal (Todo *)
 
void newJournalSignal (ResourceCalendar *res, const TQString &subResource, const TQDate &)
 

Public Member Functions

 KOAgendaView (Calendar *cal, CalendarView *calendarView, TQWidget *parent=0, const char *name=0, bool isSideBySide=false)
 
virtual int maxDatesHint ()
 
virtual int currentDateCount ()
 
virtual Incidence::List selectedIncidences ()
 
virtual DateList selectedIncidenceDates ()
 
virtual bool eventDurationHint (TQDateTime &startDt, TQDateTime &endDt, bool &allDay)
 
void clearView ()
 
KOrg::CalPrinterBase::PrintType printType ()
 
TQDateTime selectionStart ()
 
TQDateTime selectionEnd ()
 
bool selectedIsAllDay ()
 
void deleteSelectedDateTime ()
 
bool selectedIsSingleCell ()
 
void setTypeAheadReceiver (TQObject *)
 
KOAgenda * agenda () const
 
TQSplitter * splitter () const
 
TQFrame * dayLabels () const
 
void calendarIncidenceAdded (Incidence *incidence)
 
void calendarIncidenceChanged (Incidence *incidence)
 
void calendarIncidenceDeleted (Incidence *incidence)
 
- Public Member Functions inherited from KOrg::AgendaView
 AgendaView (Calendar *cal, TQWidget *parent=0, const char *name=0)
 
- Public Member Functions inherited from KOEventView
 KOEventView (Calendar *cal, TQWidget *parent=0, const char *name=0)
 
virtual ~KOEventView ()
 
KOEventPopupMenu * eventPopup ()
 
TQPopupMenu * newEventPopup ()
 
bool isEventView ()
 
bool supportsDateNavigation () const
 
- Public Member Functions inherited from KOrg::BaseView
 BaseView (Calendar *cal, TQWidget *parent=0, const char *name=0)
 
virtual ~BaseView ()
 
void setReadOnly (bool readonly)
 
bool readOnly ()
 
virtual void setCalendar (Calendar *cal)
 
virtual Calendarcalendar ()
 
virtual void setResource (ResourceCalendar *res, const TQString &subResource)
 
ResourceCalendarresourceCalendar ()
 
TQString subResourceCalendar () const
 
- Public Member Functions inherited from KCal::Calendar::Observer
virtual void calendarModified (bool, Calendar *)
 

Protected Slots

void updateEventDates (KOAgendaItem *item)
 
void doUpdateItem ()
 
void updateEventIndicatorTop (int newY)
 
void updateEventIndicatorBottom (int newY)
 
void newTimeSpanSelected (const TQPoint &start, const TQPoint &end)
 
void newTimeSpanSelectedAllDay (const TQPoint &start, const TQPoint &end)
 
void updateDayLabelSizes ()
 
- Protected Slots inherited from KOEventView
void popupShow ()
 
void popupEdit ()
 
void popupDelete ()
 
void popupCut ()
 
void popupCopy ()
 
virtual void showNewEventPopup ()
 

Protected Member Functions

void fillAgenda (const TQDate &startDate)
 
void fillAgenda ()
 
void connectAgenda (KOAgenda *agenda, TQPopupMenu *popup, KOAgenda *otherAgenda)
 
void createDayLabels (bool force)
 
void setHolidayMasks ()
 
void removeIncidence (Incidence *)
 
void updateEventIndicators ()
 
void updateTimeBarWidth ()
 
virtual void resizeEvent (TQResizeEvent *resizeEvent)
 

Additional Inherited Members

- Protected Attributes inherited from KOEventView
IncidencemCurrentIncidence
 
- Protected Attributes inherited from KOrg::BaseView
IncidenceChangerBase * mChanger
 

Detailed Description

KOAgendaView is the agenda-like view used to display events in a single one or multi-day view.

Definition at line 108 of file koagendaview.h.

Member Function Documentation

◆ clearView()

void KOAgendaView::clearView ( )

Remove all events from view.

Definition at line 1517 of file koagendaview.cpp.

◆ createDayLabels()

void KOAgendaView::createDayLabels ( bool  force)
protected

Create labels for the selected dates.

Definition at line 599 of file koagendaview.cpp.

◆ currentDateCount()

int KOAgendaView::currentDateCount ( )
virtual

Returns number of currently shown dates.

Implements KOrg::BaseView.

Definition at line 699 of file koagendaview.cpp.

◆ deleteSelectedDateTime()

void KOAgendaView::deleteSelectedDateTime ( )

make selected start/end invalid

Definition at line 1697 of file koagendaview.cpp.

◆ doUpdateItem

void KOAgendaView::doUpdateItem ( )
protectedslot

update just the display of the given incidence, called by a single-shot timer

Definition at line 1142 of file koagendaview.cpp.

◆ eventDurationHint()

bool KOAgendaView::eventDurationHint ( TQDateTime &  startDt,
TQDateTime &  endDt,
bool &  allDay 
)
virtual

return the default start/end date/time for new events

Reimplemented from KOrg::BaseView.

Definition at line 732 of file koagendaview.cpp.

◆ fillAgenda() [1/2]

void KOAgendaView::fillAgenda ( )
protected

Fill agenda using the current set value for the start date.

Definition at line 1359 of file koagendaview.cpp.

◆ fillAgenda() [2/2]

void KOAgendaView::fillAgenda ( const TQDate &  startDate)
protected

Fill agenda beginning with date startDate.

Definition at line 1354 of file koagendaview.cpp.

◆ maxDatesHint()

int KOAgendaView::maxDatesHint ( )
virtual

Returns maximum number of days supported by the koagendaview.

Implements KOEventView.

Definition at line 693 of file koagendaview.cpp.

◆ newTimeSpanSelected

void KOAgendaView::newTimeSpanSelected ( const TQPoint &  start,
const TQPoint &  end 
)
protectedslot

Updates data for selected timespan.

Definition at line 1678 of file koagendaview.cpp.

◆ newTimeSpanSelectedAllDay

void KOAgendaView::newTimeSpanSelectedAllDay ( const TQPoint &  start,
const TQPoint &  end 
)
protectedslot

Updates data for selected timespan for all day event.

Definition at line 1672 of file koagendaview.cpp.

◆ selectedIncidenceDates()

DateList KOAgendaView::selectedIncidenceDates ( )
virtual

returns the currently selected events

Implements KOrg::BaseView.

Definition at line 718 of file koagendaview.cpp.

◆ selectedIncidences()

Incidence::List KOAgendaView::selectedIncidences ( )
virtual

returns the currently selected events

Implements KOrg::BaseView.

Definition at line 704 of file koagendaview.cpp.

◆ selectedIsAllDay()

bool KOAgendaView::selectedIsAllDay ( )
inline

returns true if selection is for whole day

Definition at line 145 of file koagendaview.h.

◆ selectedIsSingleCell()

bool KOAgendaView::selectedIsSingleCell ( )

returns if only a single cell is selected, or a range of cells

Definition at line 757 of file koagendaview.cpp.

◆ selectionEnd()

TQDateTime KOAgendaView::selectionEnd ( )
inlinevirtual

end-datetime of selection

Reimplemented from KOrg::BaseView.

Definition at line 143 of file koagendaview.h.

◆ selectionStart()

TQDateTime KOAgendaView::selectionStart ( )
inlinevirtual

start-datetime of selection

Reimplemented from KOrg::BaseView.

Definition at line 141 of file koagendaview.h.

◆ setHolidayMasks()

void KOAgendaView::setHolidayMasks ( )
protected

Set the masks on the agenda widgets indicating, which days are holidays.

Definition at line 1629 of file koagendaview.cpp.

◆ slotTodoDropped

void KOAgendaView::slotTodoDropped ( Todo todo,
const TQPoint &  gpos,
bool  allDay 
)
slot

reschedule the todo to the given x- and y- coordinates.

Third parameter determines all-day (no time specified)

Definition at line 1548 of file koagendaview.cpp.

◆ updateEventDates

void KOAgendaView::updateEventDates ( KOAgendaItem *  item)
protectedslot

Update event belonging to agenda item.

Definition at line 846 of file koagendaview.cpp.

◆ updateEventIndicators()

void KOAgendaView::updateEventIndicators ( )
protected

Updates the event indicators after a certain incidence was modified or removed.

Definition at line 1722 of file koagendaview.cpp.


The documentation for this class was generated from the following files: