Ananas Field widget.
More...
#include <wfield.h>
|
| enum | tEditorType {
Unknown,
Numberic,
String,
Date,
DateTime,
Boolean,
Catalogue =101,
Document
} |
| |
|
|
void | valueChanged (const QString &) |
| |
|
void | valueChanged (const QVariant &) |
| |
|
void | inputInvalid () |
| |
|
void | lostFocus () |
| |
|
void | setData (QWidget *, aCfg *) |
| |
|
void | getData (QWidget *) |
| |
|
void | getMd (aCfg **) |
| |
|
void | valueChanged (const QString &, const QVariant &) |
| |
|
void | valueChanged (const QString &, const QVariant &, const QString &) |
| |
|
void | changeObj (const QString &) |
| |
|
void | changeObjId (const Q_ULLONG) |
| |
|
void | keyPressed (QKeyEvent *e) |
| |
|
| | wField (QWidget *parent, const char *name, WFlags fl=0) |
| |
| virtual | ~wField () |
| |
| virtual QDialog * | createEditor (QWidget *parent) |
| |
| | aWidget (QWidget *parent=0, const char *name=0, WFlags fl=0) |
| |
|
| aWidget (const QString &oname, aDatabase *adb, QWidget *parent=0, const char *name=0, WFlags fl=0) |
| |
|
| aWidget (aCfgItem context, aDatabase *adb, QWidget *parent=0, const char *name=0, WFlags fl=0) |
| |
|
virtual bool | checkStructure () |
| |
| virtual void | initObject (aDatabase *adb) |
| |
|
virtual void | widgetEditor () |
| |
| virtual QToolBar * | createToolBar (QMainWindow *parent) |
| |
| virtual aObject * | createDBObject (aCfgItem obj, aDatabase *) |
| |
|
virtual QString | displayString () |
| |
|
void | init (aDatabase *adb) |
| |
|
bool | getOpenEditor () const |
| |
|
void | setOpenEditor (bool) |
| |
|
bool | isInited () |
| |
|
virtual bool | isContainer () |
| |
|
void | setInited (bool flag) |
| |
|
aCfgItem * | getMDObject () |
| |
|
void | setMDObject (aCfgItem object) |
| |
|
aSQLTable * | table (const QString &name="") |
| |
| void | setObjectData (QWidget *object, aCfg *md) |
| |
| void | getObjectData (QWidget *object) |
| |
| aCfg * | getMd () |
| |
| virtual Q_ULLONG | uid () |
| |
| virtual ERR_Code | New () |
| |
| virtual ERR_Code | Update () |
| |
|
virtual ERR_Code | TurnOn () |
| |
| virtual ERR_Code | Select (Q_ULLONG id) |
| |
|
aObject * | dataObject () |
| |
|
virtual Q_ULLONG | docId () |
| |
|
int | formMode () const |
| |
|
virtual void | setFormMode (int mode) |
| |
|
virtual QString | getFieldName () const |
| |
|
int | getId () const |
| |
|
void | setId (int fn) |
| |
|
| void | widgetInit () |
| |
|
virtual void | updateProp () |
| |
|
virtual void | keyPressEvent (QKeyEvent *e) |
| |
|
|
QLineEdit * | lineEdit |
| |
|
wDateEdit * | dateEdit |
| |
|
QLabel * | objLabel |
| |
|
QLabel * | nzLabel |
| |
|
wCatButton * | objButton |
| |
|
wCheckBox * | checkBox |
| |
|
QValidator * | v |
| |
|
int | two_state |
| |
|
tEditorType | vEditorType |
| |
|
QString | vFieldType |
| |
|
QString | vValue |
| |
|
aObject * | dbobj |
| |
|
| QString | value |
| |
|
QString | FieldType |
| |
|
tEditorType | EditorType |
| |
|
int | Id |
| |
|
bool | openEditor |
| |
|
int | FormMode |
| |
|
|
static void | widgetEditor (QWidget *object, QDialog *editor) |
| |
|
static aWidget * | parentContainer (QWidget *w) |
| |
|
static aForm * | parentForm (QWidget *w) |
| |
|
static QString | widgetName (QWidget *w) |
| |
| static QWidget * | Widget (QWidget *owner, QString name) |
| |
|
aDatabase * | db |
| |
|
aCfg * | md |
| |
|
aEngine * | engine |
| |
| wField::wField |
( |
QWidget * |
parent, |
|
|
const char * |
name, |
|
|
WFlags |
fl = 0 |
|
) |
| |
Constructs object with parent=parent, name=name and flags=fl
| QDialog * wField::createEditor |
( |
QWidget * |
parent | ) |
|
|
virtual |
Creates property editor dialog window.
- Parameters
-
Reimplemented from aWidget.
Reimplemented in wDBField.
| void wField::fieldSelect |
( |
| ) |
|
|
slot |
| void wField::focusInEvent |
( |
| ) |
|
|
virtualslot |
Handler signal lostFocus.
| void wField::focusOutEvent |
( |
| ) |
|
|
virtualslot |
| void wField::setEditorType |
( |
tEditorType |
n | ) |
|
|
slot |
| void wField::setFieldType |
( |
QString |
n | ) |
|
|
slot |
| void wField::SetMask |
( |
QString |
inputMask | ) |
|
|
virtualslot |
Set input Mask to LineEdit.
- Parameters
-
| QString | inputMas - inputMas for LineEdit. |
Referenced by wDBField::initObject().
| void wField::SetNonZero |
( |
bool |
fl | ) |
|
|
virtualslot |
| void wField::SetValidator |
( |
QString |
Validator, |
|
|
int |
twostate |
|
) |
| |
|
virtualslot |
Set validaror and connect LineEdit to Validator.
- Parameters
-
| QString | Validator - RegExp for QRegExpValidator |
References Validate().
Referenced by wDBField::initObject().
| void wField::setValue |
( |
const QString & |
newvalue | ) |
|
|
virtualslot |
| void wField::setValue |
( |
const QDate & |
newDate | ) |
|
|
slot |
Sets value type DateTime.
- Parameters
-
| newDate | (in) - date for set |
| QString wField::text |
( |
| ) |
const |
|
slot |
Gets text value.
- Returns
- value
| void wField::Validate |
( |
const QString & |
test | ) |
|
|
virtualslot |
| void wField::widgetInit |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following files: