kgantt
xQGanttBarView.h00001 #ifndef _XTQGANTTBARVIEW_H_
00002 #define _XTQGANTTBARVIEW_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #define sgn(n) (n < 0 ? -1 : 1)
00033 #define TOPMARGIN 45
00034
00035
00036 #include <tqscrollview.h>
00037
00038 #include "xQGanttBarViewPort.h"
00039
00040
00041 class KGanttBarConfig;
00042
00043
00045
00049
00050 class xQGanttBarView : public TQScrollView
00052 {
00053
00054 Q_OBJECT
00055
00056
00057
00058 public:
00059
00060
00062
00065 xQGanttBarView(KGanttItem* toplevelitem, TQWidget* parent = 0,
00066 const char * name=0, WFlags f=0 );
00067
00068
00070
00073 ~xQGanttBarView();
00074
00075
00076
00078
00081 xQGanttBarViewPort* viewport() {
00082 return _viewport;
00083 }
00084
00085
00086
00088
00091 KGanttBarConfig* getConfig();
00092
00093
00094
00095 public slots:
00096
00097 void horizontalScrollBarChanged(int);
00098 void showConfig();
00099 void hideConfig();
00100
00101
00102 protected slots:
00103
00104 void drawHeader();
00105
00106
00107 protected:
00108
00109 xQGanttBarViewPort* _viewport;
00110
00111 TQBrush _headerBackBrush;
00112
00113 void paintEvent(TQPaintEvent * e);
00114
00115 KGanttItem* _toplevelitem;
00116 KGanttBarConfig* _config;
00117
00118 };
00119
00120
00121
00122 #endif
|