AISelector Class Reference

#include <aiselector.h>

Properties

bool allowNull
 
QString defaultText
 
QString fieldName
 
bool showInactive
 
QString sourceName
 
QString title
 

Public Slots

virtual void clear ()
 
virtual void setAllowNull (const bool pAllowNull)
 
virtual void setCode (const QString &pCode)
 
virtual void setData ()
 
virtual void setData (const QString &text)
 
virtual void setDataWidgetMap (XDataWidgetMapper *m)
 
virtual void setDefaultText (QString p)
 
virtual void setFieldName (QString pName) override
 Set the field from the query used to populate the AISelector.
 
virtual void setFull (const QString &pFull)
 Set the current record in the AISelector by its "full text" value.
 
virtual void setId (const int pId)
 Set the current record in the AISelector by its internal id.
 
virtual void setShowInactive (const bool pShowInactive)
 
virtual bool setSourceName (const QString &pSourceName)
 
virtual void setText (const QString &pText)
 
virtual void setText (const QVariant &pText) override
 
virtual void setTitle (const QString &pTitle)
 
virtual void setWhereValue (const int pPosition, const QVariant &pValue)
 
virtual void setWhereValue (const QString &pColumn, const QVariant &pValue)
 
virtual void sList ()
 
virtual void sNew ()
 
virtual void sOpen ()
 
virtual void sUpdateMenu ()
 

Signals

void clicked ()
 
void doubleClicked ()
 
void newId (int pId)
 
void requestAlias ()
 
void requestInfo ()
 
void requestList ()
 
void requestSearch ()
 
void requestShowInactive (bool pShowInactive)
 
void valid (bool pIsValid)
 

Public Member Functions

 AISelector (QWidget *pParent, const QString &pSchemaName, const QString &pTableName, const QString &pIdCol, const QString &pCodeCol, const QString &pFullCol=QString(), const QString &pActiveCol=QString(), const QString &pUiName=QString(), const QString &pEditPriv=QString(), const QString &pNewPriv=QString(), const QString &pViewPriv=QString(), const QString &pJoin=QString(), const QStringList &pOtherCols=QStringList(), const QString &pDefault=QString(), const QList< QPair< QString, bool > > &pOrderBy=QList< QPair< QString, bool > >(), const QList< QPair< QString, QVariant > > &pWhere=QList< QPair< QString, QVariant > >(), const QString &pQuery=QString())
 Create an AISelector using a query built from the given database structural information.
 
 AISelector (QWidget *pParent, const QString &pSourceName)
 Create an AISelector based on the source table.
 
 AISelector (QWidget *pParent=0)
 
virtual ~AISelector ()
 
virtual Q_INVOKABLE bool allowNull () const
 
virtual Q_INVOKABLE QString code () const
 Get the code value of the current selection or a null string if there is no selection.
 
virtual QString defaultText () const
 
virtual QScriptEngine * engine ()
 
virtual Q_INVOKABLE QString field (const int pPosition) const
 Get the column name in the underlying model associated with the given column position.
 
virtual Q_INVOKABLE int field (const QString &pName) const
 Get the column position in the underlying model associated with the given column number.
 
virtual QString fieldName () const
 
virtual Q_INVOKABLE QStringList fields () const
 Get the list of column names in the underlying data model.
 
virtual Q_INVOKABLE QString full () const
 Get the full value of the current selection or a null string if there is no selection.

 
virtual Q_INVOKABLE int id () override
 Get the internal id of the current selection or -1 if there is no selection.
 
virtual Q_INVOKABLE int id (const QString &pCode) const
 Find the id of the given pCode.
 
virtual Q_INVOKABLE bool init (const QString &pSchemaName, const QString &pTableName, const QString &pIdCol, const QString &pCodeCol, const QString &pFullCol=QString(), const QString &pActiveCol=QString(), const QString &pUiName=QString(), const QString &pEditPriv=QString(), const QString &pNewPriv=QString(), const QString &pViewPriv=QString(), const QString &pJoin=QString(), const QStringList &pOtherCol=QStringList(), const QString &pDefault=QString(), const QList< QPair< QString, bool > > &pOrderBy=QList< QPair< QString, bool > >(), const QList< QPair< QString, QVariant > > &pWhere=QList< QPair< QString, QVariant > >(), const QString &pQuery=QString())
 Set up the AISelector with a query based on the given database structural information.
 
