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

#include <warehouseCluster.h>

Inheritance diagram for WComboBox:
XComboBox QComboBox

Public Types

enum  Defaults { First, None }
 
enum  WComboBoxTypes {
  All, AllActive, NonTransit, Shipping,
  Sold, Supply, POSupply, WOSupply,
  Transit, AllActiveInventory, AllPrivNonTransit, AllPrivTransit
}
 
enum  XComboBoxTypes {
  AddressCommentTypes, AddressGroups, Adhoc, APBankAccounts,
  APTerms, ARBankAccounts, ARCMReasonCodes, ARDMReasonCodes,
  ARTerms, AccountGroups, AccountingPeriods, Agent,
  AllCommentTypes, AllProjects, BBOMHeadCommentTypes, BBOMItemCommentTypes,
  BOMHeadCommentTypes, BOMItemCommentTypes, BOOHeadCommentTypes, BOOItemCommentTypes,
  CRMAccounts, CRMAccountCommentTypes, CRMRoleAddress, CRMRoleContact,
  CRMRolePhone, CRMRoleEmail, ClassCodes, Companies,
  ContactCommentTypes, ContactGroups, Contracts, CostCategories,
  Countries, Currencies, CurrenciesNotBase, CustomerCommentTypes,
  CustomerGroups, CustomerTypes, EmployeeGroups, EmployeeCommentTypes,
  ExchangeRateCommentTypes, ExpenseCategories, FinancialLayouts, FiscalYears,
  FreightClasses, Honorifics, IncidentCategory, IncidentCommentTypes,
  IncidentPriority, IncidentResolution, IncidentSeverity, ItemCommentTypes,
  ItemGroups, ItemSiteCommentTypes, ItemSourceCommentTypes, Locales,
  LocaleCountries, LocaleLanguages, LocationCommentTypes, LotSerialCommentTypes,
  OpportunityCommentTypes, OpportunityStages, OpportunitySources, OpportunityTypes,
  PlannerCodes, PoProjects, ProductCategories, ProspectGroups,
  ProfitCenters, ProjectCommentTypes, ProspectCommentTypes, PurchaseOrderCommentTypes,
  PurchaseOrderItemCommentTypes, ReasonCodes, RegistrationTypes, Reports,
  ReturnReasonCodes, ReturnAuthCommentTypes, ReturnAuthItemCommentTypes, QuoteCommentTypes,
  QuoteItemCommentTypes, SalesOrderCommentTypes, SalesOrderItemCommentTypes, SalesCategories,
  SalesCategoriesActive, SalesReps, SalesRepsActive, SaleTypes,
  ShipVias, ShippingCharges, ShippingForms, ShippingZones,
  SiteTypes, SoProjects, Subaccounts, TaxAuths,
  TaxClasses, TaxCodes, TaxZones, TaxTypes,
  Terms, TaskCommentTypes, TimeAttendanceCommentTypes, TransferOrderCommentTypes,
  TransferOrderItemCommentTypes, UOMs, Users, ActiveUsers,
  VendorCommentTypes, VendorGroups, VendorTypes, WarehouseCommentTypes,
  WoProjects, WorkCenters, WorkCentersActive, WorkOrderCommentTypes
}
 

Properties

bool allowNull
 
QString code
 
QString currentDefault
 
Defaults defaultCode
 
QString fieldName
 
QString listDisplayFieldName
 
QString listIdFieldName
 
QString listSchemaName
 
QString listTableName
 
QString nullStr
 
QString text
 
WComboBoxTypes type
 

Public Slots

void append (int, const QString &)
 
void append (int, const QString &, const QString &)
 
void clear ()
 
void findItemsites (int)
 
void populate ()
 
void populate (const QString &, int=-1)
 
void populate (XSqlQuery, int=-1)
 
void setDataWidgetMap (XDataWidgetMapper *m)
 
void setDefaultCode (Defaults p)
 
void setFieldName (QString p)
 
void setId (int)
 
void setListDisplayFieldName (QString p)
 
void setListIdFieldName (QString p)
 
void setListSchemaName (QString p)
 
void setListTableName (QString p)
 
void setText (const QString &)
 
void setText (const QVariant &)
 
void setText (QVariant &)
 
void updateMapperData ()
 

Signals

void clicked ()
 
void newID (int)
 
void notNull (bool)
 
void valid (bool)
 

Public Member Functions

 WComboBox (QWidget *, const char *=0)
 
virtual bool allowNull () const
 
QString code () const
 
virtual Defaults defaultCode () const
 
QString fieldName () const
 
Q_INVOKABLE int id () const
 
int id (int) const
 
Q_INVOKABLE void insertEditor (XComboBoxTypes type, const QString &uiName, const QString &privilege)
 
Q_INVOKABLE void insertEditor (XComboBoxTypes type, QObject *obj, const char *slot, const QString &privilege=QString())
 
Q_INVOKABLE bool isValid () const
 
Q_INVOKABLE QLabellabel () const
 
QString listDisplayFieldName () const
 
QString listIdFieldName () const
 
QString listSchemaName () const
 
QString listTableName () const
 
QString nullStr () const
 
Q_INVOKABLE void removeItem (int idx)
 
Q_INVOKABLE void replace (int index, const QString &text, const QString &code)
 
virtual void setAllowNull (bool)
 
void setCode (const QString &)
 
Q_INVOKABLE void setItemCode (int index, const QString &code)
 
Q_INVOKABLE void setItemIcon (int index, const QIcon &icon)
 
Q_INVOKABLE void setItemText (int index, const QString &text)
 
Q_INVOKABLE void setLabel (QLabel *pLab)
 
virtual void setNull ()
 
void setNullStr (const QString &)
 
void setType (WComboBoxTypes)
 
void setType (XComboBoxTypes)
 
virtual void showPopup ()
 
QSize sizeHint () const
 
WComboBoxTypes type ()
 

Static Public Member Functions

static void cleanup ()
 

Static Public Attributes

static GuiClientInterface_guiClientInterface
 

Protected Slots

void sHandleNewIndex (int)
 

Protected Member Functions

QString currentDefault ()
 
void init ()
 
void mousePressEvent (QMouseEvent *)
 
void wheelEvent (QWheelEvent *)
 

Protected Attributes

bool _allowNull
 
XComboBoxPrivate_data
 
int _lastid
 

Member Enumeration Documentation

◆ Defaults

enum XComboBox::Defaults
inherited
Enumerator
First 
None 

◆ WComboBoxTypes

Enumerator
All 
AllActive 
NonTransit 
Shipping 
Sold 
Supply 
POSupply 
WOSupply 
Transit 
AllActiveInventory 
AllPrivNonTransit 
AllPrivTransit 

◆ XComboBoxTypes

enum XComboBox::XComboBoxTypes
inherited
Enumerator
AddressCommentTypes 
AddressGroups 
Adhoc 
APBankAccounts 
APTerms 
ARBankAccounts 
ARCMReasonCodes 
ARDMReasonCodes 
ARTerms 
AccountGroups 
AccountingPeriods 
Agent 
AllCommentTypes 
AllProjects 
BBOMHeadCommentTypes 
BBOMItemCommentTypes 
BOMHeadCommentTypes 
BOMItemCommentTypes 
BOOHeadCommentTypes 
BOOItemCommentTypes 
CRMAccounts 
CRMAccountCommentTypes 
CRMRoleAddress 
CRMRoleContact 
CRMRolePhone 
CRMRoleEmail 
ClassCodes 
Companies 
ContactCommentTypes 
ContactGroups 
Contracts 
CostCategories 
Countries 
Currencies 
CurrenciesNotBase 
CustomerCommentTypes 
CustomerGroups 
CustomerTypes 
EmployeeGroups 
EmployeeCommentTypes 
ExchangeRateCommentTypes 
ExpenseCategories 
FinancialLayouts 
FiscalYears 
FreightClasses 
Honorifics 
IncidentCategory 
IncidentCommentTypes 
IncidentPriority 
IncidentResolution 
IncidentSeverity 
ItemCommentTypes 
ItemGroups 
ItemSiteCommentTypes 
ItemSourceCommentTypes 
Locales 
LocaleCountries 
LocaleLanguages 
LocationCommentTypes 
LotSerialCommentTypes 
OpportunityCommentTypes 
OpportunityStages 
OpportunitySources 
OpportunityTypes 
PlannerCodes 
PoProjects 
ProductCategories 
ProspectGroups 
ProfitCenters 
ProjectCommentTypes 
ProspectCommentTypes 
PurchaseOrderCommentTypes 
PurchaseOrderItemCommentTypes 
ReasonCodes 
RegistrationTypes 
Reports 
ReturnReasonCodes 
ReturnAuthCommentTypes 
ReturnAuthItemCommentTypes 
QuoteCommentTypes 
QuoteItemCommentTypes 
SalesOrderCommentTypes 
SalesOrderItemCommentTypes 
SalesCategories 
SalesCategoriesActive 
SalesReps 
SalesRepsActive 
SaleTypes 
ShipVias 
ShippingCharges 
ShippingForms 
ShippingZones 
SiteTypes 
SoProjects 
Subaccounts 
TaxAuths 
TaxClasses 
TaxCodes 
TaxZones 
TaxTypes 
Terms 
TaskCommentTypes 
TimeAttendanceCommentTypes 
TransferOrderCommentTypes 
TransferOrderItemCommentTypes 
UOMs 
Users 
ActiveUsers 
VendorCommentTypes 
VendorGroups 
VendorTypes 
WarehouseCommentTypes 
WoProjects 
WorkCenters 
WorkCentersActive 
WorkOrderCommentTypes 

