From 8c690a7bb709773217ba3d39d3ef769a2414cc72 Mon Sep 17 00:00:00 2001 From: umopapisdn Date: Sat, 12 Apr 2003 03:56:46 +0000 Subject: New feature: Added a configurable option to make the weeklist view display either no times at all, only start times, or both start and end time. Also moved the configuration of default view from the menu into the preference dialog. --- (limited to 'core/pim/datebook/datebook.h') diff --git a/core/pim/datebook/datebook.h b/core/pim/datebook/datebook.h index 623862b..5216770 100644 --- a/core/pim/datebook/datebook.h +++ b/core/pim/datebook/datebook.h @@ -24,6 +24,9 @@ #include +enum { DAY=1,WEEK,WEEKLST,MONTH }; // defaultView values +enum { NONE=0,NORMAL,EXTENDED }; // WeekLstView's modes. + class QAction; class QWidgetStack; class DateBookDay; @@ -67,7 +70,6 @@ private slots: void fileNew(); void slotNewEntry(const QDateTime &start, const QDateTime &end, const QString &str, const QString &location=0); void slotSettings(); - void newDefaultView(QAction *a); void slotToday(); // view today void changeClock( bool newClock ); void changeWeek( bool newDay ); @@ -112,11 +114,13 @@ private: DateBookMonth *monthView; DateBookWeekLst *weekLstView; QAction *dayAction, *weekAction, *weekLstAction, *monthAction; + int weeklistviewconfig; bool aPreset; // have everything set to alarm? int presetTime; // the standard time for the alarm int startTime; int rowStyle; - bool bJumpToCurTime; //should jump to current time in dayview? + int defaultView; + bool bJumpToCurTime; //should jump to current time in dayview? bool ampm; bool onMonday; -- cgit v0.9.0.2