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

#include <xcombobox.h>

Public Types

enum  Defaults { First, None }
 
enum  XComboBoxTypes {
  AddressCommentTypes, Adhoc, APBankAccounts, APTerms,
  ARBankAccounts, ARCMReasonCodes, ARDMReasonCodes, ARTerms,
  AccountingPeriods, Agent, AllCommentTypes, AllProjects,
  BBOMHeadCommentTypes, BBOMItemCommentTypes, BOMHeadCommentTypes, BOMItemCommentTypes,
  BOOHeadCommentTypes, BOOItemCommentTypes, CRMAccounts, CRMAccountCommentTypes,
  ClassCodes, Companies, ContactCommentTypes, Contracts,
  CostCategories, Countries, Currencies, CurrenciesNotBase,
  CustomerCommentTypes, CustomerGroups, CustomerTypes, EmployeeCommentTypes,
  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, ProfitCenters, ProjectCommentTypes,
  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, TodoItemCommentTypes,
  TransferOrderCommentTypes, TransferOrderItemCommentTypes, UOMs, Users,
  ActiveUsers, VendorCommentTypes, VendorGroups, VendorTypes,
  WarehouseCommentTypes, WoProjects, WorkCenters, 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 Member Functions

 XComboBox (QWidget *=0, const char *=0)
 
 XComboBox (bool, QWidget *=0, const char *=0)
 
virtual ~XComboBox ()
 
virtual bool allowNull () const
 
QString code () const
 
virtual Defaults defaultCode () const
 
QString fieldName () const
 
int id (int) const
 
Q_INVOKABLE int id () 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)
 
virtual void setAllowNull (bool)
 
void setCode (const QString &)
 
Q_INVOKABLE void setLabel (QLabel *pLab)
 
virtual void setNull ()
 
void setNullStr (const QString &)
 
void setType (XComboBoxTypes)
 
virtual void showPopup ()
 
QSize sizeHint () const
 
XComboBoxTypes type ()
 

Public Slots

void append (int, const QString &)
 
void append (int, const QString &, const QString &)
 
void clear ()
 
void populate (XSqlQuery, int=-1)
 
void populate (const QString &, int=-1)
 
void populate ()
 
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 (QVariant &)
 
void setText (const QString &)
 
void setText (const QVariant &)
 
void updateMapperData ()
 

Signals

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

Static Public Attributes

static GuiClientInterface_guiClientInterface = 0
 

Protected Attributes

bool _allowNull
 
XComboBoxPrivate_data
 

Protected Member Functions

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

Protected Slots

void sHandleNewIndex (int)
 

Member Enumeration Documentation

