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

#include <scriptEditor.h>

Public Member Functions

 scriptEditor (QWidget *parent=0, const char *name=0, Qt::WFlags fl=0)
 
 ~scriptEditor ()
 
- Public Member Functions inherited from XWidget
 XWidget (QWidget *parent=0, Qt::WindowFlags flags=0)
 
 XWidget (QWidget *parent, const char *name, Qt::WindowFlags flags=0)
 
 ~XWidget ()
 
virtual Q_INVOKABLE ParameterList get () const
 
- Public Member Functions inherited from Ui_scriptEditor
void retranslateUi (QWidget *scriptEditor)
 
void setupUi (QWidget *scriptEditor)
 

Public Slots

virtual void populate ()
 
virtual enum SetResponse set (const ParameterList &pParams)
 
virtual void sFind ()
 
virtual void sGoto ()
 
virtual void sImport ()
 
virtual bool sSave ()
 
virtual bool sSaveFile ()
 
virtual bool sSaveToDB ()
 
- Public Slots inherited from XWidget
virtual enum SetResponse set (const ParameterList &)
 

Static Public Member Functions

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

Protected Member Functions

virtual void closeEvent (QCloseEvent *)
 
- Protected Member Functions inherited from XWidget
void closeEvent (QCloseEvent *event)
 
QScriptEngine * engine ()
 
void showEvent (QShowEvent *event)
 

Protected Slots

virtual void languageChange ()
 
virtual void sBlockCountChanged (const int)
 
virtual void setMode (const int)
 
virtual void sFindDo ()
 
virtual void sFindSignal ()
 
virtual void sPositionChanged ()
 
- Protected Slots inherited from XWidget
virtual enum SetResponse postSet ()
 

Additional Inherited Members

- Public Attributes inherited from Ui_scriptEditor
QPushButton * _close
 
QCheckBox_enabled
 
QPushButton * _export
 
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
 

Constructor & Destructor Documentation

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

Member Function Documentation

void scriptEditor::closeEvent ( QCloseEvent *  event)
protectedvirtual
void scriptEditor::languageChange ( )
protectedvirtualslot
void scriptEditor::populate ( )
virtualslot
bool scriptEditor::saveFile ( const QString &  source,
QString &  filename 
)
static
void scriptEditor::sBlockCountChanged ( const int  p)
protectedvirtualslot
enum SetResponse scriptEditor::set ( const ParameterList &  pParams)
virtualslot
void scriptEditor::setMode ( const int  pmode)
protectedvirtualslot
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.

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.

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.

void scriptEditor::sGoto ( )
virtualslot
void scriptEditor::sImport ( )
virtualslot
void scriptEditor::sPositionChanged ( )
protectedvirtualslot
bool scriptEditor::sSave ( )
virtualslot
bool scriptEditor::sSaveFile ( )
virtualslot
bool scriptEditor::sSaveToDB ( )
virtualslot

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

Generated on Fri Oct 7 2016 15:34:22 xTuple ERP Programmer Reference, Version 4.4.0 doxygen 1.8.10