-rw-r--r-- | korganizer/koagendaview.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h index 0079253..221b0ea 100644 --- a/korganizer/koagendaview.h +++ b/korganizer/koagendaview.h | |||
@@ -42,57 +42,62 @@ class QLabel; | |||
42 | class QPushButton; | 42 | class QPushButton; |
43 | class CalendarView; | 43 | class CalendarView; |
44 | class KOAgenda; | 44 | class KOAgenda; |
45 | class KOAgendaItem; | 45 | class KOAgendaItem; |
46 | class KConfig; | 46 | class KConfig; |
47 | class KDGanttMinimizeSplitter; | 47 | class KDGanttMinimizeSplitter; |
48 | class TimeLabels : public QScrollView { | 48 | class TimeLabels : public QScrollView { |
49 | Q_OBJECT | 49 | Q_OBJECT |
50 | public: | 50 | public: |
51 | TimeLabels(int rows,QWidget *parent=0,const char *name=0,WFlags f=0); | 51 | TimeLabels(int rows,QWidget *parent=0,const char *name=0,WFlags f=0); |
52 | 52 | ||
53 | void setCellHeight(int height); | 53 | void setCellHeight(int height); |
54 | 54 | ||
55 | /** Calculates the minimum width */ | 55 | /** Calculates the minimum width */ |
56 | virtual int minimumWidth() const; | 56 | virtual int minimumWidth() const; |
57 | 57 | ||
58 | /** updates widget's internal state */ | 58 | /** updates widget's internal state */ |
59 | void updateConfig(); | 59 | void updateConfig(); |
60 | 60 | ||
61 | /** */ | 61 | /** */ |
62 | void setAgenda(KOAgenda* agenda); | 62 | void setAgenda(KOAgenda* agenda); |
63 | 63 | ||
64 | /** */ | 64 | /** */ |
65 | virtual void paintEvent(QPaintEvent* e); | 65 | virtual void paintEvent(QPaintEvent* e); |
66 | void contentsMousePressEvent ( QMouseEvent * ) ; | ||
67 | void contentsMouseReleaseEvent ( QMouseEvent * ); | ||
68 | void contentsMouseMoveEvent ( QMouseEvent * ); | ||
66 | 69 | ||
67 | public slots: | 70 | public slots: |
68 | /** update time label positions */ | 71 | /** update time label positions */ |
69 | void positionChanged(); | 72 | void positionChanged(); |
70 | 73 | signals: | |
74 | void scaleChanged(); | ||
71 | protected: | 75 | protected: |
72 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); | 76 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); |
73 | 77 | ||
74 | private: | 78 | private: |
79 | int mMouseDownY; | ||
75 | int mRows; | 80 | int mRows; |
76 | int mCellHeight; | 81 | int mCellHeight; |
77 | 82 | ||
78 | /** */ | 83 | /** */ |
79 | KOAgenda* mAgenda; | 84 | KOAgenda* mAgenda; |
80 | }; | 85 | }; |
81 | 86 | ||
82 | class EventIndicator : public QFrame { | 87 | class EventIndicator : public QFrame { |
83 | Q_OBJECT | 88 | Q_OBJECT |
84 | public: | 89 | public: |
85 | enum Location { Top, Bottom }; | 90 | enum Location { Top, Bottom }; |
86 | EventIndicator(Location loc=Top,QWidget *parent=0,const char *name=0); | 91 | EventIndicator(Location loc=Top,QWidget *parent=0,const char *name=0); |
87 | virtual ~EventIndicator(); | 92 | virtual ~EventIndicator(); |
88 | 93 | ||
89 | void changeColumns(int columns); | 94 | void changeColumns(int columns); |
90 | void setPaintWidget( KDGanttMinimizeSplitter* ); | 95 | void setPaintWidget( KDGanttMinimizeSplitter* ); |
91 | void setXOffset( int ); | 96 | void setXOffset( int ); |
92 | void enableColumn(int column, bool enable); | 97 | void enableColumn(int column, bool enable); |
93 | 98 | ||
94 | protected: | 99 | protected: |
95 | void drawContents(QPainter *); | 100 | void drawContents(QPainter *); |
96 | 101 | ||
97 | private: | 102 | private: |
98 | int mXOffset; | 103 | int mXOffset; |