Home · Modules · Classes · Namespaces · Functions

QxtScheduleView Class Reference
[QxtGui module]

The QxtScheduleView class provides an iCal like view to plan events More...

    #include <QxtScheduleView>

Inherits QAbstractScrollArea.

Public Types

Public Functions

Public Slots

Signals

Protected Functions

Protected Slots

Additional Inherited Members


Detailed Description

The QxtScheduleView class provides an iCal like view to plan events

QxtScheduleView is a item based View,inspired by iCal, that makes it possible to visualize event planning.

It's time based and can show the events in different modes: In addition you can adjust how much time every cell represents in the view. The default value is 900 seconds or 15 minutes and DayMode.

QxtScheduleView


Member Type Documentation

enum QxtScheduleView::ViewMode


Member Function Documentation

QxtScheduleView::QxtScheduleView ( QWidget * parent = 0 )

void QxtScheduleView::adjustRangeToViewMode ( QDateTime * startTime, QDateTime * endTime ) const   [virtual protected]

reimplement this to support custom view modes This function has to adjust the given start and end time to the current view mode: For example, the DayMode always adjust to time 0:00:00am for startTime and 11:59:59pm for endTime

int QxtScheduleView::cols () const

returns the current column count of the view

void QxtScheduleView::contextMenuRequested ( QModelIndex index )   [signal]

QModelIndex QxtScheduleView::currentIndex ()

returns the current selected index

int QxtScheduleView::currentZoomDepth ( const Qxt::Timeunit unit = Qxt::Second )

returns the current zoom depth

See also setCurrentZoomDepth().

void QxtScheduleView::dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight )   [slot]

QxtScheduleItemDelegate * QxtScheduleView::delegate () const

\esc returns the current used delegate

void QxtScheduleView::handleItemConcurrency ( const QModelIndex & index )

triggers the view to relayout the items that are concurrent to index

QHeaderView * QxtScheduleView::horizontalHeader () const

QModelIndex QxtScheduleView::indexAt ( const QPoint & pt )

void QxtScheduleView::indexDoubleClicked ( QModelIndex index )   [signal]

void QxtScheduleView::indexSelected ( QModelIndex index )   [signal]

void QxtScheduleView::itemMoved ( int rows, int cols, QModelIndex index )   [signal]

QPoint QxtScheduleView::mapFromViewport ( const QPoint & point ) const

QPoint QxtScheduleView::mapToViewport ( const QPoint & point ) const

QAbstractItemModel * QxtScheduleView::model () const

See also setModel().

void QxtScheduleView::mouseDoubleClickEvent ( QMouseEvent * e )   [virtual protected]

void QxtScheduleView::mouseMoveEvent ( QMouseEvent * e )   [virtual protected]

void QxtScheduleView::mousePressEvent ( QMouseEvent * e )   [virtual protected]

void QxtScheduleView::mouseReleaseEvent ( QMouseEvent * e )   [virtual protected]

void QxtScheduleView::newZoomDepth ( const int newDepthInSeconds )   [signal]

void QxtScheduleView::paintEvent ( QPaintEvent * e )   [virtual protected]

void QxtScheduleView::raiseItem ( const QModelIndex & index )

raises the item belonging to index

void QxtScheduleView::resizeEvent ( QResizeEvent * e )   [virtual protected]

int QxtScheduleView::rows () const

returns the current row count of the view

void QxtScheduleView::rowsAboutToBeInserted ( const QModelIndex & parent, int start, int end )   [virtual protected slot]

void QxtScheduleView::rowsAboutToBeRemoved ( const QModelIndex & parent, int start, int end )   [virtual protected slot]

void QxtScheduleView::rowsInserted ( const QModelIndex & parent, int start, int end )   [virtual protected slot]

void QxtScheduleView::rowsRemoved ( const QModelIndex & parent, int start, int end )   [virtual protected slot]

void QxtScheduleView::scrollContentsBy ( int dx, int dy )   [virtual protected]

void QxtScheduleView::setCurrentZoomDepth ( const int depth, const Qxt::Timeunit unit = Qxt::Second )

changes the current zoom depth The current zoom depth in QxtScheduleView defines how many time one cell holds in the view. If the new depth does not fit in the view the next possible value is used. If no possible value can be found nothing changes. Normally this is used only to initialize the view, later you want to use zoomIn and zoomOut

int depth Qxt::Timeunit unit

See also currentZoomDepth(), zoomIn(), zoomOut(), and setCurrentZoomDepth().

void QxtScheduleView::setDateRange ( const QDate & fromDate, const QDate & toDate )

sets the timerange This function will set a Timerange from fromDate 00:00am to toDate 23:59pm

void QxtScheduleView::setItemDelegate ( QxtScheduleItemDelegate * delegate )

*Sets the item delegate for this view and its model to delegate. This is useful if you want complete control over the editing and display of items. *Any existing delegate will be removed, but not deleted. QxtScheduleView does not take ownership of delegate. *Passing a 0 pointer will restore the view to use the default delegate. *\Warning You should not share the same instance of a delegate between views. Doing so can cause incorrect or unintuitive behavior.

void QxtScheduleView::setModel ( QAbstractItemModel * model )

See also model().

void QxtScheduleView::setTimeRange ( const QDateTime & fromDateTime, const QDateTime & toDateTime )

sets the timerange This function will set the passed timerange, but may adjust it to the current viewmode. e.g You cannot start at 1:30am in a DayMode, this gets adjusted to 00:00am

void QxtScheduleView::setViewMode ( const QxtScheduleView::ViewMode mode )

changes the current ViewMode The QxtScheduleView supports some different viewmodes. A viewmode defines how much time a column holds. It is also possible to define custom viewmodes. To do that you have to set the currentView mode to Custom and reimplement timePerColumn

QxtScheduleView::ViewMode mode the new ViewMode

See also timePerColumn() and viewMode().

void QxtScheduleView::setZoomStepWidth ( const int zoomWidth, const Qxt::Timeunit unit = Qxt::Second )

changes the current Zoom step width Changes the current Zoom step width. Zooming in QxtScheduleView means to change the amount of time one cell holds. For example 5 Minutes. The zoom step width defines how many time is added / removed from the cell when zooming the view.

int zoomWidth the new zoom step width Qxt::Timeunit unit the unit of the new step width (Minutes , Seconds , Hours)

See also zoomIn(), zoomOut(), and setCurrentZoomDepth().

int QxtScheduleView::timePerColumn () const   [virtual protected]

reimplement this to support custom view modes Returns the time per column in seconds

void QxtScheduleView::updateGeometries ()   [slot]

QHeaderView * QxtScheduleView::verticalHeader () const

returns the vertial header \note can be NULL if the view has not called init() already (FIXME)

QxtScheduleView::ViewMode QxtScheduleView::viewMode () const

returns the current ViewMode

Returns QxtScheduleView::ViewMode

See also setViewMode().

void QxtScheduleView::viewModeChanged ( const int newViewMode )   [signal]

void QxtScheduleView::wheelEvent ( QWheelEvent * e )   [virtual protected]

void QxtScheduleView::zoomIn ()   [slot]

zooms one step in

See also zoomOut(), setCurrentZoomDepth(), and setZoomStepWidth().

void QxtScheduleView::zoomOut ()   [slot]

zooms one step out

See also zoomIn(), setCurrentZoomDepth(), and setZoomStepWidth().


Copyright © 2007-2011 Qxt Foundation
Qxt 0.6.2