kexi
kexirecordmarker.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KEXIRECORDMARKER_H
00024 #define KEXIRECORDMARKER_H
00025
00026 #include <qwidget.h>
00027
00028 class QImage;
00029
00031 class KEXIGUIUTILS_EXPORT KexiRecordMarker : public QWidget
00032 {
00033 Q_OBJECT
00034
00035 public:
00036 KexiRecordMarker(QWidget *parent, const char* name = 0);
00037 ~KexiRecordMarker();
00038
00039 int rows() const;
00040
00041 static QImage* penImage();
00042 static QImage* plusImage();
00043
00044 public slots:
00045 void setOffset(int offset);
00046 void setCellHeight(int cellHeight);
00047 void setCurrentRow(int row);
00048 void setHighlightedRow(int row);
00049
00051 void setEditRow(int row);
00052 void showInsertRow(bool show);
00053
00054 QColor selectionBackgroundColor() const;
00055 void setSelectionBackgroundColor(const QColor &color);
00056
00057 void addLabel(bool upd=true);
00058 void removeLabel(bool upd=true);
00059
00061 void addLabels(int num, bool upd=true);
00062
00063 void clear(bool upd=true);
00064
00065 protected:
00066 virtual void paintEvent(QPaintEvent *e);
00067
00068 class Private;
00069 Private * const d;
00070 };
00071
00072 #endif
|