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

#include <setup.h>

Inheritance diagram for setup:
XDialog Ui::setup QDialog ScriptablePrivate Ui_setup ScriptableWidget

Public Types

enum  SetupTypes { Configure, AccountMapping, MasterInformation }
 

Public Slots

void apply ()
 
int exec ()
 
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)
 
virtual void setRememberPos (bool)
 
virtual void setRememberSize (bool)
 

Signals

void saving ()
 

Public Member Functions

 setup (QWidget *parent=0, const char *name=0, bool modal=false, Qt::WindowFlags fl=0)
 
 ~setup ()
 
virtual Q_INVOKABLE ParameterList get () const
 
void retranslateUi (QDialog *setup)
 
void setupUi (QDialog *setup)
 

Public Attributes

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 Slots

virtual enum SetResponse postSet ()
 
virtual void saveSize ()
 

Protected Member Functions

virtual void callCloseEvent (QEvent *)
 
virtual enum SetResponse callSet (const ParameterList &)
 
virtual void callShowEvent (QEvent *)
 
virtual void closeEvent (QCloseEvent *event)
 
virtual QScriptEngine * engine ()
 
virtual void loadScript (const QString &oName)
 
virtual void loadScript (const QStringList &list)
 
virtual void loadScriptEngine ()
 
virtual Q_INVOKABLE bool setScriptableParams (ParameterList &)
 
virtual void showEvent (QShowEvent *event)
 

Protected Attributes

QScriptEngineDebugger * _debugger
 
QScriptEngine * _engine
 
ParameterList _lastSetParams
 
QAction_rememberPos
 
QAction_rememberSize
 
bool _scriptLoaded
 
QWidget_self
 
QAction_showMe
 
bool _shown
 

Static Protected Attributes

static ScriptCache_cache
 
static GuiClientInterface_guiClientInterface
 

Member Enumeration Documentation

◆ SetupTypes

Enumerator
Configure 
AccountMapping 
MasterInformation 

Constructor & Destructor Documentation

◆ setup()

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

◆ ~setup()

setup::~setup ( )

Member Function Documentation

◆ apply

void setup::apply ( )
slot

Saves the current settings and repopulates the window.

See also
save(bool);
populate(bool);

◆ callCloseEvent()

void ScriptablePrivate::callCloseEvent ( QEvent *  event)
virtualinherited

◆ callSet()

enum SetResponse ScriptablePrivate::callSet ( const ParameterList &  params)
virtualinherited

◆ callShowEvent()

void ScriptablePrivate::callShowEvent ( QEvent *  event)
virtualinherited

◆ closeEvent()

void XDialog::closeEvent ( QCloseEvent *  event)
protectedvirtualinherited

Reimplemented in voucherItem, contact, and taxAuthority.

◆ engine()

QScriptEngine * ScriptablePrivate::engine ( )
virtualinherited

Reimplemented from ScriptableWidget.

◆ exec

int XDialog::exec ( )
slotinherited

◆ get()

ParameterList XDialog::get ( ) const
virtualinherited

Implements ScriptablePrivate.

◆ insert

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.

◆ languageChange

void setup::languageChange ( )
slot

◆ loadScript() [1/2]

void ScriptableWidget::loadScript ( const QString &  oName)
virtualinherited

◆ loadScript() [2/2]

void ScriptableWidget::loadScript ( const QStringList &  list)
virtualinherited

◆ loadScriptEngine()

void ScriptableWidget::loadScriptEngine ( )
virtualinherited

◆ mode

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;

◆ populate

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.

◆ postSet

enum SetResponse XDialog::postSet ( )
protectedvirtualslotinherited

◆ retranslateUi()

void Ui_setup::retranslateUi ( QDialog setup)
inlineinherited

◆ save

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

◆ saveSize

void XDialog::saveSize ( )
protectedvirtualslotinherited

◆ saving

void setup::saving ( )
signal

◆ set

enum SetResponse setup::set ( const ParameterList &  pParams)
slot

◆ setCurrentIndex

void setup::setCurrentIndex ( const QString &  uiName)
slot

◆ setRememberPos

void XDialog::setRememberPos ( bool  b)
virtualslotinherited

◆ setRememberSize

void XDialog::setRememberSize ( bool  b)
virtualslotinherited

◆ setScriptableParams()

bool ScriptableWidget::setScriptableParams ( ParameterList &  params)
virtualinherited

◆ setupUi()

void Ui_setup::setupUi ( QDialog setup)
inlineinherited

◆ showEvent()

void XDialog::showEvent ( QShowEvent *  event)
protectedvirtualinherited

Reimplemented in externalShipping.

Member Data Documentation

◆ _buttonBox

QDialogButtonBox* Ui_setup::_buttonBox
inherited

◆ _cache

ScriptCache * ScriptableWidget::_cache
staticprotectedinherited

◆ _debugger

QScriptEngineDebugger* ScriptableWidget::_debugger
protectedinherited

◆ _engine

QScriptEngine* ScriptableWidget::_engine
protectedinherited

◆ _guiClientInterface

GuiClientInterface * ScriptableWidget::_guiClientInterface
staticinherited

◆ _lastSetParams

ParameterList ScriptablePrivate::_lastSetParams
inherited

◆ _modules

QComboBox* Ui_setup::_modules
inherited

◆ _modulesLit

QLabel* Ui_setup::_modulesLit
inherited

◆ _rememberPos

QAction* ScriptablePrivate::_rememberPos
inherited

◆ _rememberSize

QAction* ScriptablePrivate::_rememberSize
inherited

◆ _scriptLoaded

bool ScriptableWidget::_scriptLoaded
protectedinherited

◆ _self

QWidget* ScriptableWidget::_self
protectedinherited

◆ _showMe

QAction* ScriptablePrivate::_showMe
inherited

◆ _shown

bool ScriptablePrivate::_shown
inherited

◆ _stack

QStackedWidget* Ui_setup::_stack
inherited

◆ _stackLit

QLabel* Ui_setup::_stackLit
inherited

◆ _tree

XTreeWidget* Ui_setup::_tree
inherited

◆ gridLayout

QGridLayout* Ui_setup::gridLayout
inherited

◆ gridLayout_2

QGridLayout* Ui_setup::gridLayout_2
inherited

◆ horizontalLayout

QHBoxLayout* Ui_setup::horizontalLayout
inherited

◆ horizontalSpacer

QSpacerItem* Ui_setup::horizontalSpacer
inherited

◆ page

QWidget* Ui_setup::page
inherited

◆ page_2

QWidget* Ui_setup::page_2
inherited

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 5.1.0 doxygen 1.8.17