Ananas Field widget. .
More...
#include <wfield.h>
|
enum | tEditorType {
Unknown
, Numberic
, String
, Date
,
DateTime
, Boolean
, Catalogue =101
, Document
} |
|
|
bool | getOpt () const |
|
virtual QVariant | value (const QString &name) |
|
|
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) |
|
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) |
|
| 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) |
|
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) |
|
|
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::wField |
( |
QWidget * | parent, |
|
|
const char * | name, |
|
|
WFlags | fl = 0 ) |
◆ ~wField()
◆ createEditor()
QDialog * wField::createEditor |
( |
QWidget * | parent | ) |
|
|
virtual |
Creates property editor dialog window.
- Parameters
-
Reimplemented from aWidget.
Reimplemented in wDBField.
◆ fieldSelect()
void wField::fieldSelect |
( |
| ) |
|
◆ focusInEvent()
void wField::focusInEvent |
( |
| ) |
|
|
virtual |
Handler signal lostFocus.
◆ focusOutEvent()
void wField::focusOutEvent |
( |
| ) |
|
|
virtual |
◆ setEditorType()
void wField::setEditorType |
( |
tEditorType | n | ) |
|
◆ setFieldType()
void wField::setFieldType |
( |
QString | n | ) |
|
◆ SetMask()
void wField::SetMask |
( |
QString | inputMask | ) |
|
|
virtual |
Set input Mask to LineEdit.
- Parameters
-
QString | inputMas - inputMas for LineEdit. |
Referenced by wDBField::initObject().
◆ SetNonZero()
void wField::SetNonZero |
( |
bool | fl | ) |
|
|
virtual |
◆ SetReadOnly()
void wField::SetReadOnly |
( |
bool | status | ) |
|
|
virtual |
Seting widget readonly flag. When widget readonly it's fields can't be edit, and make updatе action
- Parameters
-
status | - New readonly flag. |
Reimplemented from aWidget.
◆ SetValidator()
void wField::SetValidator |
( |
QString | Validator, |
|
|
int | twostate ) |
|
virtual |
Set validaror and connect LineEdit to Validator.
- Parameters
-
QString | Validator - RegExp for QRegExpValidator |
References Validate().
Referenced by wDBField::initObject().
◆ setValue() [1/2]
void wField::setValue |
( |
const QDate & | newDate | ) |
|
Sets value type DateTime.
- Parameters
-
newDate | (in) - date for set |
◆ setValue() [2/2]
void wField::setValue |
( |
const QString & | newvalue | ) |
|
|
virtual |
◆ text()
QString wField::text |
( |
| ) |
const |
Gets text value.
- Returns
- value
◆ textValue()
virtual QString wField::textValue |
( |
| ) |
|
|
inlinevirtual |
◆ Validate()
void wField::Validate |
( |
const QString & | test | ) |
|
|
virtual |
◆ value()
QString wField::value |
( |
| ) |
const |
|
virtual |
Gets value.
- Returns
- value
Reimplemented from aWidget.
◆ widgetInit()
void wField::widgetInit |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following files: