List of all members | Public Types | Properties | Public Member Functions | Public Slots | Signals | Protected Attributes | Protected Member Functions | Protected Slots
OrderLineEdit Class Reference

#include <ordercluster.h>

Public Types

enum  OrderStatus { AnyStatus = 0x00, Unposted = 0x01, Open = 0x02, Closed = 0x04 }
 
enum  OrderType {
  AnyType = 0x00, Purchase = 0x01, Return = 0x02, Sales = 0x04,
  Transfer = 0x08
}
 

Properties

OrderStatuses allowedStatuses
 
OrderTypes allowedTypes
 
- Properties inherited from XLineEdit
QString defaultText
 
QString fieldName
 

Public Member Functions

 OrderLineEdit (QWidget *, const char *=0)
 
 ~OrderLineEdit ()
 
virtual Q_INVOKABLE OrderStatuses allowedStatuses () const
 
virtual Q_INVOKABLE OrderTypes allowedTypes () const
 
virtual Q_INVOKABLE void clear ()
 
virtual Q_INVOKABLE QString from () const
 
virtual Q_INVOKABLE QString fromPrivsClause ()
 
virtual Q_INVOKABLE bool fromSitePrivsEnforced () const
 
virtual Q_INVOKABLE bool isClosed () const
 
virtual Q_INVOKABLE bool isOpen () const
 
virtual Q_INVOKABLE bool isPO () const
 
virtual Q_INVOKABLE bool isRA () const
 
virtual Q_INVOKABLE bool isSO () const
 
virtual Q_INVOKABLE bool isTO () const
 
virtual Q_INVOKABLE bool isUnposted () const
 
virtual Q_INVOKABLE bool lockSelected ()
 
virtual Q_INVOKABLE void setExtraClause (const QString &p)
 
virtual Q_INVOKABLE void setExtraClause (const QString &, const QString &)
 
virtual Q_INVOKABLE void setExtraClause (const OrderTypes, const QString &)
 
virtual Q_INVOKABLE void setFromSitePrivsEnforced (const bool p)
 
virtual Q_INVOKABLE void setLockSelected (bool lock)
 
virtual Q_INVOKABLE void setToSitePrivsEnforced (const bool p)
 
virtual Q_INVOKABLE OrderStatus status ()
 
virtual Q_INVOKABLE QString to () const
 
virtual Q_INVOKABLE QString toPrivsClause ()
 
virtual Q_INVOKABLE bool toSitePrivsEnforced () const
 
virtual Q_INVOKABLE QString type ()
 
- 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

virtual void setAllowedStatuses (const OrderStatuses)
 
virtual void setAllowedType (const QString &)
 
virtual void setAllowedTypes (const OrderTypes)
 
virtual void setCustId (int)
 
virtual void setId (const int, const QString &=QString::null)
 
virtual void sList ()
 
virtual void sSearch ()
 
- Public Slots inherited from VirtualClusterLineEdit
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 newId (const int, const QString &)
 
void numberChanged (const QString &, const QString &)
 
- 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 Attributes

OrderStatuses _allowedStatuses
 
OrderTypes _allowedTypes
 
QString _from
 
QString _to
 
- 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

virtual QString buildExtraClause ()
 
virtual void silentSetId (const int)
 
virtual void unlock ()
 
- Protected Member Functions inherited from VirtualClusterLineEdit
virtual bool eventFilter (QObject *obj, QEvent *event)
 
virtual void focusInEvent (QFocusEvent *event)
 
virtual void resizeEvent (QResizeEvent *e)
 
- Protected Member Functions inherited from XLineEdit
virtual void focusOutEvent (QFocusEvent *event)
 
void keyPressEvent (QKeyEvent *)
 
void mouseDoubleClickEvent (QMouseEvent *)
 
void mousePressEvent (QMouseEvent *)
 

Protected Slots

virtual VirtualListlistFactory ()
 
virtual VirtualSearchsearchFactory ()
 
virtual void sNewId (const int)
 
virtual void sParse ()
 
- Protected Slots inherited from VirtualClusterLineEdit
virtual void clearExtraClause ()
 
virtual void completerHighlighted (const QModelIndex &)
 
virtual VirtualInfoinfoFactory ()
 
bool isStrict () const
 
virtual VirtualListlistFactory ()
 
virtual VirtualSearchsearchFactory ()
 
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 ()
 

