Classes | Macros | Enumerations | Functions | Variables
guiclient.h File Reference
#include <QDate>
#include <QDateTime>
#include <QMainWindow>
#include <QMdiArea>
#include <QTimer>
#include <QAction>
#include <QCloseEvent>
#include <QFileSystemWatcher>
#include <QList>
#include <QPixmap>
#include <QMenu>
#include <QMenuBar>
#include <xsqlquery.h>
#include "../common/format.h"
#include "../hunspell/hunspell.hxx"
#include "../common/metrics.h"
#include "../common/metricsenc.h"

Classes

class  Action
 
class  GUIClient
 

Macros

#define cAllCounts   0x04
 
#define cCopy   4
 
#define cEdit   2
 
#define cItemloc   0x02
 
#define cLocation   0x01
 
#define cNew   1
 
#define cNoReportDefinition   -2
 
#define cPost   6
 
#define cPostedCounts   0x01
 
#define cRelease   5
 
#define cReplace   7
 
#define cTransAdjCounts   0x08
 
#define cTransAll   0xFF
 
#define cTransIssues   0x02
 
#define cTransReceipts   0x01
 
#define cTransScraps   0x20
 
#define cTransShipments   0x04
 
#define cTransTransfers   0x10
 
#define cUnpostedCounts   0x02
 
#define cView   3
 

Enumerations

enum  SetResponse {
  NoError, NoError_Cancel, NoError_Run, NoError_Print,
  NoError_Submit, Error_NoSetup, UndefinedError
}
 

Functions

void audioAccept ()
 
void audioReject ()
 
void message (const QString &, int=0)
 
void resetMessage ()
 
int systemError (QWidget *, const QString &)
 
int systemError (QWidget *, const QString &, const QString &, const int)
 
QString translationFile (const QString localestr, const QString component)
 Find the translation file for a given locale. More...
 
QString translationFile (const QString localestr, const QString component, QString &version)
 Find the translation file for a given locale. More...
 

Variables

bool _evaluation
 
Metrics_metrics
 
Metricsenc_metricsenc
 
Preferences_preferences
 
Privileges_privileges
 
QSplashScreen * _splash
 
GUIClientomfgThis
 

Macro Definition Documentation

#define cAllCounts   0x04
#define cCopy   4
#define cEdit   2
#define cItemloc   0x02
#define cLocation   0x01
#define cNew   1
#define cNoReportDefinition   -2
#define cPost   6
#define cPostedCounts   0x01
#define cRelease   5
#define cReplace   7
#define cTransAdjCounts   0x08
#define cTransAll   0xFF
#define cTransIssues   0x02
#define cTransReceipts   0x01
#define cTransScraps   0x20
#define cTransShipments   0x04
#define cTransTransfers   0x10
#define cUnpostedCounts   0x02
#define cView   3

Enumeration Type Documentation

Enumerator
NoError 
NoError_Cancel 
NoError_Run 
NoError_Print 
NoError_Submit 
Error_NoSetup 
UndefinedError 

Function Documentation

void audioAccept ( )
void audioReject ( )
void message ( const QString &  ,
int  = 0 
)
void resetMessage ( )
int systemError ( QWidget ,
const QString &   
)
int systemError ( QWidget ,
const QString &  ,
const QString &  ,
const int   
)
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.

Parameters
localestrThe locale to look for, in standard format.
componentThe application component for which to find a translation file (empty string means core)
Returns
The path to the translation file (may be relative or absolute)
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.

Parameters
[in]localestrThe locale to look for, in standard format.
[in]componentThe application component for which to find a translation file (empty string means core)
[out]versionThe version string found in the translation file or an empty string if none was found.
Returns
The path to the translation file (may be relative or absolute)

Variable Documentation

bool _evaluation
Metrics* _metrics
Metricsenc* _metricsenc
Preferences* _preferences
Privileges* _privileges
QSplashScreen* _splash
GUIClient* omfgThis

Generated on Fri Oct 7 2016 14:23:26 xTuple ERP Programmer Reference, Version 4.2.0 doxygen 1.8.10