virtual Q_INVOKABLE bool isActive () const
 Get the active/inactive status of the current selection.
 
Q_INVOKABLE bool isNull ()
 
virtual Q_INVOKABLE bool isValid () override
 Get the status of the AISelector.
 
virtual void loadScript (const QString &oName)
 
virtual void loadScript (const QStringList &list)
 
virtual void loadScriptEngine ()
 
virtual Q_INVOKABLE QMenu * menu () const
 
virtual Q_INVOKABLE QAbstractItemModel * model () const
 
virtual Q_INVOKABLE QString nullStr () const
 
virtual Q_INVOKABLE QString queryStr () const
 
virtual Q_INVOKABLE void setDouble (const double, const int=-1)
 
virtual Q_INVOKABLE void setNullStr (const QString &text)
 
virtual Q_INVOKABLE bool setScriptableParams (ParameterList &)
 
Q_INVOKABLE void setValidator (QValidator *v)
 
virtual Q_INVOKABLE bool showInactive () const
 
virtual Q_INVOKABLE QString sourceName () const
 
virtual Q_INVOKABLE QString title () const
 
Q_INVOKABLE double toDouble (bool *=0)
 
virtual Q_INVOKABLE QVariant value (const int pPosition) const
 
virtual Q_INVOKABLE QVariant value (const QString &pName) const
 
virtual Q_INVOKABLE ParameterList values (const int pId) const
 
virtual Q_INVOKABLE ParameterList values (const QString &pCode) const
 
virtual Q_INVOKABLE QVariant whereValue (const int pPosition) const
 
virtual Q_INVOKABLE QVariant whereValue (const QString &pColumn) const
 
virtual Q_INVOKABLE QList< QPair< QString, QVariant > > whereValues () const
 

Static Public Attributes

static GuiClientInterface_guiClientInterface
 

Protected Types

enum  ColumnPosition {
  IdColumn , CodeColumn , FullColumn , ActiveColumn ,
  DefaultColumn , OrderColumn
}
 

Protected Slots

virtual void sHandleNullStr () override
 
virtual void sParse () override
 

Protected Member Functions

virtual void changeEvent (QEvent *pEvent) override
 
virtual void focusInEvent (QFocusEvent *event)
 
virtual void focusOutEvent (QFocusEvent *event)
 
void keyPressEvent (QKeyEvent *)
 
void mouseDoubleClickEvent (QMouseEvent *)
 
void mousePressEvent (QMouseEvent *)
 
virtual void resizeEvent (QResizeEvent *pEvent) override
 

Protected Attributes

QAction_aliasAct
 
QScriptEngineDebugger * _debugger
 
QScriptEngine * _engine
 
QString _fieldName
 
int _id
 
QAction_listAct
 
QMenu * _menu
 
QAction_newAct
 
QString _nullStr
 
QAction_openAct
 
AISelectorPrivate_p
 
bool _parsed
 
bool _scriptLoaded
 
QAction_searchAct
 
QWidget_self
 
bool _valid
 

Static Protected Attributes

static ScriptCache_cache
 

Member Enumeration Documentation

◆ ColumnPosition

Enumerator
IdColumn 
CodeColumn 
FullColumn 
ActiveColumn 
DefaultColumn 
OrderColumn 

Property Documentation

◆ allowNull

bool AISelector::allowNull
readwrite

◆ defaultText

QString XLineEdit::defaultText
readwriteinherited

◆ fieldName

QString XLineEdit::fieldName
readwriteinherited

◆ showInactive

bool AISelector::showInactive
readwrite

◆ sourceName

QString AISelector::sourceName
readwrite

◆ title

QString AISelector::title
readwrite

Constructor & Destructor Documentation

◆ AISelector() [1/3]

AISelector::AISelector ( QWidget * pParent = 0)

◆ AISelector() [2/3]

AISelector::AISelector ( QWidget * pParent,
const QString & pSourceName )

Create an AISelector based on the source table.

This constructor searches the source table for a record matching the given pSourceName. If one is found, the query backing this AISelector is built using the information in the @source record.