Additional Inherited Members

- Static Public Attributes inherited from VirtualClusterLineEdit
static GuiClientInterface_guiClientInterface = 0
 

Member Enumeration Documentation

Enumerator
AnyStatus 
Unposted 
Open 
Closed 
Enumerator
AnyType 
Purchase 
Return 
Sales 
Transfer 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual Q_INVOKABLE OrderStatuses OrderLineEdit::allowedStatuses ( ) const
virtual
virtual Q_INVOKABLE OrderTypes OrderLineEdit::allowedTypes ( ) const
virtual
QString OrderLineEdit::buildExtraClause ( )
protectedvirtual
void OrderLineEdit::clear ( )
virtual

Reimplemented from VirtualClusterLineEdit.

QString OrderLineEdit::from ( ) const
virtual
virtual Q_INVOKABLE QString OrderLineEdit::fromPrivsClause ( )
inlinevirtual
virtual Q_INVOKABLE bool OrderLineEdit::fromSitePrivsEnforced ( ) const
inlinevirtual
bool OrderLineEdit::isClosed ( ) const
virtual
bool OrderLineEdit::isOpen ( ) const
virtual
bool OrderLineEdit::isPO ( ) const
virtual
bool OrderLineEdit::isRA ( ) const
virtual
bool OrderLineEdit::isSO ( ) const
virtual
bool OrderLineEdit::isTO ( ) const
virtual
bool OrderLineEdit::isUnposted ( ) const
virtual
VirtualList * OrderLineEdit::listFactory ( )
protectedvirtualslot
virtual Q_INVOKABLE bool OrderLineEdit::lockSelected ( )
inlinevirtual
void OrderLineEdit::newId ( const int  ,
const QString &   
)
signal
void OrderLineEdit::numberChanged ( const QString &  ,
const QString &   
)
signal
VirtualSearch * OrderLineEdit::searchFactory ( )
protectedvirtualslot
void OrderLineEdit::setAllowedStatuses ( const OrderStatuses  p)
virtualslot
void OrderLineEdit::setAllowedType ( const QString &  p)
virtualslot
void OrderLineEdit::setAllowedTypes ( const OrderTypes  p)
virtualslot
void OrderLineEdit::setCustId ( int  pId)
virtualslot
virtual Q_INVOKABLE void OrderLineEdit::setExtraClause ( const QString &  p)
inlinevirtual

Reimplemented from VirtualClusterLineEdit.

void OrderLineEdit::setExtraClause ( const QString &  pType,
const QString &  pClause 
)
virtual
void OrderLineEdit::setExtraClause ( const OrderTypes  pTypes,
const QString &  pClause 
)
virtual
void OrderLineEdit::setFromSitePrivsEnforced ( const bool  p)
virtual
void OrderLineEdit::setId ( const int  pId,
const QString &  pType = QString::null 
)
virtualslot
virtual Q_INVOKABLE void OrderLineEdit::setLockSelected ( bool  lock)
inlinevirtual
void OrderLineEdit::setToSitePrivsEnforced ( const bool  p)
virtual
void OrderLineEdit::silentSetId ( const int  pId)
protectedvirtual

Reimplemented from VirtualClusterLineEdit.

void OrderLineEdit::sList ( )
virtualslot
void OrderLineEdit::sNewId ( const int  p)
protectedvirtualslot
void OrderLineEdit::sParse ( )
protectedvirtualslot
void OrderLineEdit::sSearch ( )
virtualslot
OrderLineEdit::OrderStatus OrderLineEdit::status ( )
virtual
QString OrderLineEdit::to ( ) const
virtual
virtual Q_INVOKABLE QString OrderLineEdit::toPrivsClause ( )
inlinevirtual
virtual Q_INVOKABLE bool OrderLineEdit::toSitePrivsEnforced ( ) const
inlinevirtual
QString OrderLineEdit::type ( )
virtual
void OrderLineEdit::unlock ( )
protectedvirtual

Member Data Documentation

OrderStatuses OrderLineEdit::_allowedStatuses
protected
OrderTypes OrderLineEdit::_allowedTypes
protected
QString OrderLineEdit::_from
protected
QString OrderLineEdit::_to
protected

Property Documentation

OrderLineEdit::OrderStatuses OrderLineEdit::allowedStatuses
readwrite
OrderLineEdit::OrderTypes OrderLineEdit::allowedTypes
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