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 ()
 
virtual bool eventDurationHint (TQDateTime &, TQDateTime &, bool &)
 

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)
 
virtual void setTypeAheadReceiver (TQObject *)=0
 
- Public Member Functions inherited from KOEventView
 KOEventView (Calendar *cal, TQWidget *parent=0, const char *name=0)
 
virtual ~KOEventView ()
 
virtual int maxDatesHint ()=0
 
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
 
virtual Incidence::List selectedIncidences ()=0
 
virtual DateList selectedIncidenceDates ()=0
 
virtual TQDateTime selectionStart ()
 
virtual TQDateTime selectionEnd ()
 
virtual CalPrinterBase::PrintType printType ()
 
virtual int currentDateCount ()=0
 
virtual bool isEventView ()
 
virtual bool supportsDateNavigation () const
 
- Public Member Functions inherited from KCal::Calendar::Observer
virtual void calendarModified (bool, Calendar *)
 
virtual void calendarIncidenceAdded (Incidence *)
 
virtual void calendarIncidenceChanged (Incidence *)
 
virtual void calendarIncidenceDeleted (Incidence *)
 

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.

Constructor & Destructor Documentation

◆ KOAgendaView()

KOAgendaView::KOAgendaView ( Calendar cal,
CalendarView calendarView,
TQWidget *  parent = 0,
const char *  name = 0,
bool  isSideBySide = false 
)

Definition at line 249 of file koagendaview.cpp.

◆ ~KOAgendaView()

KOAgendaView::~KOAgendaView ( )
virtual

Definition at line 405 of file koagendaview.cpp.

Member Function Documentation

◆ agenda()

KOAgenda * KOAgendaView::agenda ( ) const
inline

Definition at line 153 of file koagendaview.h.

◆ calendarIncidenceAdded()

void KOAgendaView::calendarIncidenceAdded ( Incidence incidence)
virtual

Reimplemented from KCal::Calendar::Observer.

Definition at line 1780 of file koagendaview.cpp.

◆ calendarIncidenceChanged()

void KOAgendaView::calendarIncidenceChanged ( Incidence incidence)
virtual

Reimplemented from KCal::Calendar::Observer.

Definition at line 1786 of file koagendaview.cpp.

◆ calendarIncidenceDeleted()

void KOAgendaView::calendarIncidenceDeleted ( Incidence incidence)
virtual

Reimplemented from KCal::Calendar::Observer.

Definition at line 1792 of file koagendaview.cpp.

◆ changeIncidenceDisplay

void KOAgendaView::changeIncidenceDisplay ( Incidence incidence,
int  mode 
)
slot

Definition at line 1308 of file koagendaview.cpp.

◆ changeIncidenceDisplayAdded

void KOAgendaView::changeIncidenceDisplayAdded ( Incidence incidence)
slot

Definition at line 1296 of file koagendaview.cpp.

◆ clearSelection

void KOAgendaView::clearSelection ( )
slot

Definition at line 1662 of file koagendaview.cpp.

◆ clearTimeSpanSelection

void KOAgendaView::clearTimeSpanSelection ( )
slot

Definition at line 1735 of file koagendaview.cpp.

◆ clearView()

void KOAgendaView::clearView ( )

Remove all events from view.

Definition at line 1513 of file koagendaview.cpp.

◆ connectAgenda()

void KOAgendaView::connectAgenda ( KOAgenda *  agenda,
TQPopupMenu *  popup,
KOAgenda *  otherAgenda 
)
protected

Definition at line 413 of file koagendaview.cpp.

◆ createDayLabels()

void KOAgendaView::createDayLabels ( bool  force)
protected

Create labels for the selected dates.

Definition at line 595 of file koagendaview.cpp.

◆ currentDateCount()

int KOAgendaView::currentDateCount ( )
virtual

Returns number of currently shown dates.

Implements KOrg::BaseView.

Definition at line 695 of file koagendaview.cpp.

◆ dayLabels()

TQFrame * KOAgendaView::dayLabels ( ) const
inline

Definition at line 155 of file koagendaview.h.

◆ deleteSelectedDateTime()

void KOAgendaView::deleteSelectedDateTime ( )

make selected start/end invalid

Definition at line 1693 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 1138 of file koagendaview.cpp.

◆ enableAgendaUpdate

void KOAgendaView::enableAgendaUpdate ( bool  enable)
slot

Definition at line 684 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 728 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 1355 of file koagendaview.cpp.

◆ fillAgenda() [2/2]

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

Fill agenda beginning with date startDate.

Definition at line 1350 of file koagendaview.cpp.

◆ finishTypeAhead

void KOAgendaView::finishTypeAhead ( )
slot

Definition at line 1706 of file koagendaview.cpp.

◆ insertIncidence

void KOAgendaView::insertIncidence ( Incidence incidence,
const TQDate &  curDate 
)
slot

Definition at line 1175 of file koagendaview.cpp.

◆ maxDatesHint()

int KOAgendaView::maxDatesHint ( )
virtual

Returns maximum number of days supported by the koagendaview.

Implements KOEventView.

Definition at line 689 of file koagendaview.cpp.

◆ newTimeSpanSelected

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

Updates data for selected timespan.

Definition at line 1674 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 1668 of file koagendaview.cpp.

