#include <scripttoolbox.h>
Public Member Functions | |
| ScriptToolbox (QScriptEngine *engine) | |
| virtual | ~ScriptToolbox () |
| Q_INVOKABLE int | decimalPlaces (QString p) |
| Q_INVOKABLE QString | formatCost (double val, int curr=-1) |
| Q_INVOKABLE QString | formatDate (const QDate &pDate) |
| Q_INVOKABLE QString | formatExtPrice (double val, int curr=-1) |
| Q_INVOKABLE QString | formatMoney (double val, int curr=-1, int extra=0) |
| Q_INVOKABLE QString | formatNumber (double value, int decimals) |
| Q_INVOKABLE QString | formatPercent (double val) |
| Q_INVOKABLE QString | formatPurchPrice (double val, int curr=-1) |
| Q_INVOKABLE QString | formatQty (double val) |
| Q_INVOKABLE QString | formatQtyPer (double val) |
| Q_INVOKABLE QString | formatSalesPrice (double val, int curr=-1) |
| Q_INVOKABLE QString | formatUOMRatio (double val) |
| Q_INVOKABLE QString | formatWeight (double val) |
| Q_INVOKABLE QColor | namedColor (QString name) |
Public Slots | |
| void | addColumnXTreeWidget (QWidget *tree, const QString &, int, int, bool=true, const QString=QString(), const QString=QString()) |
| bool | copyFile (const QString &oldName, const QString &newName) |
| bool | coreDisconnect (QObject *sender, const QString &signal, QObject *receiver, const QString &method) |
| QObject * | costVal () |
| QObject * | createGridLayout () |
| QObject * | createLayout (const QString &className, QWidget *parent, const QString &name=QString()) |
| QWidget * | createWidget (const QString &className, QWidget *parent=0, const QString &name=QString()) |
| QObject * | dayVal () |
| XSqlQuery | executeBegin () |
| XSqlQuery | executeCommit () |
| XSqlQuery | executeDbQuery (const QString &group, const QString &name, const ParameterList ¶ms) |
| XSqlQuery | executeDbQuery (const QString &group, const QString &name) |
| XSqlQuery | executeQuery (const QString &query, const ParameterList ¶ms) |
| XSqlQuery | executeQuery (const QString &query) |
| XSqlQuery | executeRollback () |
| QString | fileDialog (QWidget *parent, const QString &caption, const QString &dir, const QString &filter, int fileModeSel, int acceptModeSel) |
| bool | fileExists (const QString &name) |
| QObject * | getCreditCardProcessor () |
| QString | getCurrentDir () |
| QString | getFileName (const QString &path) |
| QString | getHomeDir () |
| QString | getTempDir () |
| QWidget * | lastWindow () const |
| void | layoutBoxInsertWidget (QObject *, int index, QWidget *, int stretch=0, int alignment=0) |
| void | layoutGridAddLayout (QObject *, QObject *, int row, int column, int alignment=0) |
| void | layoutGridAddWidget (QObject *, QWidget *, int fromRow, int fromColumn, int rowSpan, int columnSpan, int alignment=0) |
| void | layoutGridAddWidget (QObject *, QWidget *, int row, int column, int alignment=0) |
| void | layoutStackedInsertWidget (QObject *, int index, QWidget *) |
| void | listProperties (const QScriptValue &obj) const |
| void | loadQWebView (QWidget *webView, const QString &url) |
| QWidget * | loadUi (const QString &screenName, QWidget *parent=0) |
| bool | makePath (const QString &mkPath, const QString &rootPath) |
| int | menuActionCount (QObject *menu) |
| QObject * | menuAddAction (QObject *menu, const QString &text, const bool enabled=true) |
| QObject * | menuAddMenu (QObject *menu, const QString &text, const QString &name=QString()) |
| QObject * | menuAddSeparator (QObject *menu) |
| QObject * | menuInsertAction (QObject *menu, QObject *before, const QString &name=QString(), const bool enabled=true) |
| QObject * | menuInsertMenu (QObject *menu, QObject *before, const QString &name) |
| QObject * | menuInsertSeparator (QObject *menu, QObject *before) |
| void | menuRemove (QObject *menu, QObject *action) |
| int | messageBox (const QString &type, QWidget *parent, const QString &title, const QString &text, int buttons=0x00000400, int defaultButton=0x00000000) |
| QObject * | moneyVal () |
| QObject * | negMoneyVal () |
| void | openUrl (const QString &fileUrl) |
| QWidget * | openWindow (const QString pname, QWidget *parent=0, Qt::WindowModality modality=Qt::NonModal, Qt::WindowFlags flags=0) |
| QObject * | orderVal () |
| QObject * | percentVal () |
| void | populateXTreeWidget (QWidget *tree, XSqlQuery pSql, bool=FALSE) |
| QObject * | priceVal () |
| bool | printReport (const QString &name, const ParameterList ¶ms, const bool preview) |
| bool | printReport (const QString &name, const ParameterList ¶ms, const QString &pdfFilename=QString::null) |
| bool | printReportCopies (const QString &name, const ParameterList ¶ms, int copies) |
| QObject * | qtyPerVal () |
| QObject * | qtyVal () |
| QObject * | ratioVal () |
| bool | removeFile (const QString &name) |
| bool | removePath (const QString &rmPath, const QString &rootPath) |
| bool | renameFile (const QString &oldName, const QString &newName) |
| QString | rootPath () |
| QObject * | runTimeVal () |
| int | saveCreditCard (QWidget *parent, int custId, QString ccName, QString ccAddress1, QString ccAddress2, QString ccCity, QString ccState, QString ccZip, QString ccCountry, QString ccNumber, QString ccType, QString ccExpireMonth, QString ccExpireYear, int ccId=0, bool ccActive=true) |
| QString | storedProcErrorLookup (const QString proc, const int result) |
| int | tabCount (QWidget *tab) |
| int | tabInsertTab (QWidget *tab, int idx, QWidget *page, const QString &text) |
| void | tabRemoveTab (QWidget *tab, int idx) |
| void | tabSetTabEnabled (QWidget *tab, int idx, bool enable) |
| void | tabSetTabText (QWidget *tab, int idx, const QString &text) |
| int | tabTabIndex (QWidget *tab, QWidget *page) |
| QString | tabtabText (QWidget *tab, int idx) |
| QWidget * | tabWidget (QWidget *tab, int idx) |
| QString | textStreamRead (const QString &name) |
| bool | textStreamWrite (const QString &name, const QString &WriteText) |
| QObject * | TransQtyVal () |
| QObject * | weightVal () |
| QObject * | widgetGetLayout (QWidget *w) |
Static Public Member Functions | |
| static void | setLastWindow (QWidget *lw) |
| ScriptToolbox::ScriptToolbox | ( | QScriptEngine * | engine | ) |
| ScriptToolbox::~ScriptToolbox | ( | ) | [virtual] |
| void ScriptToolbox::addColumnXTreeWidget | ( | QWidget * | tree, | |
| const QString & | pString, | |||
| int | pWidth, | |||
| int | pAlignment, | |||
| bool | pVisible = true, |
|||
| const QString | pEditColumn = QString(), |
|||
| const QString | pDisplayColumn = QString() | |||
| ) | [slot] |
| bool ScriptToolbox::coreDisconnect | ( | QObject * | sender, | |
| const QString & | signal, | |||
| QObject * | receiver, | |||
| const QString & | method | |||
| ) | [slot] |
| QObject * ScriptToolbox::costVal | ( | ) | [slot] |
| QObject * ScriptToolbox::createGridLayout | ( | ) | [slot] |
| QObject * ScriptToolbox::createLayout | ( | const QString & | className, | |
| QWidget * | parent, | |||
| const QString & | name = QString() | |||
| ) | [slot] |
| QWidget * ScriptToolbox::createWidget | ( | const QString & | className, | |
| QWidget * | parent = 0, |
|||
| const QString & | name = QString() | |||
| ) | [slot] |
| QObject * ScriptToolbox::dayVal | ( | ) | [slot] |
| Q_INVOKABLE int ScriptToolbox::decimalPlaces | ( | QString | p | ) | [inline] |
| XSqlQuery ScriptToolbox::executeBegin | ( | ) | [slot] |
| XSqlQuery ScriptToolbox::executeCommit | ( | ) | [slot] |
| XSqlQuery ScriptToolbox::executeDbQuery | ( | const QString & | group, | |
| const QString & | name, | |||
| const ParameterList & | params | |||
| ) | [slot] |
| XSqlQuery ScriptToolbox::executeQuery | ( | const QString & | query, | |
| const ParameterList & | params | |||
| ) | [slot] |
| XSqlQuery ScriptToolbox::executeQuery | ( | const QString & | query | ) | [slot] |
| XSqlQuery ScriptToolbox::executeRollback | ( | ) | [slot] |
| QString ScriptToolbox::fileDialog | ( | QWidget * | parent, | |
| const QString & | caption, | |||
| const QString & | dir, | |||
| const QString & | filter, | |||
| int | fileModeSel, | |||
| int | acceptModeSel | |||
| ) | [slot] |
| bool ScriptToolbox::fileExists | ( | const QString & | name | ) | [slot] |
| Q_INVOKABLE QString ScriptToolbox::formatCost | ( | double | val, | |
| int | curr = -1 | |||
| ) | [inline] |
| Q_INVOKABLE QString ScriptToolbox::formatExtPrice | ( | double | val, | |
| int | curr = -1 | |||
| ) | [inline] |
| Q_INVOKABLE QString ScriptToolbox::formatMoney | ( | double | val, | |
| int | curr = -1, |
|||
| int | extra = 0 | |||
| ) | [inline] |
| Q_INVOKABLE QString ScriptToolbox::formatNumber | ( | double | value, | |
| int | decimals | |||
| ) | [inline] |
| Q_INVOKABLE QString ScriptToolbox::formatPercent | ( | double | val | ) | [inline] |
| Q_INVOKABLE QString ScriptToolbox::formatPurchPrice | ( | double | val, | |
| int | curr = -1 | |||
| ) | [inline] |
| Q_INVOKABLE QString ScriptToolbox::formatQty | ( | double | val | ) | [inline] |
| Q_INVOKABLE QString ScriptToolbox::formatQtyPer | ( | double | val | ) | [inline] |
| Q_INVOKABLE QString ScriptToolbox::formatSalesPrice | ( | double | val, | |
| int | curr = -1 | |||
| ) | [inline] |
| Q_INVOKABLE QString ScriptToolbox::formatUOMRatio | ( | double | val | ) | [inline] |
| Q_INVOKABLE QString ScriptToolbox::formatWeight | ( | double | val | ) | [inline] |
| QObject * ScriptToolbox::getCreditCardProcessor | ( | ) | [slot] |
| QString ScriptToolbox::getCurrentDir | ( | ) | [slot] |
| QString ScriptToolbox::getHomeDir | ( | ) | [slot] |
| QString ScriptToolbox::getTempDir | ( | ) | [slot] |
| QWidget * ScriptToolbox::lastWindow | ( | ) | const [slot] |
| void ScriptToolbox::layoutBoxInsertWidget | ( | QObject * | obj, | |
| int | index, | |||
| QWidget * | widget, | |||
| int | stretch = 0, |
|||
| int | alignment = 0 | |||
| ) | [slot] |
| void ScriptToolbox::layoutGridAddLayout | ( | QObject * | parent, | |
| QObject * | child, | |||
| int | row, | |||
| int | column, | |||
| int | alignment = 0 | |||
| ) | [slot] |
| void ScriptToolbox::layoutGridAddWidget | ( | QObject * | obj, | |
| QWidget * | widget, | |||
| int | fromRow, | |||
| int | fromColumn, | |||
| int | rowSpan, | |||
| int | columnSpan, | |||
| int | alignment = 0 | |||
| ) | [slot] |
| void ScriptToolbox::layoutGridAddWidget | ( | QObject * | obj, | |
| QWidget * | widget, | |||
| int | row, | |||
| int | column, | |||
| int | alignment = 0 | |||
| ) | [slot] |
| void ScriptToolbox::listProperties | ( | const QScriptValue & | obj | ) | const [slot] |
| int ScriptToolbox::menuActionCount | ( | QObject * | menu | ) | [slot] |
| QObject * ScriptToolbox::menuAddAction | ( | QObject * | menu, | |
| const QString & | text, | |||
| const bool | enabled = true | |||
| ) | [slot] |
| QObject * ScriptToolbox::menuAddMenu | ( | QObject * | menu, | |
| const QString & | text, | |||
| const QString & | name = QString() | |||
| ) | [slot] |
| QObject * ScriptToolbox::menuInsertAction | ( | QObject * | menu, | |
| QObject * | before, | |||
| const QString & | name = QString(), |
|||
| const bool | enabled = true | |||
| ) | [slot] |
| QObject * ScriptToolbox::menuInsertMenu | ( | QObject * | menu, | |
| QObject * | before, | |||
| const QString & | name | |||
| ) | [slot] |
| int ScriptToolbox::messageBox | ( | const QString & | type, | |
| QWidget * | parent, | |||
| const QString & | title, | |||
| const QString & | text, | |||
| int | buttons = 0x00000400, |
|||
| int | defaultButton = 0x00000000 | |||
| ) | [slot] |
| QObject * ScriptToolbox::moneyVal | ( | ) | [slot] |
| QObject * ScriptToolbox::negMoneyVal | ( | ) | [slot] |
| void ScriptToolbox::openUrl | ( | const QString & | fileUrl | ) | [slot] |
| QWidget * ScriptToolbox::openWindow | ( | const QString | pname, | |
| QWidget * | parent = 0, |
|||
| Qt::WindowModality | modality = Qt::NonModal, |
|||
| Qt::WindowFlags | flags = 0 | |||
| ) | [slot] |
| QObject * ScriptToolbox::orderVal | ( | ) | [slot] |
| QObject * ScriptToolbox::percentVal | ( | ) | [slot] |
| void ScriptToolbox::populateXTreeWidget | ( | QWidget * | tree, | |
| XSqlQuery | pSql, | |||
| bool | pUseAltId = FALSE | |||
| ) | [slot] |
| QObject * ScriptToolbox::priceVal | ( | ) | [slot] |
| bool ScriptToolbox::printReport | ( | const QString & | name, | |
| const ParameterList & | params, | |||
| const bool | preview | |||
| ) | [slot] |
| bool ScriptToolbox::printReport | ( | const QString & | name, | |
| const ParameterList & | params, | |||
| const QString & | pdfFilename = QString::null | |||
| ) | [slot] |
| bool ScriptToolbox::printReportCopies | ( | const QString & | name, | |
| const ParameterList & | params, | |||
| int | copies | |||
| ) | [slot] |
| QObject * ScriptToolbox::qtyPerVal | ( | ) | [slot] |
| QObject * ScriptToolbox::qtyVal | ( | ) | [slot] |
| QObject * ScriptToolbox::ratioVal | ( | ) | [slot] |
| bool ScriptToolbox::removeFile | ( | const QString & | name | ) | [slot] |
| QString ScriptToolbox::rootPath | ( | ) | [slot] |
| QObject * ScriptToolbox::runTimeVal | ( | ) | [slot] |
| int ScriptToolbox::saveCreditCard | ( | QWidget * | parent, | |
| int | custId, | |||
| QString | ccName, | |||
| QString | ccAddress1, | |||
| QString | ccAddress2, | |||
| QString | ccCity, | |||
| QString | ccState, | |||
| QString | ccZip, | |||
| QString | ccCountry, | |||
| QString | ccNumber, | |||
| QString | ccType, | |||
| QString | ccExpireMonth, | |||
| QString | ccExpireYear, | |||
| int | ccId = 0, |
|||
| bool | ccActive = true | |||
| ) | [slot] |
| void ScriptToolbox::setLastWindow | ( | QWidget * | lw | ) | [static] |
| int ScriptToolbox::tabCount | ( | QWidget * | tab | ) | [slot] |
| int ScriptToolbox::tabInsertTab | ( | QWidget * | tab, | |
| int | idx, | |||
| QWidget * | page, | |||
| const QString & | text | |||
| ) | [slot] |
| void ScriptToolbox::tabRemoveTab | ( | QWidget * | tab, | |
| int | idx | |||
| ) | [slot] |
| void ScriptToolbox::tabSetTabEnabled | ( | QWidget * | tab, | |
| int | idx, | |||
| bool | enable | |||
| ) | [slot] |
| QObject * ScriptToolbox::TransQtyVal | ( | ) | [slot] |
| QObject * ScriptToolbox::weightVal | ( | ) | [slot] |
| Generated on Mon Nov 30 09:58:03 2009 | xTuple ERP Programmer Reference, Version 3.4.0RC |
1.6.1
|