Go to the documentation of this file.00001
00004 #ifndef BPSTEXTEDIT_H
00005 #define BPSTEXTEDIT_H
00006
00007 #include "bpsgui_global.h"
00008 #include <QPlainTextEdit>
00009
00010 class BpsDatastore;
00011
00017 class BPSGUI_EXPORT BpsTextEdit : public QPlainTextEdit
00018 {
00019 Q_OBJECT
00020 BPS_PRIVATE(BpsTextEdit)
00021
00022 public:
00023
00027 BpsTextEdit(QWidget* aParent = 0);
00028
00033 BpsTextEdit(const QString& aText, QWidget* aParent = 0);
00034
00035 virtual ~BpsTextEdit();
00036
00047 void applyValidator(BpsDatastore* aDatastore, const QString& aTable, const QString& aColumn);
00048
00054 void setLimits(int aMaxLines, int aMaxPerLine);
00055
00060 void setEditText(const QString& aText);
00061
00065 QString editText() const;
00066
00067 signals:
00068
00073 void editTextChanged(const QString& aText);
00074 };
00075
00076 #endif // BPSTEXTEDIT_H