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
00024
00025 #ifndef KEXIRECORDMARKER_H
00026 #define KEXIRECORDMARKER_H
00027
00028 #include <qwidget.h>
00029
00030 class QImage;
00031
00033
00036 class KEXIGUIUTILS_EXPORT KexiRecordMarker : public QWidget
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 KexiRecordMarker(QWidget *parent, const char* name = 0);
00042 ~KexiRecordMarker();
00043
00044 int rows() const;
00045
00046 static QImage* penImage();
00047 static QImage* plusImage();
00048
00049 public slots:
00050 void setOffset(int offset);
00051 void setCellHeight(int cellHeight);
00052 void setCurrentRow(int row);
00053
00055 void setEditRow(int row);
00056 void showInsertRow(bool show);
00057 void setColor(const QColor &color);
00058
00059 void addLabel(bool upd=true);
00060 void removeLabel(bool upd=true);
00061
00063 void addLabels(int num, bool upd=true);
00064
00065 void clear(bool upd=true);
00066
00067 protected:
00068 virtual void paintEvent(QPaintEvent *e);
00069
00070 int m_rowHeight;
00071 int m_offset;
00072 int m_currentRow;
00073 int m_editRow;
00074 int m_rows;
00075 bool m_showInsertRow : 1;
00076
00077 QColor m_pointerColor;
00078
00079 };
00080
00081 #endif
|