|
Ananas Library
0.9.5
|
Ananas DBField. widget. More...
#include <wdbfield.h>
Public Member Functions | |
| wDBField (QWidget *parent, WFlags fl) | |
| wDBField (QWidget *parent, const char *name, WFlags fl) | |
| ~wDBField () | |
| virtual QDialog * | createEditor (QWidget *parent) |
| virtual void | initObject (aDatabase *adb) |
| void | openEditor () |
| bool | getOpenEditor () const |
| virtual QString | getFieldName () const |
| void | setOpenEditor (bool b) |
| void | setFieldName (QString n) |
Public Member Functions inherited from wField | |
| wField (QWidget *parent, const char *name, WFlags fl=0) | |
| virtual | ~wField () |
| void | setOpt (bool fn) |
| virtual QString | value () const |
| QString | text () const |
| virtual void | setValue (const QString &fn) |
| virtual void | Validate (const QString &fn) |
| void | setValue (const QDate &d) |
| virtual QString | textValue () |
| void | setFieldType (QString n) |
| QString | getFieldType () const |
| void | setEditorType (tEditorType n) |
| tEditorType | getEditorType () const |
| void | fieldSelect () |
| virtual void | focusInEvent () |
| virtual void | focusOutEvent () |
| void | selectAll () |
| virtual void | SetReadOnly (bool) |
| virtual void | SetNonZero (bool) |
| virtual void | SetMask (QString) |
| virtual void | SetValidator (QString Validator, int twostate) |
Public Member Functions inherited from aWidget | |
| 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 | 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) |
| int | getId () const |
| void | setId (int fn) |
| virtual int | setValue (const QString &name, const QVariant &value) |
| virtual int | setObjValue (const QString &nameWidget, aObject *value) |
| virtual int | Refresh () |
| QWidget * | Widget (QString name, bool onlyMyWidgets=true) |
| virtual aDataField * | getAttribute (const QString &name) |
| virtual int | setAttribute (const QString &name, const aDataField *value) |
Protected Member Functions | |
| QStringList | getFields () |
| void | init () |
| QValueList< Q_ULLONG > | getBindList () |
| void | setEditorType (void) |
Protected Member Functions inherited from wField | |
| void | widgetInit () |
Protected Member Functions inherited from aWidget | |
| virtual void | updateProp () |
| virtual void | keyPressEvent (QKeyEvent *e) |
Protected Attributes | |
| QStringList | defDisplayFields |
| QStringList | defFields |
| QStringList | defId |
Protected Attributes inherited from wField | |
| QLineEdit * | lineEdit |
| wDateEdit * | dateEdit |
| QLabel * | objLabel |
| QLabel * | nzLabel |
| wCatButton * | objButton |
| wCheckBox * | checkBox |
| QValidator * | v |
| int | two_state |
| tEditorType | vEditorType |
| QString | vFieldType |
| QString | vValue |
Protected Attributes inherited from aWidget | |
| aObject * | dbobj |
Properties | |
| bool | openEditor |
| QString | FieldName |
Properties inherited from wField | |
| QString | value |
| QString | FieldType |
| tEditorType | EditorType |
Properties inherited from aWidget | |
| int | Id |
| bool | openEditor |
| int | FormMode |
Friends | |
| class | addfdialog |
Additional Inherited Members | |
Public Types inherited from wField | |
| enum | tEditorType { Unknown, Numberic, String, Date, DateTime, Boolean, Catalogue =101, Document } |
Public Slots inherited from wField | |
| bool | getOpt () const |
Public Slots inherited from aWidget | |
| virtual QVariant | value (const QString &name) |
Signals inherited from wField | |
| void | valueChanged (const QString &) |
| void | valueChanged (const QVariant &) |
| void | inputInvalid () |
| void | lostFocus () |
Signals inherited from aWidget | |
| 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) |
Static Public Member Functions inherited from aWidget | |
| 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) |
Public Attributes inherited from aWidget | |
| aDatabase * | db |
| aCfg * | md |
| aEngine * | engine |
Ananas DBField. widget.
| wDBField::wDBField | ( | QWidget * | parent, |
| WFlags | fl | ||
| ) |
Constructor without name.
References init().
| wDBField::wDBField | ( | QWidget * | parent, |
| const char * | name, | ||
| WFlags | fl | ||
| ) |
Constructor.
References init().
| wDBField::~wDBField | ( | ) |
Destructor.
|
virtual |
Creates property editor dialog window.
| parent | - parent |
Reimplemented from wField.
References openEditor.
|
protected |
|
protected |
Gets list of fields and id for Document.Header or Catalogue.Element and Catalogue.Group
References aCfg::attr(), aCfg::countChild(), getBindList(), and aCfg::objClass().
|
protected |
Gets field name in metadata. return - Field name.
Inits widget. Gets copy of metadata from designer window.
References aCfg::find(), and aWidget::getMd().
Referenced by wDBField().
|
virtual |
Init object after create. Need setId( id ), where id - if of the metadata object of the adb->cfg loaded Configuration.
| adb | - ananas database object. |
Reimplemented from aWidget.
References aCfg::attr(), aCfg::find(), aWidget::initObject(), wField::SetMask(), wField::SetNonZero(), and wField::SetValidator().
|
protected |
Set widget type, use property `Id'.
References aCfg::attr(), aCfg::find(), aCfg::objClass(), wField::setEditorType(), and wField::setFieldType().
| void wDBField::setFieldName | ( | QString | n | ) |
Sets property value `fieldName'.
|
readwrite |
Opens property editor dialog form.
Referenced by createEditor().
1.8.11