The GUIClient is the main xTuple ERP desktop client window. More...
#include <guiclient.h>
Public Types | |
enum | WindowSystem { Unknown, X11, WIN, MAC, QWS, WINCE, S60 } |
Properties | |
QString | key |
Public Slots | |
void | initMenuBar () |
Build the application menus and toolbars based on the current user's preferences for menu and toolbar visibility. More... | |
void | sClearErrorMessages () |
Hide the error button in the main window's status bar. More... | |
void | sCustomCommand () |
The slot called whenever a custom command is invoked from the menu system. More... | |
void | sEmitNotifyHeard (const QString ¬e) |
A slot used by setUpListener() for responding to Postgres notifications. More... | |
void | sEmitSignal (QString, bool) |
A generic slot for extension scripts to emit their own signals. More... | |
void | sEmitSignal (QString, int) |
A generic slot for extension scripts to emit their own signals. More... | |
void | sEmitSignal (QString, QString) |
A generic slot for extension scripts to emit their own signals. More... | |
void | setWindowTitle () |
Build and set the title for the main application window. More... | |
void | sIdleTimeout () |
A slot to ask the user if s/he wants to log out. More... | |
void | sNewErrorMessage () |
Make the error button in the main window's status bar visible. More... | |
void | sReportError (const QString &) |
Write a message to the debugging log. More... | |
void | sSystemMessageAdded () |
Tell the current user if s/he has new Social Desktop messages. More... | |
void | sTick () |
This method is called approximately once per minute. More... | |
Data Update Slots | |
The GUIClient provides a number of slots that application windows call for the purpose of keeping other windows informed of data changes. Each slot typically emits one corresponding signal (see Data Update Signals below). To be a good citizen, each window that makes a change to an object should call the appropriate GUIClient slot. To keep informed of changes made by other windows, interested windows should connect to one of the Data Update Signals. For example: the salesOrder window tells other windows that the current Sales Order was modified by calling: // in salesOrder::save()
omfgThis->sSalesOrdersUpdated(_soheadid);
// in openSalesOrders::openSalesOrders()
| |
void | sAssortmentsUpdated (int, bool) |
void | sBBOMsUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Breeder Bills of Materials has changed. More... | |
void | sBOMsUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Bills of Materials has changed. More... | |
void | sBOOsUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Bills of Operations has changed. More... | |
void | sBankAccountsUpdated () |
This slot tells other open windows the definition or status of one or more Bank Accounts has changed. More... | |
void | sBankAdjustmentsUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Bank Adjustments has changed. This is the actual adjustments, not bank adjustment types. More... | |
void | sBillingSelectionUpdated (int, int) |
This slot tells other open windows the definition or status of one or more Billing Selections has changed. More... | |
void | sBudgetsUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Budgets has changed. More... | |
void | sCashReceiptsUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Cash Receipts has changed. More... | |
void | sChecksUpdated (int, int, bool) |
This slot tells other open windows the definition or status of one or more Bank Checks or Payments has changed. More... | |
void | sConfigureGLUpdated () |
This slot tells other open windows the G/L Configuration has changed. More... | |
void | sContractsUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Contracts has changed. More... | |
void | sCreditMemosUpdated () |
This slot tells other open windows the definition or status of one or more Credit Memos has changed. More... | |
void | sContactsUpdated (int) |
This slot tells other open windows the definition or status of one or more Contacts have changed. More... | |
void | sCrmAccountsUpdated (int) |
This slot tells other open windows the definition or status of one or more CRM Accounts has changed. More... | |
void | sCustomersUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Customers has changed. More... | |
void | sEmployeeUpdated (int) |
This slot tells other open windows the definition or status of one or more Employees has changed. More... | |
void | sGlSeriesUpdated () |
This slot tells other open windows the definition or status of one or more G/L Series has changed. More... | |
void | sInvoicesUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Invoices has changed. More... | |
void | sItemGroupsUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Item Groups has changed. More... | |
void | sItemsUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Items has changed. More... | |
void | sItemsitesUpdated () |
This slot tells other open windows the definition or status of one or more Itemsites has changed. More... | |
void | sPaymentsUpdated (int, int, bool) |
This slot tells other open windows the definition or status of one or more Bank Payments has changed. More... | |
void | sProjectsUpdated (int) |
This slot tells other open windows the definition or status of one or more Projects has changed. More... | |
void | sProspectsUpdated () |
This slot tells other open windows the definition or status of one or more Prospects has changed. More... | |
void | sPurchaseOrderReceiptsUpdated () |
This slot tells other open windows the definition or status of one or more Receipts has changed. More... | |
void | sPurchaseOrdersUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Purchase Orders has changed. More... | |
void | sPurchaseRequestsUpdated () |
This slot tells other open windows the definition or status of one or more Purchase Requests has changed. More... | |
void | sQOHChanged (int, bool) |
This slot tells other open windows the Quantity on Hand of one or more Item Sites has changed. More... | |
void | sQuotesUpdated (int) |
This slot tells other open windows the definition or status of one or more Quotes has changed. More... | |
void | sReportsChanged (int, bool) |
This slot tells other open windows one or more Report definitions has changed. More... | |
void | sReturnAuthorizationsUpdated () |
This slot tells other open windows the definition or status of one or more Return Authorizations has changed. More... | |
void | sSalesOrdersUpdated (int) |
This slot tells other open windows the definition or status of one or more Sales Orders has changed. More... | |
void | sSalesRepUpdated (int) |
This slot tells other open windows the definition or status of one or more Sales Representatives has changed. More... | |
void | sStandardPeriodsUpdated () |
This slot tells other open windows the definition or status of one or more Standard Periods has changed. More... | |
void | sTaxAuthsUpdated (int) |
This slot tells other open windows the definition or status of one or more Tax Authorities has changed. More... | |
void | sTransferOrdersUpdated (int) |
This slot tells other open windows the definition or status of one or more Transfer Orders has changed. More... | |
void | sUserUpdated (QString) |
This slot tells other open windows the definition or status of a User has changed. More... | |
void | sVendorsUpdated () |
This slot tells other open windows the definition or status of one or more Vendors has changed. More... | |
void | sVouchersUpdated () |
This slot tells other open windows the definition or status of one or more Vouchers has changed. More... | |
void | sWarehousesUpdated () |
This slot tells other open windows the definition or status of one or more Sites or Warehouses has changed. More... | |
void | sWorkCentersUpdated () |
This slot tells other open windows the definition or status of one or more Work Centers has changed. More... | |
void | sWorkOrderMaterialsUpdated (int, int, bool) |
This slot tells other open windows the definition or status of one or more Work Order Materials records has changed. More... | |
void | sWorkOrderOperationsUpdated (int, int, bool) |
This slot tells other open windows the definition or status of one or more Work Order Operations records has changed. More... | |
void | sWorkOrdersUpdated (int, bool) |
This slot tells other open windows the definition or status of one or more Work Orders has changed. More... | |
Signals | |
void | dbConnectionLost () |
void | emitSignal (QString, bool) |
void | emitSignal (QString, int) |
void | emitSignal (QString, QString) |
void | messageNotify () |
void | tick () |
Data Update Signals | |
Application windows can connect to the GUIClient to listen for specific data update events. There is a signal for each corresponding slot. For example, the opportunity window listens for updates to sales orders to keep its list current: | |
void | assortmentsUpdated (int pItemid, bool pLocal) |
void | bankAccountsUpdated () |
void | bankAdjustmentsUpdated (int pBankadjid, bool pLocal) |
void | bbomsUpdated (int pItemid, bool pLocal) |
void | billingSelectionUpdated (int pCoheadid, int pCoitemid) |
void | bomsUpdated (int pItemid, bool pLocal) |
void | boosUpdated (int pItemid, bool pLocal) |
void | budgetsUpdated (int pItemid, bool pLocal) |
void | cashReceiptsUpdated (int pCashrcptid, bool pLocal) |
void | checksUpdated (int pBankaccntid, int pCheckid, bool pLocal) |
void | configureGLUpdated () |
void | contractsUpdated (int pContrctid, bool pLocal) |
void | creditMemosUpdated () |
void | contactsUpdated (int cntctid) |
void | crmAccountsUpdated (int crmacctid) |
void | customersUpdated (int pCustid, bool pLocal) |
void | employeeUpdated (int id) |
void | glSeriesUpdated () |
void | invoicesUpdated (int pInvcheadid, bool pLocal) |
void | itemGroupsUpdated (int pItemgrpid, bool pLocal) |
void | itemsUpdated (int pItemid, bool pLocal) |
void | itemsitesUpdated () |
void | paymentsUpdated (int pBankaccntid, int pApselectid, bool pLocal) |
void | projectsUpdated (int prjid) |
void | prospectsUpdated () |
void | purchaseOrderReceiptsUpdated () |
void | purchaseOrdersUpdated (int pPoheadid, bool pLocal) |
void | purchaseRequestsUpdated () |
void | qohChanged (int pItemsiteid, bool pLocal) |
void | quotesUpdated (int pQuheadid, bool pLocal) |
void | reportsChanged (int pReportid, bool pLocal) |
void | returnAuthorizationsUpdated () |
void | salesOrdersUpdated (int pSoheadid, bool pLocal) |
void | salesRepUpdated (int id) |
void | standardPeriodsUpdated () |
void | systemMessageAdded () |
void | taxAuthsUpdated (int taxauthid) |
void | transferOrdersUpdated (int id) |
void | userUpdated (QString username) |
void | vendorsUpdated () |
void | vouchersUpdated () |
void | warehousesUpdated () |
void | workCentersUpdated () |
void | workOrderMaterialsUpdated (int pWoid, int pWomatlid, bool pLocal) |
void | workOrderOperationsUpdated (int pWoid, int pWooperid, bool pLocal) |
void | workOrdersUpdated (int pWoid, bool pLocal) |
Public Member Functions | |
GUIClient (const QString &, const QString &) | |
Create a new xTuple ERP main application window, set up menus, and otherwise initialize the application. More... | |
virtual | ~GUIClient () |
Q_INVOKABLE void | addDockWidget (Qt::DockWidgetArea area, QDockWidget *dockwidget) |
Adds the given dockwidget to the specified area. More... | |
Q_INVOKABLE void | addToolBar (Qt::ToolBarArea area, QToolBar *toolbar) |
Add the toolbar to the specified area in this main window. More... | |
Q_INVOKABLE void | addToolBar (QToolBar *toolbar) |
Add the given toolbar to the top toolbar dock. More... | |
Q_INVOKABLE void | addToolBarBreak (Qt::ToolBarArea area=Qt::TopToolBarArea) |
Add a toolbar break to the given area after all the other objects that are present. More... | |
Q_INVOKABLE QDoubleValidator * | costVal () |
Q_INVOKABLE QString | databaseURL () |
Q_INVOKABLE QIntValidator * | dayVal () |
const Q_INVOKABLE QDate | dbDate () |
const Q_INVOKABLE QDate | endOfTime () |
Q_INVOKABLE QFont | fixedFont () |
Q_INVOKABLE GUIClient::WindowSystem | getWindowSystem () |
Return an enumerated value indicating the windowing system for the current run-time environment. More... | |
Q_INVOKABLE void | handleNewWindow (QWidget *, Qt::WindowModality=Qt::NonModal, bool forceFloat=false) |
One way to open application windows from the C++ core. More... | |
Q_INVOKABLE int | hunspell_add (const QString word) |
Q_INVOKABLE int | hunspell_check (const QString word) |
Q_INVOKABLE int | hunspell_ignore (const QString word) |
Q_INVOKABLE void | hunspell_initialize () |
Initialize the spell-checking system. More... | |
Q_INVOKABLE bool | hunspell_ready () |
const Q_INVOKABLE QStringList | hunspell_suggest (const QString word) |
Q_INVOKABLE InputManager * | inputManager () |
Q_INVOKABLE QString | key () |
Q_INVOKABLE void | launchBrowser (QWidget *, const QString &) |
Open a web browser to a given URL. More... | |
void | loadScriptGlobals (QScriptEngine *engine) |
Load JavaScript global variables into a QScriptEngine. More... | |
Q_INVOKABLE QMenuBar * | menuBar () |
Q_INVOKABLE QDoubleValidator * | moneyVal () |
Q_INVOKABLE QDoubleValidator * | negMoneyVal () |
Q_INVOKABLE QDoubleValidator * | negPercentVal () |
Q_INVOKABLE QString | openrptVersion () |
Q_INVOKABLE QIntValidator * | orderVal () |
Q_INVOKABLE QDoubleValidator * | percentVal () |
Q_INVOKABLE void | populateCustomMenu (QMenu *, const QString &) |
Build a Custom submenu from the cmd table. More... | |
Q_INVOKABLE QDoubleValidator * | priceVal () |
Q_INVOKABLE QString | qtVersion () |
Q_INVOKABLE QDoubleValidator * | qtyPerVal () |
Q_INVOKABLE QDoubleValidator * | qtyVal () |
Q_INVOKABLE QDoubleValidator * | ratioVal () |
Q_INVOKABLE QDoubleValidator * | runTimeVal () |
Q_INVOKABLE QDoubleValidator * | salesVal () |
Q_INVOKABLE void | saveToolbarPositions () |
Save the position and visibility of application toolbars in user preferences. More... | |
Q_INVOKABLE QDoubleValidator * | scrapVal () |
Q_INVOKABLE void | setCentralWidget (QWidget *widget) |
Sets the given widget to be the main window's central widget. More... | |
Q_INVOKABLE void | setUpListener (const QString &) |
Subscribe to the named Postgres notification. More... | |
Q_INVOKABLE bool | shuttingDown () |
Q_INVOKABLE bool | singleCurrency () |
Return whether the database has only one currency or if more than one currency is defined. More... | |
const Q_INVOKABLE QDate | startOfTime () |
Q_INVOKABLE QFont | systemFont () |
Q_INVOKABLE void | tabifyDockWidget (QDockWidget *first, QDockWidget *second) |
Moves second dock widget on top of first dock widget, creating a tabbed docked area in the main window. More... | |
Q_INVOKABLE QDoubleValidator * | transQtyVal () |
Q_INVOKABLE QString | username () |
Q_INVOKABLE QString | version () |
Q_INVOKABLE QDoubleValidator * | weightVal () |
Q_INVOKABLE QWidgetList | windowList () |
Return the list of windows opened by GUIClient::handleNewWindow(). More... | |
Q_INVOKABLE QMdiArea * | workspace () |
Public Attributes | |
QMap< const QObject *, int > | _customCommands |
QString | _key |
MqlHash * | _mqlhash |
ReportHandler * | _reportHandler |
QString | _singleWindow |
TimeoutHandler * | _timeoutHandler |
Protected Slots | |
void | windowDestroyed (QObject *) |
Slot called when a window opened by GUIClient::handleNewWindow() emits destroyed(). More... | |
Protected Member Functions | |
void | addDocumentWatch (QString path, int id) |
void | closeEvent (QCloseEvent *) |
Save information about the current state of the application when the main window closes and perform final cleanup. More... | |
bool | removeDocumentWatch (QString path) |
void | showEvent (QShowEvent *) |
Perform extra application initialization. More... | |
Friends | |
class | XDialog |
class | XMainWindow |
class | xTupleGuiClientInterface |
class | XWidget |
The GUIClient is the main xTuple ERP desktop client window.
This should be a singleton object. It provides many utility functions and coordinates a number of global features and behaviors. For example, the GUIClient::inputManager() coordinates barcode scanning for the entire application instance.
|
read |
GUIClient::GUIClient | ( | const QString & | pDatabaseURL, |
const QString & | pUsername | ||
) |
Create a new xTuple ERP main application window, set up menus, and otherwise initialize the application.
Do not call this more than once or bad things will happen.
|
virtual |
void GUIClient::addDockWidget | ( | Qt::DockWidgetArea | area, |
QDockWidget * | dockwidget | ||
) |
Adds the given dockwidget to the specified area.
|
protected |
void GUIClient::addToolBar | ( | Qt::ToolBarArea | area, |
QToolBar * | toolbar | ||
) |
Add the toolbar to the specified area in this main window.
The toolbar is placed at the end of the current toolbar block (i.e. line). If the main window already manages the toolbar then it will only move the toolbar to area.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void GUIClient::addToolBar | ( | QToolBar * | toolbar | ) |
Add the given toolbar to the top toolbar dock.
void GUIClient::addToolBarBreak | ( | Qt::ToolBarArea | area = Qt::TopToolBarArea | ) |
Add a toolbar break to the given area after all the other objects that are present.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
protected |
Save information about the current state of the application when the main window closes and perform final cleanup.
Examples include the size and position of application windows and toolbar visibility.
|
signal |
|
signal |
|
signal |
|
inline |
|
signal |
|
signal |
|
signal |
|
inline |
|
inline |
|
signal |
|
inline |
|
signal |
|
signal |
|
signal |
|
signal |
|
inline |
|
inline |
GUIClient::WindowSystem GUIClient::getWindowSystem | ( | ) |
Return an enumerated value indicating the windowing system for the current run-time environment.
|
signal |
void GUIClient::handleNewWindow | ( | QWidget * | w, |
Qt::WindowModality | m = Qt::NonModal , |
||
bool | forceFloat = false |
||
) |
One way to open application windows from the C++ core.
This method takes care of setting window position and size; opening properly for free-floating, workspace, and tabbed modes; and preparing the window to clean up properly when it closes.
int GUIClient::hunspell_add | ( | const QString | word | ) |
int GUIClient::hunspell_check | ( | const QString | word | ) |
int GUIClient::hunspell_ignore | ( | const QString | word | ) |
void GUIClient::hunspell_initialize | ( | ) |
Initialize the spell-checking system.
Load the dictionary for the user's current language and the user's personal additions.
bool GUIClient::hunspell_ready | ( | ) |
const QStringList GUIClient::hunspell_suggest | ( | const QString | word | ) |
|
slot |
Build the application menus and toolbars based on the current user's preferences for menu and toolbar visibility.
|
inline |
|
signal |
|
signal |
|
signal |
|
signal |
|
inline |
void GUIClient::launchBrowser | ( | QWidget * | w, |
const QString & | url | ||
) |
Open a web browser to a given URL.
BROWSER
environment variable then Apple's open
if that doesn't work BROWSER
, followed by /usr/bin/firefox
and /usr/bin/mozilla
if that doesn't work void GUIClient::loadScriptGlobals | ( | QScriptEngine * | engine | ) |
Load JavaScript global variables into a QScriptEngine.
This method loads global variables and objects such as the script toolbox
, mainwindow
, metrics
, various constants, etc.
This should never be called directly.
QMenuBar * GUIClient::menuBar | ( | ) |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
signal |
|
inline |
void GUIClient::populateCustomMenu | ( | QMenu * | menu, |
const QString & | module | ||
) |
Build a Custom submenu from the cmd
table.
There are two ways to add items to the xTuple ERP menu system: write an extension script called initMenu
and install it as part of an extension package, or create Custom Commands using the cmd
and cmdarg
tables, either manually or through an extension package. GUIClient::populateCustomMenu() reads the cmd
table, creates a submenu called Custom for the named module if necessary, and adds the appropriate custom commands to the menu.
menu | the application menu to extend |
module | the value of the cmd_module column to filter on to find commands to add to the given menu |
|
inline |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
inline |
|
inline |
|
inline |
|
signal |
|
inline |
|
protected |
|
signal |
|
signal |
|
inline |
|
signal |
|
signal |
|
inline |
|
slot |
void GUIClient::saveToolbarPositions | ( | ) |
Save the position and visibility of application toolbars in user preferences.
|
slot |
This slot tells other open windows the definition or status of one or more Bank Accounts has changed.
|
slot |
This slot tells other open windows the definition or status of one or more Bank Adjustments has changed. This is the actual adjustments, not bank adjustment types.
|
slot |
This slot tells other open windows the definition or status of one or more Breeder Bills of Materials has changed.
pItemid | the internal id of the Item for which the Breeder Bill of Materials changed or -1 for multiple or unspecified Items |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Billing Selections has changed.
pCoheadid | the internal id of the Sales Order for which a Billing Selection changed or -1 for multiple or unspecified Sales Orders |
pCoitemid | the internal id of the Sales Order line item for which a Billing Selection changed or -1 for multiple or unspecified Sales Order lines |
|
slot |
This slot tells other open windows the definition or status of one or more Bills of Materials has changed.
pItemid | the internal id of the Item for which the Bill of Materials changed or -1 for multiple or unspecified Items |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Bills of Operations has changed.
pItemid | the internal id of the Item for which the Bill of Operations changed or -1 for multiple or unspecified Items |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Budgets has changed.
pItemid | the internal id of the Budget which changed or -1 for multiple or unspecified Budgets |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Cash Receipts has changed.
pCashrcptid | the Cash Receipt which changed or -1 for multiple or unspecified Cash Receipts |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Bank Checks or Payments has changed.
pBankaccntid | the internal id of the Bank Account from which a Payment was made or modified |
pCheckid | the internal id of the Check which changed or -1 for non-check payments, multiple Checks and Payments, or unspecified Checks and Payments |
pLocal | unknown purpose |
|
slot |
Hide the error button in the main window's status bar.
This is typically called when clearing the Database Log window.
|
slot |
This slot tells other open windows the G/L Configuration has changed.
|
slot |
This slot tells other open windows the definition or status of one or more Contacts have changed.
cntctid | the internal id of the Contact which changed or -1 for multiple or unspecified Contacts |
|
slot |
This slot tells other open windows the definition or status of one or more Contracts has changed.
pContrctid | the internal id of the Contract or -1 for multiple or unspecified Contracts |
pLocal | unknown purpose |
|
inline |
|
slot |
This slot tells other open windows the definition or status of one or more Credit Memos has changed.
|
slot |
This slot tells other open windows the definition or status of one or more CRM Accounts has changed.
crmacctid | the internal id of the CRM Account which changed or -1 for multiple or unspecified CRM Accounts |
|
slot |
The slot called whenever a custom command is invoked from the menu system.
This should never be called directly.
|
slot |
This slot tells other open windows the definition or status of one or more Customers has changed.
pCustid | the internal id of the Customer or -1 for multiple or unspecified Customers |
pLocal | unknown purpose |
|
slot |
A slot used by setUpListener() for responding to Postgres notifications.
This should not be called directly.
messageNotify
when notifications other than testNote
and messagePosted
occur
|
slot |
A generic slot for extension scripts to emit their own signals.
source | the script-defined source of this signal |
value | a boolean payload sent with the signal |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
slot |
A generic slot for extension scripts to emit their own signals.
source | the script-defined source of this signal |
id | an integer payload sent with the signal |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
slot |
A generic slot for extension scripts to emit their own signals.
source | the script-defined source of this signal |
message | a QString payload sent with the signal |
Example Usage:
|
slot |
This slot tells other open windows the definition or status of one or more Employees has changed.
id | the internal id of the Employee or -1 for multiple or unspecified Employees |
void GUIClient::setCentralWidget | ( | QWidget * | widget | ) |
Sets the given widget to be the main window's central widget.
Note: GUIClient takes ownership of the widget pointer and deletes it at the appropriate time.
void GUIClient::setUpListener | ( | const QString & | note | ) |
Subscribe to the named Postgres notification.
note | the name of the notification to listen for. |
|
slot |
Build and set the title for the main application window.
This title helps distinguish between copies of the application using different databases, database server hosts, users, and xTuple ERP versions.
|
slot |
This slot tells other open windows the definition or status of one or more G/L Series has changed.
|
protected |
Perform extra application initialization.
Primarily this involves running application extension initMenu
scripts and setting up the script engine debugger if necessary.
|
inline |
|
slot |
A slot to ask the user if s/he wants to log out.
This should only be called internally after IdleTimeout
minutes have passed without user activity. This value is a user preference.
bool GUIClient::singleCurrency | ( | ) |
Return whether the database has only one currency or if more than one currency is defined.
|
slot |
This slot tells other open windows the definition or status of one or more Invoices has changed.
pInvcheadid | the internal id of the Invoice which changed or -1 for multiple or unspecified Invoices |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Item Groups has changed.
pItemgrpid | the Item Group which changed or -1 for multiple or unspecified Item Groups |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Itemsites has changed.
|
slot |
This slot tells other open windows the definition or status of one or more Items has changed.
pItemid | the internal id of the Item or -1 for multiple or unspecified items |
pLocal | unknown purpose |
|
slot |
Make the error button in the main window's status bar visible.
This is typically called if there are new messages in the Database Log window. This should only be called internally.
|
slot |
This slot tells other open windows the definition or status of one or more Bank Payments has changed.
pBankaccntid | the internal id of the Bank Account from which a Payment was made or modified |
pApselectid | the internal id of the Payment Selection which changed or -1 for multiple or unspecified Payment Selections |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Projects has changed.
prjid | the internal id of the Project which changed or -1 for multiple or unspecified Projects |
|
slot |
This slot tells other open windows the definition or status of one or more Prospects has changed.
|
slot |
This slot tells other open windows the definition or status of one or more Receipts has changed.
The name sPurchaseORderReceiptsUpdated
is no longer accurate, as this applies to any receipt.
|
slot |
This slot tells other open windows the definition or status of one or more Purchase Orders has changed.
pPoheadid | the internal id of the Purchase Order that changed or -1 for multiple or unspecified Purchase Orders |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Purchase Requests has changed.
|
slot |
This slot tells other open windows the Quantity on Hand of one or more Item Sites has changed.
pItemsiteid | the Item Site for which the QOH changed or -1 for multiple or unspecified Item Sites |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Quotes has changed.
pQuheadid | the internal id of the Quote that changed or -1 for multiple or unspecified Quotes |
|
slot |
Write a message to the debugging log.
This will write to the DatabaseLog window if the debugging checkbox has been checked.
On Linux and Mac workstations this will also write to the Terminal window (stdout) if the application was started from the command line. It will otherwise write to the Console application on Macs. On Windows machines you can attach to the application with a debugger to catch this.
pError | The message to write |
|
slot |
This slot tells other open windows one or more Report definitions has changed.
pReportid | the internal id of the report that changed |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Return Authorizations has changed.
|
slot |
This slot tells other open windows the definition or status of one or more Sales Orders has changed.
pSoheadid | the internal id of the Sales Order that changed or -1 for multiple or unspecified Sales Orders |
|
slot |
This slot tells other open windows the definition or status of one or more Sales Representatives has changed.
id | the internal id of the Sales Rep that changed or -1 for multiple or unspecified Sales Reps |
|
slot |
This slot tells other open windows the definition or status of one or more Standard Periods has changed.
|
slot |
Tell the current user if s/he has new Social Desktop messages.
|
signal |
|
inline |
|
slot |
This slot tells other open windows the definition or status of one or more Tax Authorities has changed.
taxauthid | the internal id of the Tax Authority which changed or -1 for multiple or unspecified Tax AUthorities |
|
slot |
This method is called approximately once per minute.
It checks the database to see if there are any new events for the current user and updates the status bar accordingly. If there is an error retrieving this information then the function warns the user that the database connection as been lost.
Every few minutes, as determined by the updateTickInterval
metric, this method emits the tick
signal. This allows individual windows to track the passage of time or update themselves if desired without setting their own timers.
Handle aborted transactions more intelligently.
Make the check for lost database connections more intelligent.
If the database connection really is gone, try to reconnect.
|
slot |
This slot tells other open windows the definition or status of one or more Transfer Orders has changed.
id | the internal id of the Transfer Order which changed or -1 for multiple or unspecified Transfer Orders |
|
slot |
This slot tells other open windows the definition or status of a User has changed.
username | the username of the User which changed |
|
slot |
This slot tells other open windows the definition or status of one or more Vendors has changed.
|
slot |
This slot tells other open windows the definition or status of one or more Vouchers has changed.
|
slot |
This slot tells other open windows the definition or status of one or more Sites or Warehouses has changed.
|
slot |
This slot tells other open windows the definition or status of one or more Work Centers has changed.
|
slot |
This slot tells other open windows the definition or status of one or more Work Order Materials records has changed.
pWoid | the internal id of the Work Order that changed |
pWomatlid | the internal id of the W/O Materials record that changed |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Work Order Operations records has changed.
pWoid | the internal id of the Work Order that changed |
pWooperid | the internal id of the Work Order Operation that changed |
pLocal | unknown purpose |
|
slot |
This slot tells other open windows the definition or status of one or more Work Orders has changed.
pWoid | the internal id of the Work Order that changed or -1 for multiple or unspecified work orders |
pLocal | unknown purpose |
|
inline |
|
signal |
void GUIClient::tabifyDockWidget | ( | QDockWidget * | first, |
QDockWidget * | second | ||
) |
Moves second dock widget on top of first dock widget, creating a tabbed docked area in the main window.
|
signal |
|
signal |
|
signal |
|
inline |
|
inline |
|
signal |
|
signal |
|
inline |
|
signal |
|
signal |
|
inline |
|
protectedslot |
Slot called when a window opened by GUIClient::handleNewWindow() emits destroyed().
This should not be called directly.
QWidgetList GUIClient::windowList | ( | ) |
Return the list of windows opened by GUIClient::handleNewWindow().
|
signal |
|
signal |
|
signal |
|
signal |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
QMap<const QObject*,int> GUIClient::_customCommands |
QString GUIClient::_key |
MqlHash* GUIClient::_mqlhash |
ReportHandler* GUIClient::_reportHandler |
QString GUIClient::_singleWindow |
TimeoutHandler* GUIClient::_timeoutHandler |
Generated on Fri Apr 9 2021 | xTuple ERP Programmer Reference, Version 6.0.0 | 1.8.17 |