src/job_editor_widget/jobpropertyitemstring.h

Go to the documentation of this file.
00001 #ifndef JobPropertyItemString_H
00002 #define JobPropertyItemString_H
00003 
00010 #include <QRegExp>
00011 #include "jobpropertyitem.h"
00012 
00016 class JobPropertyItemString: public JobPropertyItem
00017 {
00018     Q_OBJECT
00019 public:
00020     JobPropertyItemString(JobPropertyModel * model, QString inName, JobPropertyItem *parent = 0);
00021     virtual ~JobPropertyItemString();
00022 
00023     virtual bool setData(int column, const QVariant &value);
00024     virtual QWidget *createEditor(QWidget *parent, const QObject *target, const char *receiver) const;
00025     virtual void updateEditorContents(QWidget *editor);
00026     virtual void updateValue(QWidget *editor);
00027     virtual void setRegExpValidator(QRegExp rx);
00028     virtual QString toString();
00029 
00030 public slots:
00031     void set(const QString & str);
00032 
00033 signals:
00037     void itemChanged(const QString & str);
00038 
00039 protected:
00040     QRegExp _rx;
00041 };
00042 
00043 
00044 #endif // JobPropertyItemString_H

Generated on Mon Mar 16 18:46:05 2009 for QCJM by  doxygen 1.5.4