Enumerator
First 
None 
Enumerator
AddressCommentTypes 
Adhoc 
APBankAccounts 
APTerms 
ARBankAccounts 
ARCMReasonCodes 
ARDMReasonCodes 
ARTerms 
AccountingPeriods 
Agent 
AllCommentTypes 
AllProjects 
BBOMHeadCommentTypes 
BBOMItemCommentTypes 
BOMHeadCommentTypes 
BOMItemCommentTypes 
BOOHeadCommentTypes 
BOOItemCommentTypes 
CRMAccounts 
CRMAccountCommentTypes 
ClassCodes 
Companies 
ContactCommentTypes 
Contracts 
CostCategories 
Countries 
Currencies 
CurrenciesNotBase 
CustomerCommentTypes 
CustomerGroups 
CustomerTypes 
EmployeeCommentTypes 
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 
ProfitCenters 
ProjectCommentTypes 
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 
TodoItemCommentTypes 
TransferOrderCommentTypes 
TransferOrderItemCommentTypes 
UOMs 
Users 
ActiveUsers 
VendorCommentTypes 
VendorGroups 
VendorTypes 
WarehouseCommentTypes 
WoProjects 
WorkCenters 
WorkOrderCommentTypes 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual bool XComboBox::allowNull ( ) const
virtual
void XComboBox::append ( int  pId,
const QString &  pText 
)
slot
void XComboBox::append ( int  pId,
const QString &  pText,
const QString &  pCode 
)
slot
void XComboBox::clear ( )
slot
void XComboBox::clicked ( )
signal
QString XComboBox::code ( ) const
QString XComboBox::currentDefault ( )
protected
virtual Defaults XComboBox::defaultCode ( ) const
virtual
QString XComboBox::fieldName ( ) const
int XComboBox::id ( int  pIndex) const
int XComboBox::id ( ) const
void XComboBox::init ( )
protected
void XComboBox::insertEditor ( XComboBoxTypes  type,
const QString &  uiName,
const QString &  privilege 
)
void XComboBox::insertEditor ( XComboBoxTypes  type,
QObject obj,
const char *  slot,
const QString &  privilege = QString() 
)
bool XComboBox::isValid ( ) const
QLabel * XComboBox::label ( ) const
QString XComboBox::listDisplayFieldName ( ) const
QString XComboBox::listIdFieldName ( ) const
QString XComboBox::listSchemaName ( ) const
QString XComboBox::listTableName ( ) const
void XComboBox::mousePressEvent ( QMouseEvent *  event)
protected
void XComboBox::newID ( int  )
signal
void XComboBox::notNull ( bool  )
signal
QString XComboBox::nullStr ( ) const
void XComboBox::populate ( XSqlQuery  pQuery,
int  pSelected = -1 
)
slot
void XComboBox::populate ( const QString &  pSql,
int  pSelected = -1 
)
slot
void XComboBox::populate ( )
slot
void XComboBox::removeItem ( int  idx)
void XComboBox::setAllowNull ( bool  pAllowNull)
virtual

Reimplemented in WComboBox.

void XComboBox::setCode ( const QString &  pString)
void XComboBox::setDataWidgetMap ( XDataWidgetMapper m)
slot
void XComboBox::setDefaultCode ( Defaults  p)
slot
void XComboBox::setFieldName ( QString  p)
slot
void XComboBox::setId ( int  pTarget)
slot
void XComboBox::setLabel ( QLabel pLab)
void XComboBox::setListDisplayFieldName ( QString  p)
slot
void XComboBox::setListIdFieldName ( QString  p)
slot
void XComboBox::setListSchemaName ( QString  p)
slot
void XComboBox::setListTableName ( QString  p)
slot
void XComboBox::setNull ( )
virtual
void XComboBox::setNullStr ( const QString &  pNullStr)
void XComboBox::setText ( QVariant &  pVariant)
slot
void XComboBox::setText ( const QString &  pString)
slot
void XComboBox::setText ( const QVariant &  pVariant)
slot
void XComboBox::setType ( XComboBoxTypes  pType)
void XComboBox::sHandleNewIndex ( int  pIndex)
protectedslot
void XComboBox::showPopup ( )
virtual
QSize XComboBox::sizeHint ( ) const
XComboBoxTypes XComboBox::type ( )
void XComboBox::updateMapperData ( )
slot
void XComboBox::valid ( bool  )
signal

Member Data Documentation

bool XComboBox::_allowNull
protected
XComboBoxPrivate* XComboBox::_data
protected
GuiClientInterface * XComboBox::_guiClientInterface = 0
static

Property Documentation

bool XComboBox::allowNull
readwrite
QString XComboBox::code
readwrite
QString XComboBox::currentDefault
read
XComboBox::Defaults XComboBox::defaultCode
readwrite
QString XComboBox::fieldName
readwrite
QString XComboBox::listDisplayFieldName
readwrite
QString XComboBox::listIdFieldName
readwrite
QString XComboBox::listSchemaName
readwrite
QString XComboBox::listTableName
readwrite
QString XComboBox::nullStr
readwrite
QString XComboBox::text
readwrite
enum XComboBox::XComboBoxTypes XComboBox::type
readwrite

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

Generated on Tue Oct 11 2016 14:00:00 xTuple ERP Programmer Reference, Version 4.3.0 doxygen 1.8.10