Property Documentation

◆ allowNull

bool XComboBox::allowNull
readwriteinherited

◆ code

QString XComboBox::code
readwriteinherited

◆ currentDefault

QString XComboBox::currentDefault
readinherited

◆ defaultCode

XComboBox::Defaults XComboBox::defaultCode
readwriteinherited

◆ fieldName

QString XComboBox::fieldName
readwriteinherited

◆ listDisplayFieldName

QString XComboBox::listDisplayFieldName
readwriteinherited

◆ listIdFieldName

QString XComboBox::listIdFieldName
readwriteinherited

◆ listSchemaName

QString XComboBox::listSchemaName
readwriteinherited

◆ listTableName

QString XComboBox::listTableName
readwriteinherited

◆ nullStr

QString XComboBox::nullStr
readwriteinherited

◆ text

QString XComboBox::text
readwriteinherited

◆ type

WComboBox::WComboBoxTypes WComboBox::type
readwrite

Constructor & Destructor Documentation

◆ WComboBox()

WComboBox::WComboBox ( QWidget parent,
const char *  name = 0 
)

Member Function Documentation

◆ allowNull()

virtual bool XComboBox::allowNull ( ) const
virtualinherited

◆ append [1/2]

void XComboBox::append ( int  pId,
const QString &  pText 
)
slotinherited

◆ append [2/2]

void XComboBox::append ( int  pId,
const QString &  pText,
const QString &  pCode 
)
slotinherited

◆ cleanup()

void XComboBox::cleanup ( )
staticinherited

◆ clear

void XComboBox::clear ( )
slotinherited

◆ clicked

void XComboBox::clicked ( )
signalinherited

◆ code()

QString XComboBox::code ( ) const
inherited

◆ currentDefault()

QString XComboBox::currentDefault ( )
protectedinherited

◆ defaultCode()

virtual Defaults XComboBox::defaultCode ( ) const
virtualinherited

◆ fieldName()

QString XComboBox::fieldName ( ) const
inherited

◆ findItemsites

void WComboBox::findItemsites ( int  pItemID)
slot

◆ id() [1/2]

int XComboBox::id ( ) const
inherited

◆ id() [2/2]

int XComboBox::id ( int  pIndex) const
inherited

◆ init()

void XComboBox::init ( )
protectedinherited

◆ insertEditor() [1/2]

void XComboBox::insertEditor ( XComboBoxTypes  type,
const QString &  uiName,
const QString &  privilege 
)
inherited

◆ insertEditor() [2/2]

void XComboBox::insertEditor ( XComboBoxTypes  type,
QObject obj,
const char *  slot,
const QString &  privilege = QString() 
)
inherited

◆ isValid()

bool XComboBox::isValid ( ) const
inherited

◆ label()

QLabel * XComboBox::label ( ) const
inherited

◆ listDisplayFieldName()

QString XComboBox::listDisplayFieldName ( ) const
inherited

