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
XComboBox Class Reference

#include <xcombobox.h>

Inheritance diagram for XComboBox:
QComboBox CalendarComboBox TaxExemptCluster WComboBox

Public Types

enum  Defaults { First, None }
 
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
 
XComboBoxTypes type
 

Public Slots

void append (int, const QString &)
 
void append (int, const QString &, const QString &)
 
void clear ()
 
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

 XComboBox (bool, QWidget *=0, const char *=0)
 
 XComboBox (QWidget *=0, const char *=0)
 
virtual ~XComboBox ()
 
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 (XComboBoxTypes)
 
virtual void showPopup ()
 
QSize sizeHint () const
 
XComboBoxTypes 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

Enumerator
First 
None 

◆ XComboBoxTypes

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
readwrite

◆ code

QString XComboBox::code
readwrite

◆ currentDefault

QString XComboBox::currentDefault
read

◆ defaultCode

XComboBox::Defaults XComboBox::defaultCode
readwrite

◆ fieldName

QString XComboBox::fieldName
readwrite

◆ listDisplayFieldName

QString XComboBox::listDisplayFieldName
readwrite

◆ listIdFieldName

QString XComboBox::listIdFieldName
readwrite

◆ listSchemaName

QString XComboBox::listSchemaName
readwrite

◆ listTableName

QString XComboBox::listTableName
readwrite

◆ nullStr

QString XComboBox::nullStr
readwrite

◆ text

QString XComboBox::text
readwrite

◆ type

enum XComboBox::XComboBoxTypes XComboBox::type
readwrite

Constructor & Destructor Documentation

◆ XComboBox() [1/2]

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

◆ XComboBox() [2/2]

XComboBox::XComboBox ( bool  pEditable,
QWidget pParent = 0,
const char *  pName = 0 
)

◆ ~XComboBox()

XComboBox::~XComboBox ( )
virtual

Member Function Documentation

◆ allowNull()

virtual bool XComboBox::allowNull ( ) const
virtual

◆ append [1/2]

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

◆ append [2/2]

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

◆ cleanup()

void XComboBox::cleanup ( )
static

◆ clear

void XComboBox::clear ( )
slot

◆ clicked

void XComboBox::clicked ( )
signal

◆ code()

QString XComboBox::code ( ) const

◆ currentDefault()

QString XComboBox::currentDefault ( )
protected

◆ defaultCode()

virtual Defaults XComboBox::defaultCode ( ) const
virtual

◆ fieldName()

QString XComboBox::fieldName ( ) const

◆ id() [1/2]

int XComboBox::id ( ) const

◆ id() [2/2]

int XComboBox::id ( int  pIndex) const

◆ init()

void XComboBox::init ( )
protected

◆ insertEditor() [1/2]

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

◆ insertEditor() [2/2]

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

◆ isValid()

bool XComboBox::isValid ( ) const

◆ label()

QLabel * XComboBox::label ( ) const

◆ listDisplayFieldName()

QString XComboBox::listDisplayFieldName ( ) const

◆ listIdFieldName()

QString XComboBox::listIdFieldName ( ) const

◆ listSchemaName()

QString XComboBox::listSchemaName ( ) const

◆ listTableName()

QString XComboBox::listTableName ( ) const

◆ mousePressEvent()

void XComboBox::mousePressEvent ( QMouseEvent *  event)
protected

◆ newID

void XComboBox::newID ( int  )
signal

◆ notNull

void XComboBox::notNull ( bool  )
signal

◆ nullStr()

QString XComboBox::nullStr ( ) const

◆ populate [1/3]

void XComboBox::populate ( )
slot

◆ populate [2/3]

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

◆ populate [3/3]

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

◆ removeItem()

void XComboBox::removeItem ( int  idx)

◆ replace()

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

◆ setAllowNull()

void XComboBox::setAllowNull ( bool  pAllowNull)
virtual

Reimplemented in WComboBox.

◆ setCode()

void XComboBox::setCode ( const QString &  pString)

◆ setDataWidgetMap

void XComboBox::setDataWidgetMap ( XDataWidgetMapper m)
slot

◆ setDefaultCode

void XComboBox::setDefaultCode ( Defaults  p)
slot

◆ setFieldName

void XComboBox::setFieldName ( QString  p)
slot

◆ setId

void XComboBox::setId ( int  pTarget)
slot

◆ setItemCode()

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

◆ setItemIcon()

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

◆ setItemText()

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

◆ setLabel()

void XComboBox::setLabel ( QLabel pLab)

◆ setListDisplayFieldName

void XComboBox::setListDisplayFieldName ( QString  p)
slot

◆ setListIdFieldName

void XComboBox::setListIdFieldName ( QString  p)
slot

◆ setListSchemaName

void XComboBox::setListSchemaName ( QString  p)
slot

◆ setListTableName

void XComboBox::setListTableName ( QString  p)
slot

◆ setNull()

void XComboBox::setNull ( )
virtual

◆ setNullStr()

void XComboBox::setNullStr ( const QString &  pNullStr)

◆ setText [1/3]

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

◆ setText [2/3]

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

◆ setText [3/3]

void XComboBox::setText ( QVariant &  pVariant)
slot

◆ setType()

void XComboBox::setType ( XComboBoxTypes  pType)

◆ sHandleNewIndex

void XComboBox::sHandleNewIndex ( int  pIndex)
protectedslot

◆ showPopup()

void XComboBox::showPopup ( )
virtual

◆ sizeHint()

QSize XComboBox::sizeHint ( ) const

◆ type()

XComboBoxTypes XComboBox::type ( )

◆ updateMapperData

void XComboBox::updateMapperData ( )
slot

◆ valid

void XComboBox::valid ( bool  )
signal

◆ wheelEvent()

void XComboBox::wheelEvent ( QWheelEvent *  event)
protected

Member Data Documentation

◆ _allowNull

bool XComboBox::_allowNull
protected

◆ _data

XComboBoxPrivate* XComboBox::_data
protected

◆ _guiClientInterface

GuiClientInterface * XComboBox::_guiClientInterface
static

◆ _lastid

int XComboBox::_lastid
protected

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