Parameters
pSourceNameis compared with the source_name column of source

◆ AISelector() [3/3]

AISelector::AISelector ( QWidget * pParent,
const QString & pSchemaName,
const QString & pTableName,
const QString & pIdCol,
const QString & pCodeCol,
const QString & pFullCol = QString(),
const QString & pActiveCol = QString(),
const QString & pUiName = QString(),
const QString & pEditPriv = QString(),
const QString & pNewPriv = QString(),
const QString & pViewPriv = QString(),
const QString & pJoin = QString(),
const QStringList & pOtherCols = QStringList(),
const QString & pDefaultCol = QString(),
const QList< QPair< QString, bool > > & pOrderBy = QList<QPair<QString, bool>>(),
const QList< QPair< QString, QVariant > > & pWhere = QList<QPair<QString, QVariant>>(),
const QString & pQuery = QString() )

Create an AISelector using a query built from the given database structural information.

This constructor builds a query using the given table and field names. The UI and privilege information control the actions in the widget's menu.

Parameters
pSchemaNameDatabase schema containing the named table. If this is an empty or null string, the table is not schema-qualified in the query.
pTableName
pIdColThe name of the table column containing the id.
pCodeCol
pFullCol
pActiveCol
pUiName
pEditPriv
pNewPriv
pViewPriv
pJoinOptional join clause referring to auxilliary tables. This must include the SQL JOIN keyword.
pOtherColsOptional set of other columns to include in the query.
pDefaultColOptional boolean column identifying a default record. The default record is pre-selected and the first listed.
pOrderByList of pairs of columns to sort by and sort direction. * Sorted in sequence with true as ascending.
pWhereList of pairs of columns and values to filter on. The value can be changed to filter on a different value.
pQueryQuery to use if too complex for above parameters. Takes the non-empty parameters as positional arguments. Columns and values from pWhere are separate arguments.
See also
AISelectore::init

◆ ~AISelector()

AISelector::~AISelector ( )
virtual

Member Function Documentation

◆ allowNull()

bool AISelector::allowNull ( ) const
virtual

◆ changeEvent()

void AISelector::changeEvent ( QEvent * pEvent)
overrideprotectedvirtual

◆ clear

void AISelector::clear ( )
virtualslot

◆ clicked

void XLineEdit::clicked ( )
signalinherited

◆ code()

QString AISelector::code ( ) const
virtual

Get the code value of the current selection or a null string if there is no selection.

◆ defaultText()

virtual QString XLineEdit::defaultText ( ) const
inlinevirtualinherited

◆ doubleClicked

void XLineEdit::doubleClicked ( )
signalinherited

◆ engine()

QScriptEngine * ScriptableWidget::engine ( )
virtualinherited

Reimplemented in ScriptablePrivate.

◆ field() [1/2]

QString AISelector::field ( const int pPosition) const
virtual

Get the column name in the underlying model associated with the given column position.

◆ field() [2/2]

int AISelector::field ( const QString & pName) const
virtual

Get the column position in the underlying model associated with the given column number.

◆ fieldName()

virtual QString XLineEdit::fieldName ( ) const
inlinevirtualinherited

◆ fields()

QStringList AISelector::fields ( ) const
virtual

Get the list of column names in the underlying data model.

◆ focusInEvent()

void XLineEdit::focusInEvent ( QFocusEvent * event)
protectedvirtualinherited

Reimplemented in VirtualClusterLineEdit.

◆ focusOutEvent()

void XLineEdit::focusOutEvent ( QFocusEvent * event)
protectedvirtualinherited

◆ full()

QString AISelector::full ( ) const
virtual

Get the full value of the current selection or a null string if there is no selection.

◆ id() [1/2]

int AISelector::id ( )
overridevirtual

Get the internal id of the current selection or -1 if there is no selection.

Reimplemented from XLineEdit.

◆ id() [2/2]

int AISelector::id ( const QString & pCode) const
virtual

Find the id of the given pCode.

Search the data backing the AISelector for the internal id associated with the given pCode, regardless of active/inactive status. Try a raw match, then trimmed match.

Returns
The corresponding id value or -1 if the code is not in the model.

◆ init()

