Ananas Library
0.9.5
|
#include <engine.h>
Public Slots | |
QString | cfgname () |
QString | Time () |
QString | Date () |
void | Exit () |
void | Message (int n, const QString &msg) |
void | StatusMessage (const QString &msg) |
void | StatusMessage (const QString &msg, const int &pos) |
void | settimer (int sec, QString proc) |
aForm * | OpenForm (QString fname, int mode=0, aObject *selecter=0, bool modal=false) |
aForm * | OpenForm (QString fname, int mode, int ido, aObject *selecter=0, bool modal=false) |
Create and open new form. More... | |
QVariant | value (const QString &name) |
void | setValue (const QString &name, QVariant value=QVariant::Invalid) |
void | on_MenuBar (int id) |
void | execAction (aCfgItem &act, QObject *context=0) |
aDataField * | enterValue (const QString &FieldType, const QString &title="") |
bool | startTransaction () |
bool | commitTransaction () |
bool | rollbackTransaction () |
Signals | |
void | statusMessage (const QString &msg) |
void | statusMessage (const QString &msg, const int &pos) |
void | statusIcon (const int &status) |
void | event (const QString &source, const QString &data) |
Public Member Functions | |
aEngine () | |
virtual | ~aEngine () |
virtual bool | init (const QString &rcfile) |
virtual void | done () |
void | openEmbedCatalogueEditor (int oid, QWidget *parent=NULL, const bool toSelect=true) |
QString | sourcePreprocessor (const QString &src) |
void | timerEvent (QTimerEvent *e) |
int | on_systemstart () |
int | on_systemstop () |
aForm * | openForm (int oid, int fid=0, int defaultfor=1, int mode=0, ANANAS_UID id=0, aWidget *caller=0, bool modal=false) |
Create and open new form. More... | |
Public Attributes | |
aDatabase | db |
aCfg * | md |
QWidget * | ws |
aWindowsList * | wl |
QSInterpreter * | code |
QSProject | project |
int | next_obj_id |
Ananas-engine object.
aEngine::aEngine | ( | ) |
Constructor.
References md, and next_obj_id.
|
virtual |
Destructor
|
slot |
Stub.
|
slot |
Commit transaction
References db.
|
virtual |
Init engine. Init script subsystem, load global module.
References aDatabase::cfg, code, db, aCfg::find(), aDatabase::init(), md, project, and aCfg::sText().
|
slot |
Outputs messages.
int aEngine::on_systemstart | ( | ) |
Called on system start.
References project.
int aEngine::on_systemstop | ( | ) |
Called on system stop.
References project.
void aEngine::openEmbedCatalogueEditor | ( | int | oid, |
QWidget * | parent = NULL , |
||
const bool | toSelect = true |
||
) |
Create and open new embedded catalog editor form.
oid | - catalogue md id, |
parent | - parent wField object, |
toSelect | - Mode. true - for select, false - for edit |
References db, wCatalogEditor::edit(), wCatalogEditor::initCat(), wCatalogEditor::select(), and ws.
Referenced by wField::fieldSelect().
aForm * aEngine::openForm | ( | int | formOwnerId, |
int | formId = 0 , |
||
int | defaultfor = 1 , |
||
int | mode = 0 , |
||
ANANAS_UID | id = 0 , |
||
aWidget * | caller = 0 , |
||
bool | modal = false |
||
) |
Create and open new form.
formOwnerId | - form owner md id |
formId | - form md id |
defaultfor | - form use mode |
mode | - not use yet |
id | - database id of opening object |
caller | - caller widget |
modal | - is window modal |
References db, aWindowsList::find(), aCfg::find(), aWindowsList::get(), aCfg::getDefaultFormId(), md, aForm::New(), aLog::print(), aForm::Select(), aForm::setMode(), aForm::SetReadOnly(), aForm::Show(), wl, and ws.
Referenced by wDBTable::EditElement(), wField::fieldSelect(), and OpenForm().
|
slot |
Create and open new form.
formName | - form name |
mode | - form use mode |
selector | - database id of opening object |
modal | - is window modal |
References aCfg::attr(), aCfg::find(), md, openForm(), aCfg::parent(), and aObject::sysValue().
|
slot |
Discard changes made in transaction
References db.
|
slot |
Starts transaction if driver supports
References db.
|
slot |
Outputs status messages.
|
slot |
Outputs status messages in target label.
void aEngine::timerEvent | ( | QTimerEvent * | e | ) |
Stub.
QSInterpreter* aEngine::code |
link to script interpreter.
Referenced by init().
aDatabase aEngine::db |
database connection.
Referenced by aForm::aForm(), aObjectsFactory::aObjectsFactory(), commitTransaction(), init(), openEmbedCatalogueEditor(), openForm(), rollbackTransaction(), and startTransaction().
aCfg* aEngine::md |
link to metadata.
Referenced by aEngine(), aForm::aForm(), aReport::aReport(), init(), openForm(), and OpenForm().
int aEngine::next_obj_id |
number to form
Referenced by aEngine().
QSProject aEngine::project |
link to script project.
Referenced by aForm::init(), init(), on_systemstart(), on_systemstop(), aForm::Show(), and aForm::SignIn().
aWindowsList* aEngine::wl |
link to windowlist.
Referenced by aForm::Close(), aForm::init(), aForm::New(), openForm(), and aForm::Select().
QWidget* aEngine::ws |
link to workspace.
Referenced by aReport::aReport(), aObjectsFactory::create(), openEmbedCatalogueEditor(), and openForm().