diff -r f979ecb2b13e -r c198609911f9 calendarui/inc/calencommon.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarui/inc/calencommon.h Fri Apr 16 14:57:40 2010 +0300 @@ -0,0 +1,105 @@ +/* +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Header file for Calendar application's common includes. + * +*/ + + +#ifndef CALENCOMMON_H +#define CALENCOMMON_H + +#define CALEN_DAYVIEW_XML_FILE ":/xml/calendayview.docml" +#define CALEN_DAYVIEW "dayView" +#define CALEN_DAYVIEW_WIDGET "dayViewWidget" +#define CALEN_DAYVIEW_LISTWIDGET "eventsList" +#define CALEN_DAYVIEW_HEADING "headingWidget" +#define CALEN_DAYVIEW_MENU_NEW_EVENT "newEventAction" +#define CALEN_DAYVIEW_MENU_GO_TO_TODAY "todayAction" +#define CALEN_DAYVIEW_MENU_GO_TO_DATE "goToDateAction" +#define CALEN_DAYVIEW_MENU_DELETE "deleteAction" +#define CALEN_DAYVIEW_MENU_SETTINGS "settingsAction" +#define CALEN_PORTRAIT "portrait" +#define CALEN_LANDSCAPE "landscape" +#define CALEN_MONTHVIEW_XML_FILE ":/xml/calenmonthview.docml" +#define CALEN_MONTHVIEW "monthView" +#define CALEN_MONTH_TITLE "monthTitle" +#define CALEN_DAYNAMES_WIDGET "dayNamesWidget" +#define CALEN_MONTHGRID "monthGrid" +#define CALEN_PREVPREVIEWPARENT "prevPaneWidget" +#define CALEN_CURRPREVIEWPARENT "currPaneWidget" +#define CALEN_NEXTPREVIEWPARENT "nextPaneWidget" +#define CALEN_PREVPREVIEWPANE "prevPreviewPane" +#define CALEN_CURRPREVIEWPANE "currPreviewPane" +#define CALEN_NEXTPREVIEWPANE "nextPreviewPane" +#define CALEN_NOENTRIES_LABEL_PREV "NoEntriesLabelPrev" +#define CALEN_NOENTRIES_LABEL_CURR "NoEntriesLabelCurr" +#define CALEN_NOENTRIES_LABEL_NEXT "NoEntriesLabelNext" +#define CALEN_PREVIEWPANE_TITLE "previewPaneTitle" +#define CALEN_PREVIEWPANE_LISTWIDGET "listWidget" +#define CALEN_WEEKNUMBERS_WIDGET "weekNumbersWidget" +#define CALEN_MONTHGRID_WEEKNUMBERS_WIDGET "monthGridWeekNumWidget" +#define CALEN_MONTVIEW_DELETE_SUBMENU "deleteSubMenu" +#define CALEN_MONTVIEW_MENU_NEWEVENT "NewEventAction" +#define CALEN_MONTVIEW_MENU_GOTOTODAY "goToTodayAction" +#define CALEN_MONTVIEW_MENU_GOTODATE "goToDateAction" +#define CALEN_MONTVIEW_MENU_BEFOREDATE "beforeDateAction" +#define CALEN_MONTVIEW_MENU_ALLENTRIES "allEntriesAction" +#define CALEN_MONTVIEW_MENU_SETTINGS "settingsAction" +#define CALEN_MONTVIEW_FIRST_DAY_LABEL "firstDayLabel" +#define CALEN_MONTVIEW_SECOND_DAY_LABEL "secondDayLabel" +#define CALEN_MONTVIEW_THIRD_DAY_LABEL "thirdDayLabel" +#define CALEN_MONTVIEW_FOURTH_DAY_LABEL "fourthDayLabel" +#define CALEN_MONTVIEW_FIFTH_DAY_LABEL "fifthDayLabel" +#define CALEN_MONTVIEW_SIXTH_DAY_LABEL "sixthDayLabel" +#define CALEN_MONTVIEW_SEVENTH_DAY_LABEL "seventhDayLabel" +#define CALEN_MONTVIEW_FIRST_WEEK_LABEL "firstWeekLabel" +#define CALEN_MONTVIEW_SECOND_WEEK_LABEL "secondWeekLabel" +#define CALEN_MONTVIEW_THIRD_WEEK_LABEL "thirdWeekLabel" +#define CALEN_MONTVIEW_FOURTH_WEEK_LABEL "fourthWeekLabel" +#define CALEN_MONTVIEW_FIFTH_WEEK_LABEL "fifthWeekLabel" +#define CALEN_MONTVIEW_SIXTH_WEEK_LABEL "sixthWeekLabel" + + +/*! + \class CalendarNamespace + + This will have all the common enums and declarations needed by the calendar + application. + */ +class CalendarNamespace { + +public: + /*! + \enum DataRole + */ + enum DataRole { + CalendarMonthDayRole = Qt::UserRole + 100, + CalendarMonthEventRole, + CalendarMonthFocusRole, + CalendarMonthUnderlineRole, + CalendarMonthTextColorRole, + CalendarMonthSeventhColumn + }; + + /*! + \enum widgetType + */ + enum WidgetType { + CalenDayNameWidget = 0, + CalenWeekNumWidget + }; +}; +#endif // CALENCOMMON_H + +// End of file --Don't remove this.