bool AISelector::init ( const QString & pSchemaName,
const QString & pTableName,
const QString & pIdCol,
const QString & pCodeCol,
const QString & pFullCol = QString(),
const QString & pActiveCol = QString(),
const QString & pUiName = QString(),
const QString & pEditPriv = QString(),
const QString & pNewPriv = QString(),
const QString & pViewPriv = QString(),
const QString & pJoin = QString(),
const QStringList & pOtherCols = QStringList(),
const QString & pDefaultCol = QString(),
const QList< QPair< QString, bool > > & pOrderBy = QList<QPair<QString, bool>>(),
const QList< QPair< QString, QVariant > > & pWhere = QList<QPair<QString, QVariant>>(),
const QString & pQuery = QString() )
virtual

Set up the AISelector with a query based on the given database structural information.

Parameters
pSchemaNameDatabase schema containing the named table. If this is an empty or null string, the table is not schema-qualified in the query.
pTableName
pIdColThe name of the table column containing the id.
pCodeCol
pFullCol
pActiveCol
pUiNameThe C++ class name or JavaScript uiform name of the window to open to view or edit the current record.
pEditPriv
pNewPriv
pViewPriv
pJoinOptional join clause referring to auxilliary tables. This must include the SQL JOIN keyword.
pOtherColsOptional set of other columns to include in the query.
pDefaultColOptional boolean column identifying a default record. The default record is pre-selected and the first listed.
pOrderByList of pairs of columns to sort by and sort direction. * Sorted in sequence with true as ascending.
pWhereList of pairs of columns and values to filter on. The value can be changed to filter on a different value.
pQueryQuery to use if too complex for above parameters. Takes the non-empty parameters as positional arguments. Columns and values from pWhere are separate arguments.
AISelector *ais = new AISelector(parentWindow);
QStringList extras = QStringList() << "contrct_number" << "vend_number";
QList<QPair<QString, bool>> order;
order << qMakePair(QString("contrct_number"), true)
<< qMakePair(QString("itemsrc_ranking"), true);
QList<QPair<QString, QVariant>> where;
where << qMakePair(QString("itemsrc_item_id"), QVariant(305));
ais->init(QString(), "itemsrc", "itemsrc_id", "itemsrc_vend_item_number",
"itemsrc_vend_item_descrip",
"itemsrc_active AND CURRENT_DATE BETWEEN itemsrc_effective "
" AND itemsrc_expires - 1",
"itemSource", "MaintainItemSources", "MaintainItemSources",
"ViewItemSources", "JOIN vendinfo ON itemsrc_vend_id = vend_id "
"LEFT OUTER JOIN contrct ON itemsrc_contrct_id = contrct_id",
extras, "itemsrc_default", order, where);
Definition aiselector.h:35
virtual Q_INVOKABLE bool init(const QString &pSchemaName, const QString &pTableName, const QString &pIdCol, const QString &pCodeCol, const QString &pFullCol=QString(), const QString &pActiveCol=QString(), const QString &pUiName=QString(), const QString &pEditPriv=QString(), const QString &pNewPriv=QString(), const QString &pViewPriv=QString(), const QString &pJoin=QString(), const QStringList &pOtherCol=QStringList(), const QString &pDefault=QString(), const QList< QPair< QString, bool > > &pOrderBy=QList< QPair< QString, bool > >(), const QList< QPair< QString, QVariant > > &pWhere=QList< QPair< QString, QVariant > >(), const QString &pQuery=QString())
Set up the AISelector with a query based on the given database structural information.
Definition aiselector.cpp:805
AISelector(QWidget *pParent=0)
Definition aiselector.cpp:513

generates a query similar to this:

SELECT itemsrc_id, itemsrc_vend_item_number, itemsrc_vend_item_descrip,
itemsrc_active AND CURRENT_DATE BETWEEN itemsrc_effective
AND itemsrc_expires - 1,
itemsrc_default,
rank() OVER (ORDER BY itemsrc_default DESC, contrct_number,
itemsrc_ranking),
contrct_number, vend_number
FROM itemsrc
JOIN vendinfo ON itemsrc_vend_id = vend_id
LEFT OUTER JOIN contrct ON itemsrc_contrct_id = contrct_id
WHERE itemsrc_item_id = 305
ORDER BY itemsrc_default DESC, contrct_number, itemsrc_ranking;

