35 #include <qwidgetplugin.h>
36 #include <qpushbutton.h>
38 #include <qdatetimeedit.h>
39 #include <qcheckbox.h>
40 #include "qlineedit.h"
41 #include "wdateedit.h"
42 #include "adatabase.h"
44 #include "acalendar.h"
45 #include <qvalidator.h>
67 Q_PROPERTY( QString value READ value WRITE setValue)
68 Q_PROPERTY( QString FieldType READ getFieldType WRITE setFieldType )
69 Q_PROPERTY( tEditorType EditorType READ getEditorType WRITE setEditorType )
73 enum tEditorType { Unknown, Numberic, String, Date, DateTime, Boolean, Catalogue=101, Document};
75 wField( QWidget *parent,
const char *name, WFlags fl = 0 );
82 void valueChanged(
const QString & );
83 void valueChanged(
const QVariant & );
88 bool getOpt()
const {
return false; };
89 void setOpt(
bool fn ) {
if(fn) widgetEditor(); };
90 virtual QString value()
const;
92 virtual void setValue(
const QString &fn );
93 virtual void Validate(
const QString &fn );
95 virtual QString textValue() {
return text();};
96 void setFieldType( QString n );
97 QString getFieldType()
const {
return vFieldType;};
98 void setEditorType( tEditorType n );
99 tEditorType getEditorType()
const {
return vEditorType; };
102 virtual void focusInEvent();
103 virtual void focusOutEvent();
106 virtual void SetNonZero(
bool);
107 virtual void SetMask(QString);
108 virtual void SetValidator(QString Validator,
int twostate);
111 void on_selected( Q_ULLONG uid );
112 void popupCalendar();
123 tEditorType vEditorType;
131 void popupCalendar(QDateEdit *dateEdit);
134 QPalette defaultLineEditPalette;
135 int defaultLineEditFrameMargin;
136 int defaultLineEditFrameStyle;
143 wCatButton(
const char * caption, QWidget *parent);
146 void keyPressEvent ( QKeyEvent * e );
152 wCheckBox(QWidget *parent,
const char * name =0);
158 void valueChanged(
const QString &);
Плагин – виджет используется в экранных формах в качес...
Definition: wdateedit.h:65
Плагин – виджет предназначенный для редактирования зн...
Definition: wfield.h:63