◆ listIdFieldName()

QString XComboBox::listIdFieldName ( ) const
inherited

◆ listSchemaName()

QString XComboBox::listSchemaName ( ) const
inherited

◆ listTableName()

QString XComboBox::listTableName ( ) const
inherited

◆ mousePressEvent()

void XComboBox::mousePressEvent ( QMouseEvent *  event)
protectedinherited

◆ newID

void XComboBox::newID ( int  )
signalinherited

◆ notNull

void XComboBox::notNull ( bool  )
signalinherited

◆ nullStr()

QString XComboBox::nullStr ( ) const
inherited

◆ populate [1/3]

void XComboBox::populate ( )
slotinherited

◆ populate [2/3]

void XComboBox::populate ( const QString &  pSql,
int  pSelected = -1 
)
slotinherited

◆ populate [3/3]

void XComboBox::populate ( XSqlQuery  pQuery,
int  pSelected = -1 
)
slotinherited

◆ removeItem()

void XComboBox::removeItem ( int  idx)
inherited

◆ replace()

void XComboBox::replace ( int  index,
const QString &  text,
const QString &  code 
)
inherited

◆ setAllowNull()

void WComboBox::setAllowNull ( bool  pAllowNull)
virtual

Reimplemented from XComboBox.

◆ setCode()

void XComboBox::setCode ( const QString &  pString)
inherited

◆ setDataWidgetMap

void XComboBox::setDataWidgetMap ( XDataWidgetMapper m)
slotinherited

◆ setDefaultCode

void XComboBox::setDefaultCode ( Defaults  p)
slotinherited

◆ setFieldName

void XComboBox::setFieldName ( QString  p)
slotinherited

◆ setId

void WComboBox::setId ( int  pId)
slot

◆ setItemCode()

void XComboBox::setItemCode ( int  index,
const QString &  code 
)
inherited

◆ setItemIcon()

void XComboBox::setItemIcon ( int  index,
const QIcon &  icon 
)
inherited

◆ setItemText()

void XComboBox::setItemText ( int  index,
const QString &  text 
)
inherited

◆ setLabel()

void XComboBox::setLabel ( QLabel pLab)
inherited

◆ setListDisplayFieldName

void XComboBox::setListDisplayFieldName ( QString  p)
slotinherited

◆ setListIdFieldName

void XComboBox::setListIdFieldName ( QString  p)
slotinherited

◆ setListSchemaName

void XComboBox::setListSchemaName ( QString  p)
slotinherited

◆ setListTableName

void XComboBox::setListTableName ( QString  p)
slotinherited

◆ setNull()

void XComboBox::setNull ( )
virtualinherited

◆ setNullStr()

void XComboBox::setNullStr ( const QString &  pNullStr)
inherited

◆ setText [1/3]

void XComboBox::setText ( const QString &  pString)
slotinherited

◆ setText [2/3]

void XComboBox::setText ( const QVariant &  pVariant)
slotinherited

◆ setText [3/3]

void XComboBox::setText ( QVariant &  pVariant)
slotinherited

◆ setType() [1/2]

void WComboBox::setType ( WComboBoxTypes  pType)

◆ setType() [2/2]

void XComboBox::setType ( XComboBoxTypes  pType)
inherited

◆ sHandleNewIndex

void XComboBox::sHandleNewIndex ( int  pIndex)
protectedslotinherited

◆ showPopup()

void XComboBox::showPopup ( )
virtualinherited

◆ sizeHint()

QSize XComboBox::sizeHint ( ) const
inherited

◆ type()

WComboBoxTypes WComboBox::type ( )

◆ updateMapperData

void XComboBox::updateMapperData ( )
slotinherited

◆ valid

void XComboBox::valid ( bool  )
signalinherited

◆ wheelEvent()

void XComboBox::wheelEvent ( QWheelEvent *  event)
protectedinherited

Member Data Documentation

◆ _allowNull

bool XComboBox::_allowNull
protectedinherited

◆ _data

XComboBoxPrivate* XComboBox::_data
protectedinherited

◆ _guiClientInterface

GuiClientInterface * XComboBox::_guiClientInterface
staticinherited

◆ _lastid

int XComboBox::_lastid
protectedinherited

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