For a more complex query, you can use something like

AISelector *ais = new AISelector(parentWindow);
QStringList extras = QStringList() <<
"itemuomtouom(bomitem.bomitem_item_id, "
" bomitem.bomitem_uom_id, NULL, "
" (bomitem.bomitem_qtyfxd + "
" bomitem.bomitem_qtyper) * "
" (1 + bomitem.bomitem_scrap), "
" 'qtyper') ";
QList<QPair<QString, bool>> order;
order << qMakePair(QString("bomitem_seqnumber"), true);
QList<QPair<QString, QVariant>> where;
where << qMakePair(QString("bomitem_parent_item_id"), QVariant(300))
<< qMakePair(QString("item_descrip2"), QVariant(QString("Truck")));
ais->init(QString(), "bomitem", "bomitem_id", "item_number", "item_descrip1",
"CURRENT_DATE BETWEEN bomitem_effective "
" AND bomitem_expires - 1",
"bomItem", "MaintainBOMs", "MaintainBOMs", "ViewBOMs",
"JOIN item ON bomitem.bomitem_item_id = item_id",
extras, "", order, where,
"WITH RECURSIVE _bomitem AS "
"( "
" SELECT %9 AS qty, bomitem_item_id, "
" bomitem_uom_id, bomitem_qtyfxd, "
" bomitem_qtyper, bomitem_scrap, "
" ARRAY[bomitem_id] AS path "
" FROM %1 "
" %8 "
" WHERE %11 = %12 "
" AND %13 ~* %14 "
" UNION ALL "
" SELECT p.qty * %9, bomitem.bomitem_item_id, "
" bomitem.bomitem_uom_id, bomitem.bomitem_qtyfxd, "
" bomitem.bomitem_qtyper, bomitem.bomitem_scrap, "
" path || bomitem_id "
" FROM _bomitem p "
" JOIN bomitem ON p.bomitem_item_id = bomitem_parent_item_id "
" %8 "
") "
"SELECT %2, %3, %4, "
" %5, "
" %6, %7, "
" SUM(qty * "
" (getItemCostingSums(c.bomitem_item_id)).stdcost) "
" FROM %1 "
" %8 "
" JOIN _bomitem c ON bomitem_id = path[1] "
" AND NOT EXISTS(SELECT 1 "
" FROM _bomitem "
" WHERE path != c.path "
" AND path @> c.path) "
" WHERE %11 = %12 "
" AND %13 ~* %14 "
" GROUP BY bomitem_id, item_id "
" ORDER BY %10;");

generates a query similar to this:

WITH RECURSIVE _bomitem AS
(
SELECT itemuomtouom(bomitem.bomitem_item_id,
bomitem.bomitem_uom_id, NULL,
(bomitem.bomitem_qtyfxd +
bomitem.bomitem_qtyper) *
(1 + bomitem.bomitem_scrap),
'qtyper')
AS qty, bomitem_item_id,
bomitem_uom_id, bomitem_qtyfxd,
bomitem_qtyper, bomitem_scrap,
ARRAY[bomitem_id] AS path
FROM bomitem
JOIN item ON bomitem.bomitem_item_id = item_id
WHERE bomitem_parent_item_id = 300
AND item_descrip2 ~* 'Truck'
UNION ALL
SELECT p.qty * itemuomtouom(bomitem.bomitem_item_id,
bomitem.bomitem_uom_id, NULL,
(bomitem.bomitem_qtyfxd +
bomitem.bomitem_qtyper) *
(1 + bomitem.bomitem_scrap),
'qtyper') , bomitem.bomitem_item_id,
bomitem.bomitem_uom_id, bomitem.bomitem_qtyfxd,
bomitem.bomitem_qtyper, bomitem.bomitem_scrap,
path || bomitem_id
FROM _bomitem p
JOIN bomitem ON p.bomitem_item_id = bomitem_parent_item_id
JOIN item ON bomitem.bomitem_item_id = item_id
)
SELECT bomitem_id, item_number, item_descrip1,
CURRENT_DATE BETWEEN bomitem_effective
AND bomitem_expires - 1,
false, rank() OVER (ORDER BY bomitem_seqnumber),
SUM(qty *
(getItemCostingSums(c.bomitem_item_id)).stdcost)
FROM bomitem
JOIN item ON bomitem.bomitem_item_id = item_id
JOIN _bomitem c ON bomitem_id = path[1]
AND NOT EXISTS(SELECT 1
FROM _bomitem
WHERE path != c.path
AND path @> c.path)
WHERE bomitem_parent_item_id = 300
AND item_descrip2 ~* 'Truck'
GROUP BY bomitem_id, item_id
ORDER BY bomitem_seqnumber;
Definition item.h:25

