List of all members | Classes | Public Types | Public Member Functions | Public Slots | Signals
setup Class Reference

#include <setup.h>

Public Types

enum  SetupTypes { Configure, AccountMapping, MasterInformation }
 

Public Member Functions

 setup (QWidget *parent=0, const char *name=0, bool modal=false, Qt::WFlags fl=0)
 
 ~setup ()
 
- Public Member Functions inherited from XDialog
 XDialog (QWidget *parent=0, Qt::WindowFlags flags=0)
 
 XDialog (QWidget *parent, const char *name, bool modal=false, Qt::WindowFlags flags=0)
 
virtual ~XDialog ()
 
virtual Q_INVOKABLE ParameterList get () const
 
- Public Member Functions inherited from Ui_setup
void retranslateUi (QDialog *setup)
 
void setupUi (QDialog *setup)
 

Public Slots

void apply ()
 
void insert (const QString &title, const QString &uiName, int type, int modules, bool enabled=true, int mode=0, const QString &saveMethod=QString())
 
void languageChange ()
 
int mode (const QString &editPriv, const QString &viewPriv=QString())
 
void populate (bool first=true)
 
void save (bool close=true)
 
enum SetResponse set (const ParameterList &pParams)
 
void setCurrentIndex (const QString &uiName)
 
- Public Slots inherited from XDialog
virtual enum SetResponse set (const ParameterList &)
 
virtual void setRememberPos (bool)
 
virtual void setRememberSize (bool)
 

Signals

void saving ()
 

Additional Inherited Members

- Public Attributes inherited from Ui_setup
QDialogButtonBox * _buttonBox
 
QComboBox_modules
 
QLabel_modulesLit
 
QStackedWidget * _stack
 
QLabel_stackLit
 
XTreeWidget_tree
 
QGridLayout * gridLayout
 
QGridLayout * gridLayout_2
 
QHBoxLayout * horizontalLayout
 
QSpacerItem * horizontalSpacer
 
QWidgetpage
 
QWidgetpage_2
 
- Protected Member Functions inherited from XDialog
virtual void closeEvent (QCloseEvent *event)
 
virtual void showEvent (QShowEvent *event)
 
- Protected Slots inherited from XDialog
virtual enum SetResponse postSet ()
 
virtual void saveSize ()
 

Member Enumeration Documentation

Enumerator
Configure 
AccountMapping 
MasterInformation 

Constructor & Destructor Documentation

setup::setup ( QWidget parent = 0,
const char *  name = 0,
bool  modal = false,
Qt::WFlags  fl = 0 
)
setup::~setup ( )

Member Function Documentation

void setup::apply ( )
slot

Saves the current settings and repopulates the window.

See also
save(bool);
populate(bool);
void setup::insert ( const QString &  title,
const QString &  uiName,
int  type,
int  modules,
bool  enabled = true,
int  mode = 0,
const QString &  saveMethod = QString() 
)
slot

Insert setup item for title using the widget with object name uiName to the list of setup items. The item on the list will be indented under type and enabled according to the enabled value. The value of mode will determine whether parameters are passed to set the widget to "edit" or "view" mode. A save function on the widget triggered by the Apply and Save buttons can optionally be specified by saveMethod.

void setup::languageChange ( )
slot
int setup::mode ( const QString &  editPriv,
const QString &  viewPriv = QString() 
)
slot

Returns the mode value based on the privileges granted by checking editPriv and viewPriv. If the user has edit privileges cEdit (2) will be returned, if only view privileges then cView (3) will be returned, otherwise 0;

void setup::populate ( bool  first = true)
slot

Populates the list of setup widgets filtered by selectd module. Selects the first item when first is true.

void setup::save ( bool  close = true)
slot

Emits the saving() signal which triggers any widgets to save that have a mapped savedMethod() specified by

See also
insert(). Also reloads metrics, privileges, preferences, and the menubar in the main application. The screen will close if close is true.
apply()
void setup::saving ( )
signal
enum SetResponse setup::set ( const ParameterList &  pParams)
slot
void setup::setCurrentIndex ( const QString &  uiName)
slot

The documentation for this class was generated from the following files:

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