Classes | Public Types | Public Member Functions | Public Slots | Signals
setup Class Reference

#include <setup.h>

List of all members.

Classes

struct  ItemProps

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 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)

Signals

void saving ()

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 
)

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 ( ) [virtual, slot]

Reimplemented from QWidget.

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) [virtual, slot]

Reimplemented from XDialog.

void setup::setCurrentIndex ( const QString uiName) [slot]

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

Generated on Mon Jan 23 2012 12:22:37 xTuple ERP Programmer Reference, Version 3.8.0 doxygen 1.7.6.1