Diffstat (limited to 'core/pim/datebook/datebookday.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookday.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/pim/datebook/datebookday.h b/core/pim/datebook/datebookday.h index db0f3b6..be7cc45 100644 --- a/core/pim/datebook/datebookday.h +++ b/core/pim/datebook/datebookday.h | |||
@@ -32,24 +32,26 @@ class DateBookDB; | |||
32 | class QDateTime; | 32 | class QDateTime; |
33 | class QMouseEvent; | 33 | class QMouseEvent; |
34 | class QPaintEvent; | 34 | class QPaintEvent; |
35 | class QResizeEvent; | 35 | class QResizeEvent; |
36 | 36 | ||
37 | class DateBookDayView : public QTable | 37 | class DateBookDayView : public QTable |
38 | { | 38 | { |
39 | Q_OBJECT | 39 | Q_OBJECT |
40 | public: | 40 | public: |
41 | DateBookDayView( bool hourClock, QWidget *parent, const char *name ); | 41 | DateBookDayView( bool hourClock, QWidget *parent, const char *name ); |
42 | bool whichClock() const; | 42 | bool whichClock() const; |
43 | 43 | ||
44 | void setRowStyle( int style ); | ||
45 | |||
44 | public slots: | 46 | public slots: |
45 | void moveUp(); | 47 | void moveUp(); |
46 | void moveDown(); | 48 | void moveDown(); |
47 | 49 | ||
48 | signals: | 50 | signals: |
49 | void sigColWidthChanged(); | 51 | void sigColWidthChanged(); |
50 | void sigCapturedKey( const QString &txt ); | 52 | void sigCapturedKey( const QString &txt ); |
51 | protected slots: | 53 | protected slots: |
52 | void slotChangeClock( bool ); | 54 | void slotChangeClock( bool ); |
53 | protected: | 55 | protected: |
54 | virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected ); | 56 | virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected ); |
55 | virtual void paintFocus( QPainter *p, const QRect &cr ); | 57 | virtual void paintFocus( QPainter *p, const QRect &cr ); |
@@ -140,24 +142,26 @@ class DateBookDay : public QVBox | |||
140 | Q_OBJECT | 142 | Q_OBJECT |
141 | 143 | ||
142 | public: | 144 | public: |
143 | DateBookDay( bool ampm, bool startOnMonday, DateBookDB *newDb, | 145 | DateBookDay( bool ampm, bool startOnMonday, DateBookDB *newDb, |
144 | QWidget *parent, const char *name ); | 146 | QWidget *parent, const char *name ); |
145 | void selectedDates( QDateTime &start, QDateTime &end ); | 147 | void selectedDates( QDateTime &start, QDateTime &end ); |
146 | QDate date() const; | 148 | QDate date() const; |
147 | DateBookDayView *dayView() const { return view; } | 149 | DateBookDayView *dayView() const { return view; } |
148 | void setStartViewTime( int startHere ); | 150 | void setStartViewTime( int startHere ); |
149 | int startViewTime() const; | 151 | int startViewTime() const; |
150 | void setSelectedWidget( DateBookDayWidget * ); | 152 | void setSelectedWidget( DateBookDayWidget * ); |
151 | DateBookDayWidget * getSelectedWidget( void ); | 153 | DateBookDayWidget * getSelectedWidget( void ); |
154 | void setJumpToCurTime( bool bJump ); | ||
155 | void setRowStyle( int style ); | ||
152 | 156 | ||
153 | public slots: | 157 | public slots: |
154 | void setDate( int y, int m, int d ); | 158 | void setDate( int y, int m, int d ); |
155 | void setDate( QDate ); | 159 | void setDate( QDate ); |
156 | void redraw(); | 160 | void redraw(); |
157 | void slotWeekChanged( bool bStartOnMonday ); | 161 | void slotWeekChanged( bool bStartOnMonday ); |
158 | void updateView();//updates TimeMarker and DayWidget-colors | 162 | void updateView();//updates TimeMarker and DayWidget-colors |
159 | 163 | ||
160 | signals: | 164 | signals: |
161 | void removeEvent( const Event& ); | 165 | void removeEvent( const Event& ); |
162 | void editEvent( const Event& ); | 166 | void editEvent( const Event& ); |
163 | void beamEvent( const Event& ); | 167 | void beamEvent( const Event& ); |
@@ -172,17 +176,19 @@ private slots: | |||
172 | void slotColWidthChanged() { relayoutPage(); }; | 176 | void slotColWidthChanged() { relayoutPage(); }; |
173 | 177 | ||
174 | private: | 178 | private: |
175 | void getEvents(); | 179 | void getEvents(); |
176 | void relayoutPage( bool fromResize = false ); | 180 | void relayoutPage( bool fromResize = false ); |
177 | DateBookDayWidget *intersects( const DateBookDayWidget *item, const QRect &geom ); | 181 | DateBookDayWidget *intersects( const DateBookDayWidget *item, const QRect &geom ); |
178 | QDate currDate; | 182 | QDate currDate; |
179 | DateBookDayView *view; | 183 | DateBookDayView *view; |
180 | DateBookDayHeader *header; | 184 | DateBookDayHeader *header; |
181 | DateBookDB *db; | 185 | DateBookDB *db; |
182 | WidgetListClass widgetList;//reimplemented QList for sorting widgets by height | 186 | WidgetListClass widgetList;//reimplemented QList for sorting widgets by height |
183 | int startTime; | 187 | int startTime; |
188 | bool jumpToCurTime;//should we jump to current time in dayview? | ||
189 | int rowStyle; | ||
184 | DateBookDayWidget *selectedWidget; //actual selected widget (obviously) | 190 | DateBookDayWidget *selectedWidget; //actual selected widget (obviously) |
185 | DateBookDayTimeMarker *timeMarker;//marker for current time | 191 | DateBookDayTimeMarker *timeMarker;//marker for current time |
186 | }; | 192 | }; |
187 | 193 | ||
188 | #endif | 194 | #endif |