|
Ananas Library
0.9.5
|
#include <wjournal.h>
Public Slots | |
| int | select (Q_ULLONG id) |
| Q_ULLONG | insert () |
| int | update () |
| int | view () |
| int | markDelete () |
| int | copy () |
Public Slots inherited from aWidget | |
| virtual QVariant | value (const QString &name) |
| virtual QString | value () const |
Public Member Functions | |
| wJournal (QWidget *parent=0, WFlags fl=0) | |
| bool | checkStructure () |
| virtual void | initObject (aDatabase *adb) |
| virtual QToolBar * | createToolBar (QMainWindow *parent) |
| virtual QDialog * | createEditor (QWidget *parent) |
| virtual QString | displayString () |
| virtual bool | isContainer () |
| virtual aObject * | createDBObject (aCfgItem obj, aDatabase *adb) |
| virtual void | toolbarActionEnabled () |
| int | wdbTableRows () |
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) |
| 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) |
Public Attributes | |
| QAction * | newAction |
| QAction * | editAction |
| QAction * | viewAction |
| QAction * | deleteAction |
| QAction * | copyAction |
Public Attributes inherited from aWidget | |
| aDatabase * | db |
| aCfg * | md |
| aEngine * | engine |
Protected Slots | |
| void | setFilterByDate () |
Additional Inherited Members | |
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) |
Protected Member Functions inherited from aWidget | |
| virtual void | updateProp () |
| virtual void | keyPressEvent (QKeyEvent *e) |
Protected Attributes inherited from aWidget | |
| aObject * | dbobj |
Properties inherited from aWidget | |
| int | Id |
| bool | openEditor |
| int | FormMode |
Visual object for work with Journals of Documents.
Create aDocJournal database object.
Reimplemented from aWidget.
|
virtual |
Create toolbar for Journal.
Reimplemented from aWidget.
|
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 aDatabase::cfg, aWidget::initObject(), and aLog::print().
|
virtual |
Establishes availability of buttons of removal, viewing, editing and copying in toolbar depending on quantity of lines in the table
References wdbTableRows().
| int wJournal::wdbTableRows | ( | ) |
Returns num rows in the table
Referenced by toolbarActionEnabled().
1.8.14