#include <QTimer>
#include <QAction>
#include <QVBoxLayout>
#include <QStatusBar>
#include <QWorkspace>
#include <QDateTime>
#include <QPushButton>
#include <QCheckBox>
#include <QValidator>
#include <QMenuBar>
#include <QMenu>
#include <QToolBar>
#include <QSqlDatabase>
#include <QImage>
#include <QSplashScreen>
#include <QMessageBox>
#include <QApplication>
#include <QCursor>
#include <QDir>
#include <QSqlError>
#include <QPixmap>
#include <QFrame>
#include <QTextStream>
#include <QCloseEvent>
#include <QMainWindow>
#include <QDesktopWidget>
#include <QDebug>
#include <QScriptEngine>
#include <QScriptValue>
#include <QBuffer>
#include <QDesktopServices>
#include <QScriptEngineDebugger>
#include <parameter.h>
#include <dbtools.h>
#include <quuencode.h>
#include <xvariant.h>
#include "xtsettings.h"
#include "xuiloader.h"
#include "guiclient.h"
#include "version.h"
#include "xmainwindow.h"
#include "xdialog.h"
#include "errorLog.h"
#include "errorReporter.h"
#include "systemMessage.h"
#include "menuProducts.h"
#include "menuInventory.h"
#include "menuSchedule.h"
#include "menuManufacture.h"
#include "menuPurchase.h"
#include "menuCRM.h"
#include "menuSales.h"
#include "menuAccounting.h"
#include "menuSystem.h"
#include "timeoutHandler.h"
#include "idleShutdown.h"
#include "inputManager.h"
#include "xdoublevalidator.h"
#include "distributeInventory.h"
#include "documents.h"
#include "splashconst.h"
#include "scripttoolbox.h"
#include "menubutton.h"
#include "setup.h"
#include "setupscriptapi.h"
#include <SaveSizePositionEventFilter.h>
Defines | |
#define | CHECK_REGISTERED 0 |
Functions | |
void | audioAccept () |
void | audioReject () |
void | collectMetrics () |
QScriptValue | distributeInventorySeriesAdjust (QScriptContext *context, QScriptEngine *engine) |
void | message (const QString &pMessage, int pTimeout) |
void | resetMessage () |
int | systemError (QWidget *pParent, const QString &pMessage) |
int | systemError (QWidget *pParent, const QString &pMessage, const QString &pFileName, const int lineNumber) |
QString | translationFile (QString localestr, const QString component) |
Find the translation file for a given locale. | |
QString | translationFile (QString localestr, const QString component, QString &version) |
Find the translation file for a given locale. | |
Variables | |
bool | _evaluation |
QList< QString > | _hotkeyList |
Metrics * | _metrics = 0 |
Metricsenc * | _metricsenc = 0 |
Preferences * | _preferences = 0 |
Privileges * | _privileges = 0 |
QSplashScreen * | _splash |
GUIClient * | omfgThis |
#define CHECK_REGISTERED 0 |
void audioAccept | ( | ) |
void audioReject | ( | ) |
void collectMetrics | ( | ) |
QScriptValue distributeInventorySeriesAdjust | ( | QScriptContext * | context, |
QScriptEngine * | engine | ||
) |
void resetMessage | ( | ) |
int systemError | ( | QWidget * | pParent, |
const QString & | pMessage | ||
) |
int systemError | ( | QWidget * | pParent, |
const QString & | pMessage, | ||
const QString & | pFileName, | ||
const int | lineNumber | ||
) |
QString translationFile | ( | QString | localestr, |
const QString | component | ||
) |
Find the translation file for a given locale.
Looks for the translation file for a particular locale in all of the standard places xTuple ERP knows to look. The first file found is returned even if it isn't the most complete, specific, or up-to-date.
localestr | The locale to look for, in standard format. |
component | The application component for which to find a translation file (empty string means core) |
QString translationFile | ( | QString | localestr, |
const QString | component, | ||
QString & | version | ||
) |
Find the translation file for a given locale.
This overload should be used primarily by the Update Manager.
Looks for the translation file for a particular locale in all of the standard places xTuple ERP knows to look. The first file found is returned even if it isn't the most complete, specific, or up-to-date. If translation file is found for the locale, this overload of translationFile(QString) tries to extract a version number from the translation file and pass it back to the caller.
The base translation file is expected to have a Version
string in the component context. Translations from that base translation file are expected to translate the Version
string to something meaningful that can be put in the compatibility matrix. One suggestion is major.minor.percent-complete
, where major
and minor
are component release numbers and percent-complete indicates how much of the base translation file has been completed.
[in] | localestr | The locale to look for, in standard format. |
[in] | component | The application component for which to find a translation file (empty string means core) |
[out] | version | The version string found in the translation file or an empty string if none was found. |
bool _evaluation |
Metricsenc* _metricsenc = 0 |
Preferences* _preferences = 0 |
Privileges* _privileges = 0 |
Generated on Mon Jan 23 2012 12:22:29 | xTuple ERP Programmer Reference, Version 3.8.0 | 1.7.6.1 |