Ananas Library  0.9.5
Public Slots | Public Member Functions | Public Attributes | Protected Slots | List of all members
wJournal Class Reference

#include <wjournal.h>

Inheritance diagram for wJournal:
aWidget

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 aObjectcreateDBObject (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)
 
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)
 
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)
 

Public Attributes

QAction * newAction
 
QAction * editAction
 
QAction * viewAction
 
QAction * deleteAction
 
QAction * copyAction
 
- Public Attributes inherited from aWidget
aDatabasedb
 
aCfgmd
 
aEngineengine
 

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 aWidgetparentContainer (QWidget *w)
 
static aFormparentForm (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
aObjectdbobj
 
- Properties inherited from aWidget
int Id
 
bool openEditor
 
int FormMode
 

Detailed Description

Visual object for work with Journals of Documents.

Member Function Documentation

◆ createDBObject()

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

Create aDocJournal database object.

Reimplemented from aWidget.

◆ createToolBar()

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

Create toolbar for Journal.

Reimplemented from aWidget.

◆ initObject()

void wJournal::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 aDatabase::cfg, aWidget::initObject(), and aLog::print().

◆ toolbarActionEnabled()

void wJournal::toolbarActionEnabled ( )
virtual

Establishes availability of buttons of removal, viewing, editing and copying in toolbar depending on quantity of lines in the table

References wdbTableRows().

◆ wdbTableRows()

int wJournal::wdbTableRows ( )

Returns num rows in the table

Referenced by toolbarActionEnabled().


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