XComboBox Class Reference

#include <xcombobox.h>

List of all members.

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, 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,
  SalesReps, SalesRepsActive, ShipVias, ShippingCharges,
  ShippingForms, 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 (bool, QWidget *=0, const char *=0)
 XComboBox (QWidget *=0, const char *=0)
virtual bool allowNull () const
QString code () const
virtual Defaults defaultCode ()
Q_INVOKABLE bool editable () const
QString fieldName () const
Q_INVOKABLE int id () const
int id (int) const
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 (QString)
Q_INVOKABLE void setEditable (bool)
Q_INVOKABLE void setLabel (QLabel *pLab)
virtual void setNull ()
void setNullStr (const QString &)
void setType (XComboBoxTypes)
QSize sizeHint () const
XComboBoxTypes type ()

Public Slots

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

Signals

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

Protected Attributes

bool _allowNull
QList< QString_codes
QList< int > _ids
QLabel_label
int _lastId
QString _nullStr
enum XComboBoxTypes _type

Protected Member Functions

QString currentDefault ()
void mousePressEvent (QMouseEvent *)

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 
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 
SalesReps 
SalesRepsActive 
ShipVias 
ShippingCharges 
ShippingForms 
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 
)

Member Function Documentation

virtual bool XComboBox::allowNull (  )  const [inline, virtual]
void XComboBox::append ( int  pId,
const QString pText,
const QString pCode 
) [slot]
void XComboBox::append ( int  pId,
const QString pText 
) [slot]
void XComboBox::clear (  )  [slot]

Reimplemented from QComboBox.

void XComboBox::clicked (  )  [signal]
QString XComboBox::code (  )  const
QString XComboBox::currentDefault (  )  [protected]
virtual Defaults XComboBox::defaultCode (  )  [inline, virtual]
bool XComboBox::editable (  )  const

Reimplemented from QComboBox.

QString XComboBox::fieldName (  )  const [inline]
int XComboBox::id (  )  const
int XComboBox::id ( int  pIndex  )  const
bool XComboBox::isValid (  )  const
Q_INVOKABLE QLabel* XComboBox::label (  )  const [inline]
QString XComboBox::listDisplayFieldName (  )  const [inline]
QString XComboBox::listIdFieldName (  )  const [inline]
QString XComboBox::listSchemaName (  )  const [inline]
QString XComboBox::listTableName (  )  const [inline]
void XComboBox::mousePressEvent ( QMouseEvent event  )  [protected, virtual]

Reimplemented from QWidget.

void XComboBox::newID ( int   )  [signal]
void XComboBox::notNull ( bool   )  [signal]
QString XComboBox::nullStr (  )  const [inline]
void XComboBox::populate (  )  [slot]
void XComboBox::populate ( const QString pSql,
int  pSelected = -1 
) [slot]
void XComboBox::populate ( XSqlQuery  pQuery,
int  pSelected = -1 
) [slot]
Q_INVOKABLE void XComboBox::removeItem ( int  idx  )  [inline]

Reimplemented from QComboBox.

void XComboBox::setAllowNull ( bool  pAllowNull  )  [virtual]

Reimplemented in WComboBox.

void XComboBox::setCode ( QString  pString  ) 
void XComboBox::setDataWidgetMap ( XDataWidgetMapper m  )  [slot]
void XComboBox::setDefaultCode ( Defaults  p  )  [inline, slot]
void XComboBox::setEditable ( bool  pEditable  ) 

Reimplemented from QComboBox.

void XComboBox::setFieldName ( QString  p  )  [inline, slot]
void XComboBox::setId ( int  pTarget  )  [slot]

Reimplemented in WComboBox.

void XComboBox::setLabel ( QLabel pLab  ) 
void XComboBox::setListDisplayFieldName ( QString  p  )  [inline, slot]
void XComboBox::setListIdFieldName ( QString  p  )  [inline, 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 ( const QVariant pVariant  )  [slot]
void XComboBox::setText ( const QString pString  )  [slot]
void XComboBox::setText ( QVariant pVariant  )  [slot]
void XComboBox::setType ( XComboBoxTypes  pType  ) 
QSize XComboBox::sizeHint (  )  const [virtual]

Reimplemented from QWidget.

XComboBoxTypes XComboBox::type (  ) 

Reimplemented in WComboBox.

void XComboBox::updateMapperData (  )  [slot]
void XComboBox::valid ( bool   )  [signal]

Member Data Documentation

bool XComboBox::_allowNull [protected]
QList<int> XComboBox::_ids [protected]
QLabel* XComboBox::_label [protected]
int XComboBox::_lastId [protected]
enum XComboBoxTypes XComboBox::_type [protected]

Property Documentation

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

Reimplemented in WComboBox.


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

Generated on Tue Apr 20 12:03:57 2010 xTuple ERP Programmer Reference, Version 3.5.0 doxygen 1.6.1