List of all members | Public Slots | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes | Static Protected Attributes
scriptEditor Class Reference

#include <scriptEditor.h>

Inheritance diagram for scriptEditor:
XWidget Ui::scriptEditor QWidget ScriptablePrivate Ui_scriptEditor ScriptableWidget

Public Slots

virtual void populate ()
 
virtual enum SetResponse set (const ParameterList &pParams)
 
virtual void sExtractWidgets (const bool pInclude=false)
 
virtual void sExtractWidgetsWithLabels ()
 
virtual void sExtractWidgetsWithoutLabels ()
 
virtual void sFind ()
 
virtual void sGoto ()
 
virtual void sImport ()
 
virtual bool sSave ()
 
virtual bool sSaveFile ()
 
virtual bool sSaveToDB ()
 

Public Member Functions

 scriptEditor (QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=0)
 
 ~scriptEditor ()
 
virtual Q_INVOKABLE ParameterList get () const
 
void retranslateUi (QWidget *scriptEditor)
 
void setupUi (QWidget *scriptEditor)
 

Static Public Member Functions

static bool saveFile (const QString &source, QString &filename)
 

Public Attributes

QPushButton * _close
 
QCheckBox_enabled
 
QPushButton * _export
 
QPushButton * _extractWidgets
 
QPushButton * _find
 
QLineEdit_findText
 
QPushButton * _import
 
QSpinBox_line
 
XLineEdit_name
 
QLabel_nameLit
 
XLineEdit_notes
 
QLabel_notesLit
 
QSpinBox_order
 
QLabel_orderLit
 
XComboBox_package
 
QLabel_packageLit
 
QPushButton * _save
 
QTextEdit_source
 
QGridLayout * gridLayout
 
QHBoxLayout * hboxLayout
 
QSpacerItem * horizontalSpacer
 
QSpacerItem * horizontalSpacer_3
 
QSpacerItem * spacerItem
 
QSpacerItem * spacerItem1
 
QVBoxLayout * verticalLayout
 

Protected Slots

virtual void languageChange ()
 
virtual enum SetResponse postSet ()
 
virtual void sBlockCountChanged (const int)
 
virtual void sClose ()
 
virtual void setMode (const int)
 
virtual void sFindDo ()
 
virtual void sFindSignal ()
 
virtual void sPositionChanged ()
 

Protected Member Functions

virtual void callCloseEvent (QEvent *)
 
virtual enum SetResponse callSet (const ParameterList &)
 
virtual void callShowEvent (QEvent *)
 
virtual void closeEvent (QCloseEvent *)
 
virtual QScriptEngine * engine ()
 
virtual void loadScript (const QString &oName)
 
virtual void loadScript (const QStringList &list)
 
virtual void loadScriptEngine ()
 
virtual Q_INVOKABLE bool setScriptableParams (ParameterList &)
 
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
 

Constructor & Destructor Documentation

◆ scriptEditor()

scriptEditor::scriptEditor ( QWidget parent = 0,
const char *  name = 0,
Qt::WindowFlags  fl = 0 
)

◆ ~scriptEditor()

scriptEditor::~scriptEditor ( )

Member Function Documentation

◆ 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 scriptEditor::closeEvent ( QCloseEvent *  event)
protectedvirtual

◆ engine()

QScriptEngine * ScriptablePrivate::engine ( )
virtualinherited

Reimplemented from ScriptableWidget.

◆ get()

ParameterList XWidget::get ( ) const
virtualinherited

Implements ScriptablePrivate.

◆ languageChange

void scriptEditor::languageChange ( )
protectedvirtualslot

◆ 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

◆ populate

void scriptEditor::populate ( )
virtualslot

◆ postSet

enum SetResponse XWidget::postSet ( )
protectedvirtualslotinherited

◆ retranslateUi()

void Ui_scriptEditor::retranslateUi ( QWidget scriptEditor)
inlineinherited

◆ saveFile()

bool scriptEditor::saveFile ( const QString &  source,
QString &  filename 
)
static

◆ sBlockCountChanged

void scriptEditor::sBlockCountChanged ( const int  p)
protectedvirtualslot

◆ sClose

void scriptEditor::sClose ( )
protectedvirtualslot

◆ set

enum SetResponse scriptEditor::set ( const ParameterList &  pParams)
virtualslot

◆ setMode

void scriptEditor::setMode ( const int  pmode)
protectedvirtualslot

◆ setScriptableParams()

bool ScriptableWidget::setScriptableParams ( ParameterList &  params)
virtualinherited

◆ setupUi()

void Ui_scriptEditor::setupUi ( QWidget scriptEditor)
inlineinherited

◆ sExtractWidgets

void scriptEditor::sExtractWidgets ( const bool  pInclude = false)
virtualslot

◆ sExtractWidgetsWithLabels