◆ printType()

CalPrinterBase::PrintType KOAgendaView::printType ( )
virtual

Reimplemented from KOrg::BaseView.

Definition at line 1520 of file koagendaview.cpp.

◆ readSettings [1/2]

void KOAgendaView::readSettings ( )
slot

Definition at line 1592 of file koagendaview.cpp.

◆ readSettings [2/2]

void KOAgendaView::readSettings ( TDEConfig *  config)
slot

Definition at line 1597 of file koagendaview.cpp.

◆ removeIncidence()

void KOAgendaView::removeIncidence ( Incidence incidence)
protected

Definition at line 1712 of file koagendaview.cpp.

◆ resizeEvent()

void KOAgendaView::resizeEvent ( TQResizeEvent *  resizeEvent)
protectedvirtual

Definition at line 836 of file koagendaview.cpp.

◆ resourcesChanged

void KOAgendaView::resourcesChanged ( )
slot

Definition at line 1775 of file koagendaview.cpp.

◆ selectedIncidenceDates()

DateList KOAgendaView::selectedIncidenceDates ( )
virtual

returns the currently selected events

Implements KOrg::BaseView.

Definition at line 714 of file koagendaview.cpp.

◆ selectedIncidences()

Incidence::List KOAgendaView::selectedIncidences ( )
virtual

returns the currently selected events

Implements KOrg::BaseView.

Definition at line 700 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 753 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.

◆ setContentsPos

void KOAgendaView::setContentsPos ( int  y)
slot

Definition at line 1646 of file koagendaview.cpp.

◆ setExpandedButton

void KOAgendaView::setExpandedButton ( bool  expanded)
slot

Definition at line 1651 of file koagendaview.cpp.

◆ setHolidayMasks()

void KOAgendaView::setHolidayMasks ( )
protected

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

Definition at line 1625 of file koagendaview.cpp.

◆ setIncidenceChanger

void KOAgendaView::setIncidenceChanger ( KOrg::IncidenceChangerBase *  changer)
slot

Definition at line 1728 of file koagendaview.cpp.

◆ setTypeAheadReceiver()

void KOAgendaView::setTypeAheadReceiver ( TQObject *  o)
virtual

Implements KOrg::AgendaView.

Definition at line 1700 of file koagendaview.cpp.

◆ showDates

void KOAgendaView::showDates ( const TQDate &  start,
const TQDate &  end 
)
virtualslot

Definition at line 1148 of file koagendaview.cpp.

◆ showIncidences

void KOAgendaView::showIncidences ( const Incidence::List &  incidenceList,
const TQDate &  date 
)
virtualslot

Definition at line 1170 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 1544 of file koagendaview.cpp.

◆ splitter()

TQSplitter * KOAgendaView::splitter ( ) const
inline

Definition at line 154 of file koagendaview.h.

◆ startDrag

void KOAgendaView::startDrag ( Incidence incidence)
slot

Definition at line 1581 of file koagendaview.cpp.

◆ updateConfig

void KOAgendaView::updateConfig ( )
virtualslot

Definition at line 778 of file koagendaview.cpp.

◆ updateDayLabelSizes

void KOAgendaView::updateDayLabelSizes ( )
protectedslot

Definition at line 818 of file koagendaview.cpp.

◆ updateEventDates

void KOAgendaView::updateEventDates ( KOAgendaItem *  item)
protectedslot

Update event belonging to agenda item.

Definition at line 842 of file koagendaview.cpp.

◆ updateEventIndicatorBottom

void KOAgendaView::updateEventIndicatorBottom ( int  newY)
protectedslot

Definition at line 1535 of file koagendaview.cpp.

◆ updateEventIndicators()

void KOAgendaView::updateEventIndicators ( )
protected

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

Definition at line 1718 of file koagendaview.cpp.

◆ updateEventIndicatorTop

void KOAgendaView::updateEventIndicatorTop ( int  newY)
protectedslot

Definition at line 1526 of file koagendaview.cpp.

◆ updateTimeBarWidth()

void KOAgendaView::updateTimeBarWidth ( )
protected

Definition at line 807 of file koagendaview.cpp.

◆ updateView

void KOAgendaView::updateView ( )
virtualslot

Definition at line 767 of file koagendaview.cpp.

◆ writeSettings

void KOAgendaView::writeSettings ( TDEConfig *  config)
slot

Definition at line 1613 of file koagendaview.cpp.

◆ zoomInHorizontally

void KOAgendaView::zoomInHorizontally ( const TQDate &  date = TQDate())
slot

Definition at line 498 of file koagendaview.cpp.

◆ zoomInVertically

void KOAgendaView::zoomInVertically ( )
slot

Definition at line 466 of file koagendaview.cpp.

◆ zoomOutHorizontally

void KOAgendaView::zoomOutHorizontally ( const TQDate &  date = TQDate())
slot

Definition at line 530 of file koagendaview.cpp.

◆ zoomOutVertically

void KOAgendaView::zoomOutVertically ( )
slot

Definition at line 480 of file koagendaview.cpp.

◆ zoomView

void KOAgendaView::zoomView ( const int  delta,
const TQPoint &  pos,
const TQt::Orientation  orient = TQt::Horizontal 
)
slot

Definition at line 559 of file koagendaview.cpp.


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