Ananas Library 0.9.5
wDBField Class Reference

Ananas DBField. widget. . More...

#include <wdbfield.h>

Inheritance diagram for wDBField:
wField aWidget

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 aObjectcreateDBObject (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)
 
aCfggetMd ()
 
virtual Q_ULLONG uid ()
 
virtual ERR_Code New ()
 
virtual ERR_Code Update ()
 
virtual ERR_Code TurnOn ()
 
virtual ERR_Code Select (Q_ULLONG id)
 
aObjectdataObject ()
 
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 aDataFieldgetAttribute (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
 
wDateEditdateEdit
 
QLabel * objLabel
 
QLabel * nzLabel
 
wCatButtonobjButton
 
wCheckBoxcheckBox
 
QValidator * v
 
int two_state
 
tEditorType vEditorType
 
QString vFieldType
 
QString vValue
 
- Protected Attributes inherited from aWidget
aObjectdbobj
 

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 aWidgetparentContainer (QWidget *w)
 
static aFormparentForm (QWidget *w)
 
static QString widgetName (QWidget *w)
 
static QWidget * Widget (QWidget *owner, QString name)
 
- Public Attributes inherited from aWidget
aDatabasedb
 
aCfgmd
 
aEngineengine
 

Detailed Description

Ananas DBField. widget. .

Constructor & Destructor Documentation

◆ wDBField() [1/2]

wDBField::wDBField ( QWidget * parent,
WFlags fl )

Constructor without name.

References init(), and wField::wField().

Referenced by getBindList().

◆ wDBField() [2/2]

wDBField::wDBField ( QWidget * parent,
const char * name,
WFlags fl )

Constructor.

References init(), and wField::wField().

◆ ~wDBField()

wDBField::~wDBField ( )

Destructor.

Member Function Documentation

◆ createEditor()

QDialog * wDBField::createEditor ( QWidget * parent)
virtual

Creates property editor dialog window.

Parameters
parent- parent

Reimplemented from wField.

◆ getBindList()

QValueList< Q_ULLONG > wDBField::getBindList ( )
protected

Gets list of binding fields id.

Returns
List of binding fields id.

References wDBField().

Referenced by getFields().

◆ getFieldName()

virtual QString wDBField::getFieldName ( ) const
inlinevirtual

Reimplemented from aWidget.

◆ getFields()

QStringList wDBField::getFields ( )
protected

Gets list of fields and id for Document.Header or Catalogue.Element and Catalogue.Group

Returns
List of field name

References getBindList().

◆ init()

void wDBField::init ( )
protected

Gets field name in metadata. return - Field name.

Inits widget. Gets copy of metadata from designer window.

References aWidget::getMd().

Referenced by wDBField(), and wDBField().

◆ initObject()

void wDBField::initObject ( aDatabase * adb)
virtual

Init object after create. Need setId( id ), where id - if of the metadata object of the adb->cfg loaded Configuration.

Parameters
adb- ananas database object.

Reimplemented from aWidget.

References aWidget::initObject(), wField::SetMask(), wField::SetNonZero(), and wField::SetValidator().

◆ setEditorType()

void wDBField::setEditorType ( void )
protected

Set widget type, use property ‘Id’.

References wField::setEditorType(), and wField::setFieldType().

◆ setFieldName()

void wDBField::setFieldName ( QString n)

Sets property value ‘fieldName’.

Property Documentation

◆ openEditor

void wDBField::openEditor
readwrite

Opens property editor dialog form.


The documentation for this class was generated from the following files: