List of all members | Public Types | Properties | Public Member Functions | Public Slots | Signals | Protected Slots | Friends
ItemLineEdit Class Reference

#include <itemcluster.h>

Public Types

enum  Type {
  cUndefined = 0x00, cPurchased = 0x00000001, cManufactured = 0x00000002, cPhantom = 0x00000004,
  cBreeder = 0x00000008, cCoProduct = 0x00000010, cByProduct = 0x00000020, cReference = 0x00000040,
  cCosting = 0x00000080, cTooling = 0x00000100, cOutsideProcess = 0x00000200, cPlanning = 0x00000400,
  cKit = 0x00001000, cAllItemTypes_Mask = 0x0000FFFF, cPlanningMRP = 0x00100000, cPlanningMPS = 0x00200000,
  cPlanningNone = 0x00400000, cPlanningAny = cPlanningMRP | cPlanningMPS | cPlanningNone, cItemActive = 0x04000000, cSold = 0x08000000,
  cLocationControlled = 0x10000000, cLotSerialControlled = 0x20000000, cDefaultLocation = 0x40000000, cActive = 0x80000000,
  cGeneralManufactured = cManufactured | cBreeder, cGeneralPurchased = cPurchased | cOutsideProcess | cTooling, cGeneralComponents = cManufactured | cPhantom | cCoProduct | cPurchased | cOutsideProcess | cReference | cTooling, cGeneralInventory = cAllItemTypes_Mask ^ cReference,
  cKitComponents = cSold | (cAllItemTypes_Mask ^ cKit)
}
 

Properties

unsigned int type
 
- Properties inherited from XLineEdit
QString defaultText
 
QString fieldName
 

Public Member Functions

 ItemLineEdit (QWidget *, const char *=0)
 
Q_INVOKABLE void addExtraClause (const QString &)
 
Q_INVOKABLE void clearExtraClauseList ()
 
Q_INVOKABLE QStringList getExtraClauseList () const
 
Q_INVOKABLE bool isConfigured ()
 
Q_INVOKABLE bool isFractional ()
 
Q_INVOKABLE ItemLineEditDelegateitemDelegate ()
 
Q_INVOKABLE QString itemNumber ()
 
Q_INVOKABLE QString itemType ()
 
Q_INVOKABLE int queryUsed () const
 
Q_INVOKABLE void setDefaultType (unsigned int pType)
 
Q_INVOKABLE void setQuery (const QString &pSql)
 
Q_INVOKABLE void setType (unsigned int pType)
 
Q_INVOKABLE void setValidationQuery (const QString &pSql)
 
Q_INVOKABLE unsigned int type () const
 
Q_INVOKABLE QString uom ()
 
Q_INVOKABLE QString upc ()
 
Q_INVOKABLE int validationQueryUsed () const
 
- Public Member Functions inherited from VirtualClusterLineEdit
 VirtualClusterLineEdit (QWidget *, const char *, const char *, const char *, const char *, const char *, const char *, const char *=0, const char *=0)
 
virtual Q_INVOKABLE bool canOpen ()
 
virtual Q_INVOKABLE QString description () const
 
virtual Q_INVOKABLE QString editPriv () const
 
QMenu * menu () const
 
virtual Q_INVOKABLE QSqlQueryModel * model () const
 
virtual Q_INVOKABLE QString name () const
 
void setMenu (QMenu *menu)
 
virtual Q_INVOKABLE QString uiName () const
 
virtual Q_INVOKABLE QString viewPriv () const
 
- Public Member Functions inherited from XLineEdit
 XLineEdit (QWidget *, const char *=0)
 
virtual QString defaultText () const
 
virtual QString fieldName () const
 
Q_INVOKABLE int id ()
 
Q_INVOKABLE bool isNull ()
 
Q_INVOKABLE bool isValid ()
 
virtual Q_INVOKABLE QString nullStr () const
 
virtual Q_INVOKABLE void setDouble (const double, const int=-1)
 
virtual Q_INVOKABLE void setNullStr (const QString &text)
 
virtual void setText (const QVariant &)
 
Q_INVOKABLE void setValidator (QValidator *v)
 
Q_INVOKABLE double toDouble (bool *=0)
 

Public Slots

void sAlias ()
 
void sCopy ()
 
void setId (const int)
 
void setItemNumber (const QString &pNumber)
 
void setItemsiteid (int)
 
void setNumber (const QString &pNumber)
 
void sHandleCompleter ()
 
void silentSetId (const int)
 
void sInfo ()
 
void sList ()
 
void sParse ()
 
void sSearch ()
 
void sSearch (ParameterList params)
 
- Public Slots inherited from VirtualClusterLineEdit
virtual void clear ()
 
virtual QString extraClause () const
 
virtual void sCopy ()
 
virtual void sEllipses ()
 
virtual void setEditPriv (const QString &priv)
 
virtual void setId (const int)
 
virtual void setNewPriv (const QString &priv)
 
virtual void setNumber (const QString &)
 
virtual void setShowInactive (const bool)
 
virtual void setUiName (const QString &name)
 
virtual void setViewPriv (const QString &priv)
 
virtual void sInfo ()
 
virtual void sList ()
 
virtual void sNew ()
 
virtual void sOpen ()
 
virtual void sSearch ()
 
- Public Slots inherited from XLineEdit
virtual void setData ()
 
virtual void setData (const QString &text)
 
virtual void setDataWidgetMap (XDataWidgetMapper *m)
 
virtual void setDefaultText (QString p)
 
virtual void setFieldName (QString p)
 
virtual void sParse ()
 

Signals

void aliasChanged (const QString &)
 
void configured (bool)
 
void descrip1Changed (const QString &)
 
void descrip2Changed (const QString &)
 
void fractional (bool)
 
void newId (int)
 
void privateIdChanged (int)
 
void typeChanged (const QString &)
 
void uomChanged (const QString &)
 
void upcChanged (const QString &)
 
void valid (bool)
 
void warehouseIdChanged (int)
 
- Signals inherited from VirtualClusterLineEdit
void newId (int)
 
void parsed ()
 
void valid (bool)
 
- Signals inherited from XLineEdit
void clicked ()
 
void doubleClicked ()
 
void requestAlias ()
 
void requestCopy ()
 
void requestInfo ()
 
void requestList ()
 
void requestSearch ()
 

Protected Slots

itemListlistFactory ()
 
itemSearchsearchFactory ()
 
void sUpdateMenu ()
 
- Protected Slots inherited from VirtualClusterLineEdit
virtual void clearExtraClause ()
 
virtual void completerHighlighted (const QModelIndex &)
 
virtual VirtualInfoinfoFactory ()
 
bool isStrict () const
 
virtual VirtualListlistFactory ()
 
virtual VirtualSearchsearchFactory ()
 
virtual void setExtraClause (const QString &pExt)
 
void setStrict (bool)
 
virtual void setStrikeOut (bool enable=false)
 
virtual void setTableAndColumnNames (const char *pTabName, const char *pIdColumn, const char *pNumberColumn, const char *pNameColumn, const char *pDescripColumn, const char *pActiveColumn)
 
virtual void setTitles (const QString &, const QString &=0)
 
virtual void sHandleCompleter ()
 
virtual void sHandleNullStr ()
 
virtual QWidgetsOpenWindow (const QString &uiName, ParameterList &params)
 
virtual void sParse ()
 
virtual void sUpdateMenu ()
 
- Protected Slots inherited from XLineEdit
virtual void sHandleNullStr ()
 

Friends

class ItemCluster
 
class ItemLineEditDelegate
 

Additional Inherited Members

- Static Public Attributes inherited from VirtualClusterLineEdit
static GuiClientInterface_guiClientInterface = 0
 
- Protected Attributes inherited from VirtualClusterLineEdit
QString _activeClause
 
QString _activeColName
 
QCompleter * _completer
 
int _completerId
 
QAction_copyAct
 
QString _descripColName
 
QString _description
 
QString _editPriv
 
QString _extraClause
 
bool _hasActive
 
bool _hasDescription
 
bool _hasName
 
QString _idClause
 
QString _idColName
 
QAction_infoAct
 
QMenu * _menu
 
QLabel_menuLabel
 
QSqlQueryModel * _model
 
QString _name
 
QString _nameColName
 
QAction_newAct
 
QString _newPriv
 
QString _numClause
 
QString _numColName
 
QAction_openAct
 
QString _query
 
bool _showInactive
 
bool _strict
 
QString _titlePlural
 
QString _titleSingular
 
QString _uiName
 
QString _viewPriv
 
- Protected Attributes inherited from XLineEdit
QAction_aliasAct
 
QAction_copyProject
 
int _id
 
QAction_listAct
 
QString _nullStr
 
bool _parsed
 
QAction_searchAct
 
bool _valid
 
- Protected Member Functions inherited from VirtualClusterLineEdit
virtual bool eventFilter (QObject *obj, QEvent *event)
 
virtual void focusInEvent (QFocusEvent *event)
 
virtual void resizeEvent (QResizeEvent *e)
 
virtual void silentSetId (const int)
 
- Protected Member Functions inherited from XLineEdit
virtual void focusOutEvent (QFocusEvent *event)
 
void keyPressEvent (QKeyEvent *)
 
void mouseDoubleClickEvent (QMouseEvent *)
 
void mousePressEvent (QMouseEvent *)
 

Member Enumeration Documentation

Enumerator
cUndefined 
cPurchased 
cManufactured 
cPhantom 
cBreeder 
cCoProduct 
cByProduct 
cReference 
cCosting 
cTooling 
cOutsideProcess 
cPlanning 
cKit 
cAllItemTypes_Mask 
cPlanningMRP 
cPlanningMPS 
cPlanningNone 
cPlanningAny 
cItemActive 
cSold 
cLocationControlled 
cLotSerialControlled 
cDefaultLocation 
cActive 
cGeneralManufactured 
cGeneralPurchased 
cGeneralComponents 
cGeneralInventory 
cKitComponents 

Constructor & Destructor Documentation

ItemLineEdit::ItemLineEdit ( QWidget pParent,
const char *  pName = 0 
)

Member Function Documentation

void ItemLineEdit::addExtraClause ( const QString &  pClause)
void ItemLineEdit::aliasChanged ( const QString &  )
signal
Q_INVOKABLE void ItemLineEdit::clearExtraClauseList ( )
inline
void ItemLineEdit::configured ( bool  )
signal
void ItemLineEdit::descrip1Changed ( const QString &  )
signal
void ItemLineEdit::descrip2Changed ( const QString &  )
signal
void ItemLineEdit::fractional ( bool  )
signal
Q_INVOKABLE QStringList ItemLineEdit::getExtraClauseList ( ) const
inline
bool ItemLineEdit::isConfigured ( )
bool ItemLineEdit::isFractional ( )
Q_INVOKABLE ItemLineEditDelegate* ItemLineEdit::itemDelegate ( )
inline
QString ItemLineEdit::itemNumber ( )
QString ItemLineEdit::itemType ( )
itemList * ItemLineEdit::listFactory ( )
protectedslot
void ItemLineEdit::newId ( int  )
signal
void ItemLineEdit::privateIdChanged ( int  )
signal
Q_INVOKABLE int ItemLineEdit::queryUsed ( ) const
inline
void ItemLineEdit::sAlias ( )
slot
void ItemLineEdit::sCopy ( )
slot
itemSearch * ItemLineEdit::searchFactory ( )
protectedslot
Q_INVOKABLE void ItemLineEdit::setDefaultType ( unsigned int  pType)
inline
void ItemLineEdit::setId ( const int  pId)
slot
void ItemLineEdit::setItemNumber ( const QString &  pNumber)
slot
void ItemLineEdit::setItemsiteid ( int  pItemsiteid)
slot
void ItemLineEdit::setNumber ( const QString &  pNumber)
inlineslot
Q_INVOKABLE void ItemLineEdit::setQuery ( const QString &  pSql)
inline
Q_INVOKABLE void ItemLineEdit::setType ( unsigned int  pType)
inline
Q_INVOKABLE void ItemLineEdit::setValidationQuery ( const QString &  pSql)
inline
void ItemLineEdit::sHandleCompleter ( )
slot
void ItemLineEdit::silentSetId ( const int  pId)
slot
void ItemLineEdit::sInfo ( )
slot
void ItemLineEdit::sList ( )
slot
void ItemLineEdit::sParse ( )
slot
void ItemLineEdit::sSearch ( )
slot
void ItemLineEdit::sSearch ( ParameterList  params)
slot
void ItemLineEdit::sUpdateMenu ( )
protectedslot
Q_INVOKABLE unsigned int ItemLineEdit::type ( ) const
inline
void ItemLineEdit::typeChanged ( const QString &  )
signal
QString ItemLineEdit::uom ( )
void ItemLineEdit::uomChanged ( const QString &  )
signal
QString ItemLineEdit::upc ( )
void ItemLineEdit::upcChanged ( const QString &  )
signal
void ItemLineEdit::valid ( bool  )
signal
Q_INVOKABLE int ItemLineEdit::validationQueryUsed ( ) const
inline
void ItemLineEdit::warehouseIdChanged ( int  )
signal

Friends And Related Function Documentation

friend class ItemCluster
friend
friend class ItemLineEditDelegate
friend

Property Documentation

unsigned int ItemLineEdit::type
readwrite

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

Generated on Fri Oct 7 2016 14:23:30 xTuple ERP Programmer Reference, Version 4.2.0 doxygen 1.8.10