The privileges control whether Open and Edit\ List are available in the widget's menu, and whether Open opens the named UI for editing or viewing.

◆ isActive()

bool AISelector::isActive ( ) const
virtual

Get the active/inactive status of the current selection.

Returns
true if the current selection is active, false if the current selection is inactive or there is no current selection.

◆ isNull()

bool XLineEdit::isNull ( )
inherited

◆ isValid()

bool AISelector::isValid ( )
overridevirtual

Get the status of the AISelector.

Returns
true if there is a current selection, false if there is no current selection.
See also
AISelector::id

Reimplemented from XLineEdit.

◆ keyPressEvent()

void XLineEdit::keyPressEvent ( QKeyEvent * event)
protectedinherited

◆ 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

◆ menu()

QMenu * AISelector::menu ( ) const
virtual

◆ model()

QAbstractItemModel * AISelector::model ( ) const
virtual

◆ mouseDoubleClickEvent()

void XLineEdit::mouseDoubleClickEvent ( QMouseEvent * event)
protectedinherited

◆ mousePressEvent()

void XLineEdit::mousePressEvent ( QMouseEvent * event)
protectedinherited

◆ newId

void AISelector::newId ( int pId)
signal

◆ nullStr()

virtual Q_INVOKABLE QString XLineEdit::nullStr ( ) const
inlinevirtualinherited

◆ queryStr()

QString AISelector::queryStr ( ) const
virtual

◆ requestAlias

void XLineEdit::requestAlias ( )
signalinherited

◆ requestInfo

void XLineEdit::requestInfo ( )
signalinherited

◆ requestList

void XLineEdit::requestList ( )
signalinherited

◆ requestSearch

void XLineEdit::requestSearch ( )
signalinherited

◆ requestShowInactive

void AISelector::requestShowInactive ( bool pShowInactive)
signal

◆ resizeEvent()

void AISelector::resizeEvent ( QResizeEvent * pEvent)
overrideprotectedvirtual

◆ setAllowNull

void AISelector::setAllowNull ( const bool pAllowNull)
virtualslot

◆ setCode

void AISelector::setCode ( const QString & pCode)
virtualslot

◆ setData [1/2]

void XLineEdit::setData ( )
virtualslotinherited

◆ setData [2/2]

void XLineEdit::setData ( const QString & text)
virtualslotinherited

◆ setDataWidgetMap

void XLineEdit::setDataWidgetMap ( XDataWidgetMapper * m)
virtualslotinherited

◆ setDefaultText

virtual void XLineEdit::setDefaultText ( QString p)
inlinevirtualslotinherited

◆ setDouble()

void XLineEdit::setDouble ( const double pDouble,
const int pPrec = -1 )
virtualinherited

◆ setFieldName

void AISelector::setFieldName ( QString pName)
overridevirtualslot

Set the field from the query used to populate the AISelector.

This names the query field used to populate the AISelector text and search through the completer. By default this is the code column. If the named field does not match the query, the field is set to the code column.

◆ setFull

void AISelector::setFull ( const QString & pFull)
virtualslot

Set the current record in the AISelector by its "full text" value.

The result is only predictable if the full column is unique. Otherwise the result depends on the order rows are returned by the query and stored in the underlying data model. You have been warned.

◆ setId

void AISelector::setId ( const int pId)
virtualslot

Set the current record in the AISelector by its internal id.

This works whether the pertinent record is active or not and is one of the primary motivators for @i having the AISelector. If pId is not found, the AISelector is set to id -1. and the line edit is cleared. Emits newId(int) and valid(bool).

◆ setNullStr()