void scriptEditor::sExtractWidgetsWithLabels ( )
virtualslot

◆ sExtractWidgetsWithoutLabels

void scriptEditor::sExtractWidgetsWithoutLabels ( )
virtualslot

◆ sFind

void scriptEditor::sFind ( )
virtualslot

Called by the find button and sFindDo function. It decrements a _findCnt value down to 0 so sFindDo can evaluate if it needs to call this function after an initial editingFinished signal from the _findText widget is emitted.

◆ sFindDo

void scriptEditor::sFindDo ( )
protectedvirtualslot

Called from a timer set in sFindSignal. This function checks the _findCnt and if it's greater than 0 it will call sFind. This is done to prevent the calling of sFind twice under some circumstances.

◆ sFindSignal

void scriptEditor::sFindSignal ( )
protectedvirtualslot

Called when _findText emits editingFinished. Increments count and triggers 1ms singleshot timer to call sFindDo. This part of a solution to prevent double-finding when the user edits a text and then clicks the find button which was causing sFind to be called twice.

◆ sGoto

void scriptEditor::sGoto ( )
virtualslot

◆ showEvent()

void XWidget::showEvent ( QShowEvent *  event)
protectedinherited

◆ sImport

void scriptEditor::sImport ( )
virtualslot

◆ sPositionChanged

void scriptEditor::sPositionChanged ( )
protectedvirtualslot

◆ sSave

bool scriptEditor::sSave ( )
virtualslot

◆ sSaveFile

bool scriptEditor::sSaveFile ( )
virtualslot

◆ sSaveToDB

bool scriptEditor::sSaveToDB ( )
virtualslot

Member Data Documentation

◆ _cache

ScriptCache * ScriptableWidget::_cache
staticprotectedinherited

◆ _close

QPushButton* Ui_scriptEditor::_close
inherited

◆ _debugger

QScriptEngineDebugger* ScriptableWidget::_debugger
protectedinherited

◆ _enabled

QCheckBox* Ui_scriptEditor::_enabled
inherited

◆ _engine

QScriptEngine* ScriptableWidget::_engine
protectedinherited

◆ _export

QPushButton* Ui_scriptEditor::_export
inherited

◆ _extractWidgets

QPushButton* Ui_scriptEditor::_extractWidgets
inherited

◆ _find

QPushButton* Ui_scriptEditor::_find
inherited

◆ _findText

QLineEdit* Ui_scriptEditor::_findText
inherited

◆ _guiClientInterface

GuiClientInterface * ScriptableWidget::_guiClientInterface
staticinherited

◆ _import

QPushButton* Ui_scriptEditor::_import
inherited

◆ _lastSetParams

ParameterList ScriptablePrivate::_lastSetParams
inherited

◆ _line

QSpinBox* Ui_scriptEditor::_line
inherited

◆ _name

XLineEdit* Ui_scriptEditor::_name
inherited

◆ _nameLit

QLabel* Ui_scriptEditor::_nameLit
inherited

◆ _notes

XLineEdit* Ui_scriptEditor::_notes
inherited

◆ _notesLit

QLabel* Ui_scriptEditor::_notesLit
inherited

◆ _order

QSpinBox* Ui_scriptEditor::_order
inherited

◆ _orderLit

QLabel* Ui_scriptEditor::_orderLit
inherited

◆ _package

XComboBox* Ui_scriptEditor::_package
inherited

◆ _packageLit

QLabel* Ui_scriptEditor::_packageLit
inherited

◆ _rememberPos

QAction* ScriptablePrivate::_rememberPos
inherited

◆ _rememberSize

QAction* ScriptablePrivate::_rememberSize
inherited

◆ _save

QPushButton* Ui_scriptEditor::_save
inherited

◆ _scriptLoaded

bool ScriptableWidget::_scriptLoaded
protectedinherited

◆ _self

QWidget* ScriptableWidget::_self
protectedinherited

◆ _showMe

QAction* ScriptablePrivate::_showMe
inherited

◆ _shown

bool ScriptablePrivate::_shown
inherited

◆ _source

QTextEdit* Ui_scriptEditor::_source
inherited

◆ gridLayout

QGridLayout* Ui_scriptEditor::gridLayout
inherited

◆ hboxLayout

QHBoxLayout* Ui_scriptEditor::hboxLayout
inherited

◆ horizontalSpacer

QSpacerItem* Ui_scriptEditor::horizontalSpacer
inherited

◆ horizontalSpacer_3

QSpacerItem* Ui_scriptEditor::horizontalSpacer_3
inherited

◆ spacerItem

QSpacerItem* Ui_scriptEditor::spacerItem
inherited

◆ spacerItem1

QSpacerItem* Ui_scriptEditor::spacerItem1
inherited

◆ verticalLayout

QVBoxLayout* Ui_scriptEditor::verticalLayout
inherited

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

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