00001
00002 #ifndef __QScrollBar_h
00003 #define __QScrollBar_h
00004
00005 #include "xwidget.h"
00006
00007 class XScrollBar : public XWidget
00008 {
00009 class XScrollBarPrivate *d;
00010
00011 public:
00012 enum Orientation
00013 {
00014 Vertical,
00015 Horizontal
00016 };
00017
00018 XScrollBar(XWidget *p = 0, char *name = 0);
00019 ~XScrollBar();
00020
00021
00022 Orientation orientation();
00023 void setOrientation(Orientation o);
00024 int value();
00025 void setValue(int v);
00026 int minValue();
00027 int maxValue();
00028 void setRange(int min, int max);
00029 int pageStep();
00030 void setPageStep(int i);
00031
00032
00033 void paintEvent(XlibEvent *e);
00034 void resizeEvent(XlibEvent *e);
00035 void mousePressEvent(XlibEvent *e);
00036 void mouseReleaseEvent(XlibEvent *e);
00037 void mouseMoveEvent(XlibEvent *e);
00038 bool keyPressEvent(XlibEvent *e);
00039 void wheelEvent(XlibEvent *e);
00040 };
00041
00042 #endif