void XLineEdit::setNullStr ( const QString & text)
virtualinherited

◆ setScriptableParams()

bool ScriptableWidget::setScriptableParams ( ParameterList & params)
virtualinherited

◆ setShowInactive

void AISelector::setShowInactive ( const bool pShowInactive)
virtualslot

◆ setSourceName

bool AISelector::setSourceName ( const QString & pSourceName)
virtualslot

◆ setText [1/2]

void AISelector::setText ( const QString & pText)
virtualslot

◆ setText [2/2]

void AISelector::setText ( const QVariant & pText)
overridevirtualslot

◆ setTitle

void AISelector::setTitle ( const QString & pTitle)
virtualslot

◆ setValidator()

Q_INVOKABLE void XLineEdit::setValidator ( QValidator * v)
inlineinherited

◆ setWhereValue [1/2]

void AISelector::setWhereValue ( const int pPosition,
const QVariant & pValue )
virtualslot

◆ setWhereValue [2/2]

void AISelector::setWhereValue ( const QString & pColumn,
const QVariant & pValue )
virtualslot

◆ sHandleNullStr

void AISelector::sHandleNullStr ( )
overrideprotectedvirtualslot

◆ showInactive()

bool AISelector::showInactive ( ) const
virtual

◆ sList

void AISelector::sList ( )
virtualslot

◆ sNew

void AISelector::sNew ( )
virtualslot

◆ sOpen

void AISelector::sOpen ( )
virtualslot

◆ sourceName()

QString AISelector::sourceName ( ) const
virtual

◆ sParse

void AISelector::sParse ( )
overrideprotectedvirtualslot

◆ sUpdateMenu

void AISelector::sUpdateMenu ( )
virtualslot

◆ title()

QString AISelector::title ( ) const
virtual

◆ toDouble()

double XLineEdit::toDouble ( bool * pIsValid = 0)
inherited

◆ valid

void AISelector::valid ( bool pIsValid)
signal

◆ value() [1/2]

QVariant AISelector::value ( const int pPosition) const
virtual

◆ value() [2/2]

QVariant AISelector::value ( const QString & pName) const
virtual

◆ values() [1/2]

ParameterList AISelector::values ( const int pId) const
virtual

◆ values() [2/2]

ParameterList AISelector::values ( const QString & pCode) const
virtual

◆ whereValue() [1/2]

QVariant AISelector::whereValue ( const int pPosition) const
virtual

◆ whereValue() [2/2]

QVariant AISelector::whereValue ( const QString & pColumn) const
virtual

◆ whereValues()

QList< QPair< QString, QVariant > > AISelector::whereValues ( ) const
virtual

Member Data Documentation

◆ _aliasAct

QAction* XLineEdit::_aliasAct
protectedinherited

◆ _cache

ScriptCache * ScriptableWidget::_cache
staticprotectedinherited

◆ _debugger

QScriptEngineDebugger* ScriptableWidget::_debugger
protectedinherited

◆ _engine

QScriptEngine* ScriptableWidget::_engine
protectedinherited

◆ _fieldName

QString XLineEdit::_fieldName
protectedinherited

◆ _guiClientInterface

GuiClientInterface * ScriptableWidget::_guiClientInterface
staticinherited

◆ _id

int XLineEdit::_id
protectedinherited

◆ _listAct

QAction* XLineEdit::_listAct
protectedinherited

◆ _menu

QMenu* AISelector::_menu
protected

◆ _newAct

QAction* AISelector::_newAct
protected

◆ _nullStr

QString XLineEdit::_nullStr
protectedinherited

◆ _openAct

QAction* AISelector::_openAct
protected

◆ _p

AISelectorPrivate* AISelector::_p
protected

◆ _parsed

bool XLineEdit::_parsed
protectedinherited

◆ _scriptLoaded

bool ScriptableWidget::_scriptLoaded
protectedinherited

◆ _searchAct

QAction* XLineEdit::_searchAct
protectedinherited

◆ _self

QWidget* ScriptableWidget::_self
protectedinherited

◆ _valid

bool XLineEdit::_valid
protectedinherited

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

Generated on Mon Feb 17 2025 xTuple ERP Programmer Reference, Version 6.2.0 doxygen 1.11.0