Public Types | Properties | Public Member Functions | Public Slots | Signals | Static Public Attributes | Protected Attributes | Protected Member Functions
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,
  SalesCategoriesActive, SalesReps, SalesRepsActive, 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 bool allowNull () const
QString code () const
virtual Defaults defaultCode ()
Q_INVOKABLE bool editable () const
QString fieldName () const
int id (int) const
Q_INVOKABLE int id () const
Q_INVOKABLE void insertEditor (int type, const QString &uiName, const QString &privilege)
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 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 &)
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
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 
SalesCategoriesActive 
SalesReps 
SalesRepsActive 
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 
)

Member Function Documentation

virtual bool XComboBox::allowNull ( ) const [inline, 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]

Reimplemented from QComboBox.

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

Reimplemented from QComboBox.

QString XComboBox::fieldName ( ) const [inline]
int XComboBox::id ( int  pIndex) const
int XComboBox::id ( ) const
void XComboBox::insertEditor ( int  type,
const QString uiName,
const QString privilege 
)
bool XComboBox::isValid ( ) const
Q_INVOKABLE QLabel* XComboBox::label ( ) 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 QComboBox.

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

Reimplemented from QComboBox.

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

Reimplemented in WComboBox.

void XComboBox::setCode ( const QString pString)
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::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]
QSize XComboBox::sizeHint ( ) const [virtual]

Reimplemented from QComboBox.

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::nullStr [read, write]
QString XComboBox::text [read, write]

Reimplemented in WComboBox.


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

Generated on Mon Jan 23 2012 12:22:40 xTuple ERP Programmer Reference, Version 3.8.0 doxygen 1.7.6.1