Ananas Library  0.9.5
Public Slots | Signals | Public Member Functions | List of all members
wCatalogue Class Reference
Inheritance diagram for wCatalogue:
aWidget

Public Slots

virtual ERR_Code Select (Q_ULLONG id)
 
virtual ERR_Code SelectGroup (Q_ULLONG id)
 
void valueChanged (const QVariant &value)
 
int select (Q_ULLONG id)
 
Q_ULLONG insert ()
 
int update ()
 
int markDelete ()
 
void selectionChanged (const Q_ULLONG)
 
- Public Slots inherited from aWidget
virtual QVariant value (const QString &name)
 
virtual QString value () const
 

Signals

void newSelectionFilter (const QString &)
 
void newSelectionGroupId (const Q_ULLONG)
 
- 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)
 

Public Member Functions

 wCatalogue (QWidget *parent=0, WFlags fl=0)
 
bool checkStructure ()
 
virtual void initObject (aDatabase *adb)
 
virtual QDialog * createEditor (QWidget *parent)
 
virtual QString displayString ()
 
virtual bool isContainer ()
 
virtual aObjectcreateDBObject (aCfgItem obj, aDatabase *adb)
 
virtual QToolBar * createToolBar (QMainWindow *parent)
 
void setFormMode (int Mode)
 
- 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 void widgetEditor ()
 
void init (aDatabase *adb)
 
bool getOpenEditor () const
 
void setOpenEditor (bool)
 
bool isInited ()
 
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 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 aDataFieldgetAttribute (const QString &name)
 
virtual int setAttribute (const QString &name, const aDataField *value)
 

Additional Inherited Members

- 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
 
- Protected Member Functions inherited from aWidget
virtual void updateProp ()
 
virtual void keyPressEvent (QKeyEvent *e)
 
- Protected Attributes inherited from aWidget
aObjectdbobj
 
- Properties inherited from aWidget
int Id
 
bool openEditor
 
int FormMode
 

Constructor & Destructor Documentation

◆ wCatalogue()

wCatalogue::wCatalogue ( QWidget *  parent = 0,
WFlags  fl = 0 
)

Member Function Documentation

◆ createDBObject()

aObject * wCatalogue::createDBObject ( aCfgItem  obj,
aDatabase adb 
)
virtual

Create aDocument database object.

Reimplemented from aWidget.

◆ createToolBar()

QToolBar * wCatalogue::createToolBar ( QMainWindow *  owner)
virtual

Create toolbar for Catalogue.

Reimplemented from aWidget.

◆ initObject()

void wCatalogue::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(), and valueChanged().

◆ valueChanged

void wCatalogue::valueChanged ( const QVariant &  value)
slot

Processed field value changed. Conected on signal valueChanged( const QVariant & ) for all wDBField insert in the widget. Decode field name and set new field value in database object. Emit signal value change with field name and value. Signal connectaed on aform slot, for future work.

Parameters
value- new field value.

References aCfg::find(), aCfg::objClass(), aCfg::parent(), aLog::print(), and aObject::SetValue().

Referenced by initObject().


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