#include <awidget.h>
|
virtual QVariant | value (const QString &name) |
|
virtual QString | value () const |
|
|
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) |
|
|
| 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 QDialog * | createEditor (QWidget *parent) |
|
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 QString | textValue () |
|
virtual void | setValue (const QString &) |
|
virtual int | setValue (const QString &name, const QVariant &value) |
|
virtual int | setObjValue (const QString &nameWidget, aObject *value) |
|
virtual void | SetReadOnly (bool) |
|
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) |
|
|
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) |
|
|
virtual void | updateProp () |
|
virtual void | keyPressEvent (QKeyEvent *e) |
|
|
int | Id |
|
bool | openEditor |
|
int | FormMode |
|
◆ aWidget() [1/3]
aWidget::aWidget |
( |
QWidget * | parent = 0, |
|
|
const char * | name = 0, |
|
|
WFlags | fl = 0 ) |
◆ aWidget() [2/3]
aWidget::aWidget |
( |
const QString & | itemname, |
|
|
aDatabase * | adb, |
|
|
QWidget * | parent = 0, |
|
|
const char * | name = 0, |
|
|
WFlags | fl = 0 ) |
◆ aWidget() [3/3]
aWidget::aWidget |
( |
aCfgItem | context, |
|
|
aDatabase * | adb, |
|
|
QWidget * | parent = 0, |
|
|
const char * | name = 0, |
|
|
WFlags | fl = 0 ) |
◆ checkStructure()
bool aWidget::checkStructure |
( |
| ) |
|
|
virtual |
◆ createDBObject()
◆ createEditor()
QDialog * aWidget::createEditor |
( |
QWidget * | parent | ) |
|
|
virtual |
◆ createToolBar()
QToolBar * aWidget::createToolBar |
( |
QMainWindow * | parent | ) |
|
|
virtual |
◆ displayString()
QString aWidget::displayString |
( |
| ) |
|
|
virtual |
◆ getAttribute()
aDataField * aWidget::getAttribute |
( |
const QString & | name | ) |
|
|
virtual |
Return form widget pointer by name.
◆ getMd()
aCfg * aWidget::getMd |
( |
| ) |
|
◆ getObjectData()
void aWidget::getObjectData |
( |
QWidget * | object | ) |
|
Emit signal getData( object ).
◆ init()
◆ initObject()
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 in wCatalogue, wDBField, wDocument, wGroupTree, wJournal, and wReport.
References createDBObject(), and aLog::print().
Referenced by aEditorFactory::createEditor(), init(), wCatalogue::initObject(), wDBField::initObject(), wDocument::initObject(), wGroupTree::initObject(), wJournal::initObject(), and wReport::initObject().
◆ isContainer()
bool aWidget::isContainer |
( |
| ) |
|
|
virtual |
◆ New()
ERR_Code aWidget::New |
( |
| ) |
|
|
virtual |
◆ Select()
ERR_Code aWidget::Select |
( |
Q_ULLONG | id | ) |
|
|
virtual |
◆ setAttribute()
int aWidget::setAttribute |
( |
const QString & | name, |
|
|
const aDataField * | value ) |
|
virtual |
Return form widget pointer by name.
References value().
◆ setObjectData()
void aWidget::setObjectData |
( |
QWidget * | object, |
|
|
aCfg * | md ) |
Emit signal setData( object, md ).
◆ setObjValue()
int aWidget::setObjValue |
( |
const QString & | nameWidget, |
|
|
aObject * | value ) |
|
virtual |
◆ setOpenEditor()
void aWidget::setOpenEditor |
( |
bool | fn | ) |
|
◆ SetReadOnly()
void aWidget::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 in wField.
References aWidget().
◆ setValue() [1/2]
void aWidget::setValue |
( |
const QString & | value | ) |
|
|
virtual |
Setting form widgets value. Must be implemented in inherited class.
- Parameters
-
Reimplemented in wField.
References value().
◆ setValue() [2/2]
int aWidget::setValue |
( |
const QString & | nameWidget, |
|
|
const QVariant & | value ) |
|
virtual |
◆ uid()
Q_ULLONG aWidget::uid |
( |
| ) |
|
|
virtual |
◆ Update()
ERR_Code aWidget::Update |
( |
| ) |
|
|
virtual |
◆ value [1/2]
virtual QString aWidget::value |
( |
| ) |
const |
|
inlinevirtualslot |
◆ value [2/2]
QVariant aWidget::value |
( |
const QString & | nameWidget | ) |
|
|
virtualslot |
◆ Widget() [1/2]
QWidget * aWidget::Widget |
( |
QString | name, |
|
|
bool | onlyMyWidgets = true ) |
Return form widget pointer by name.
References Widget().
◆ Widget() [2/2]
QWidget * aWidget::Widget |
( |
QWidget * | owner, |
|
|
QString | name ) |
|
static |
The documentation for this class was generated from the following files: