#include <xtreewidget.h>
Public Types | |
enum | PopulateStyle { Replace, Append } |
Properties | |
QString | altDragString |
QString | dragString |
bool | populateLinear |
Public Member Functions | |
XTreeWidget (QWidget *) | |
~XTreeWidget () | |
Q_INVOKABLE void | addTopLevelItem (XTreeWidgetItem *item) |
Q_INVOKABLE void | addTopLevelItems (const QList< XTreeWidgetItem * > &items) |
QString | altDragString () const |
Q_INVOKABLE int | altId () const |
Q_INVOKABLE void | closePersistentEditor (XTreeWidgetItem *item, int column=0) |
virtual Q_INVOKABLE int | column (const QString) const |
Q_INVOKABLE int | columnCount () const |
Q_INVOKABLE int | currentColumn () const |
virtual Q_INVOKABLE XTreeWidgetItem * | currentItem () const |
QString | dragString () const |
Q_INVOKABLE void | editItem (XTreeWidgetItem *item, int column=0) |
Q_INVOKABLE QList< XTreeWidgetItem * > | findItems (const QString &text, Qt::MatchFlags flags, int column=0, int role=0) const |
Q_INVOKABLE XTreeWidgetItem * | findXTreeWidgetItemWithId (const XTreeWidget *ptree, const int pid) |
Q_INVOKABLE XTreeWidgetItem * | findXTreeWidgetItemWithId (const XTreeWidgetItem *ptreeitem, const int pid) |
Q_INVOKABLE QTreeWidgetItem * | headerItem () const |
void | hideColumn (const QString &) |
Q_INVOKABLE int | id () const |
Q_INVOKABLE int | id (const QString) const |
Q_INVOKABLE int | indexOfTopLevelItem (XTreeWidgetItem *item) const |
Q_INVOKABLE void | insertTopLevelItem (int index, XTreeWidgetItem *item) |
Q_INVOKABLE void | insertTopLevelItems (int index, const QList< XTreeWidgetItem * > &items) |
Q_INVOKABLE XTreeWidgetItem * | invisibleRootItem () const |
Q_INVOKABLE bool | isFirstItemColumnSpanned (const XTreeWidgetItem *item) const |
Q_INVOKABLE XTreeWidgetItem * | itemAbove (const XTreeWidgetItem *item) const |
Q_INVOKABLE QTreeWidgetItem * | itemAt (const QPoint &p) const |
Q_INVOKABLE QTreeWidgetItem * | itemAt (int x, int y) const |
Q_INVOKABLE QTreeWidgetItem * | itemBelow (const XTreeWidgetItem *item) const |
Q_INVOKABLE QWidget * | itemWidget (XTreeWidgetItem *item, int column) const |
Q_INVOKABLE void | moveColumn (int from, int to) |
Q_INVOKABLE void | openPersistentEditor (XTreeWidgetItem *item, int column=0) |
Q_INVOKABLE void | populate (XSqlQuery, bool=FALSE, PopulateStyle=Replace) |
Q_INVOKABLE void | populate (XSqlQuery, int, bool=FALSE, PopulateStyle=Replace) |
void | populate (const QString &, bool=FALSE) |
void | populate (const QString &, int, bool=FALSE) |
bool | populateLinear () |
Q_INVOKABLE QVariant | rawValue (const QString colname) const |
Q_INVOKABLE void | removeItemWidget (XTreeWidgetItem *item, int column) |
void | sCopyCellToClipboard () |
void | sCopyRowToClipboard () |
void | sCopyVisibleToClipboard () |
Q_INVOKABLE QList< XTreeWidgetItem * > | selectedItems () const |
void | setAltDragString (QString) |
virtual Q_INVOKABLE void | setColumnCount (int columns) |
virtual Q_INVOKABLE void | setColumnLocked (int, bool) |
virtual Q_INVOKABLE void | setColumnVisible (int, bool) |
Q_INVOKABLE void | setCurrentItem (XTreeWidgetItem *item) |
Q_INVOKABLE void | setCurrentItem (XTreeWidgetItem *item, int column) |
Q_INVOKABLE void | setCurrentItem (XTreeWidgetItem *item, int column, QItemSelectionModel::SelectionFlags command) |
void | setDragString (QString) |
Q_INVOKABLE void | setFirstItemColumnSpanned (const XTreeWidgetItem *item, bool span) |
Q_INVOKABLE void | setHeaderItem (XTreeWidgetItem *item) |
Q_INVOKABLE void | setHeaderLabel (const QString &label) |
Q_INVOKABLE void | setHeaderLabels (const QStringList &labels) |
Q_INVOKABLE void | setId (int pId, bool pClear=true) |
Q_INVOKABLE void | setId (int pId, int pAltId, bool pClear=true) |
Q_INVOKABLE void | setItemWidget (XTreeWidgetItem *item, int column, QWidget *widget) |
void | setPopulateLinear (bool alwaysLinear=true) |
void | sExport () |
void | showColumn (int colnum) |
void | showColumn (const QString &) |
Q_INVOKABLE int | sortColumn () const |
virtual Q_INVOKABLE void | sortItems (int column, Qt::SortOrder order) |
Q_INVOKABLE Qt::SortOrder | sortOrder () const |
void | sSearch (const QString &) |
Q_INVOKABLE QTreeWidgetItem * | takeTopLevelItem (int index) |
Q_INVOKABLE QString | toCsv () const |
Q_INVOKABLE QString | toHtml () const |
virtual Q_INVOKABLE XTreeWidgetItem * | topLevelItem (int idx) const |
Q_INVOKABLE int | topLevelItemCount () const |
Q_INVOKABLE QString | toTxt () const |
Q_INVOKABLE QString | toVcf () const |
Q_INVOKABLE QRect | visualItemRect (const XTreeWidgetItem *item) const |
Public Slots | |
void | addColumn (const QString &, int, int, bool=true, const QString=QString(), const QString=QString(), const int scale=0) |
void | clear () |
void | hideColumn (int colnum) |
Signals | |
void | currentItemChanged (XTreeWidgetItem *, XTreeWidgetItem *) |
void | itemActivated (XTreeWidgetItem *item, int column) |
void | itemChanged (XTreeWidgetItem *item, int column) |
void | itemClicked (XTreeWidgetItem *item, int column) |
void | itemCollapsed (XTreeWidgetItem *item) |
void | itemDoubleClicked (XTreeWidgetItem *item, int column) |
void | itemEntered (XTreeWidgetItem *item, int column) |
void | itemExpanded (XTreeWidgetItem *item) |
void | itemPressed (XTreeWidgetItem *item, int column) |
void | itemSelected (int) |
void | newId (int) |
void | populated () |
void | populateMenu (QMenu *, QTreeWidgetItem *) |
void | populateMenu (QMenu *, QTreeWidgetItem *, int) |
void | populateMenu (QMenu *, XTreeWidgetItem *) |
void | populateMenu (QMenu *, XTreeWidgetItem *, int) |
void | resorted () |
void | valid (bool) |
Static Public Attributes | |
static GuiClientInterface * | _guiClientInterface = 0 |
Protected Attributes | |
QPoint | dragStartPosition |
Protected Member Functions | |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | resizeEvent (QResizeEvent *) |
Protected Slots | |
void | populateCalculatedColumns () |
void | populateWorker () |
void | sCurrentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous) |
void | sHeaderClicked (int) |
void | sItemActivated (QTreeWidgetItem *item, int column) |
void | sItemChanged (QTreeWidgetItem *item, int column) |
void | sItemClicked (QTreeWidgetItem *item, int column) |
void | sItemCollapsed (QTreeWidgetItem *item) |
void | sItemDoubleClicked (QTreeWidgetItem *item, int column) |
void | sItemEntered (QTreeWidgetItem *item, int column) |
void | sItemExpanded (QTreeWidgetItem *item) |
void | sItemPressed (QTreeWidgetItem *item, int column) |
XTreeWidget::XTreeWidget | ( | QWidget * | pParent | ) |
XTreeWidget::~XTreeWidget | ( | ) |
|
slot |
|
inline |
void XTreeWidget::addTopLevelItems | ( | const QList< XTreeWidgetItem * > & | items | ) |
QString XTreeWidget::altDragString | ( | ) | const |
int XTreeWidget::altId | ( | ) | const |
|
slot |
|
inline |
|
virtual |
|
inline |
|
inline |
|
virtual |
|
signal |
QString XTreeWidget::dragString | ( | ) | const |
|
inline |
QList< XTreeWidgetItem * > XTreeWidget::findItems | ( | const QString & | text, |
Qt::MatchFlags | flags, | ||
int | column = 0 , |
||
int | role = 0 |
||
) | const |
XTreeWidgetItem * XTreeWidget::findXTreeWidgetItemWithId | ( | const XTreeWidget * | ptree, |
const int | pid | ||
) |
XTreeWidgetItem * XTreeWidget::findXTreeWidgetItemWithId | ( | const XTreeWidgetItem * | ptreeitem, |
const int | pid | ||
) |
|
inline |
|
inlineslot |
void XTreeWidget::hideColumn | ( | const QString & | pColumn | ) |
int XTreeWidget::id | ( | ) | const |
int XTreeWidget::id | ( | const QString | p | ) | const |
|
inline |
|
inline |
void XTreeWidget::insertTopLevelItems | ( | int | index, |
const QList< XTreeWidgetItem * > & | items | ||
) |
XTreeWidgetItem * XTreeWidget::invisibleRootItem | ( | ) | const |
|
inline |
XTreeWidgetItem * XTreeWidget::itemAbove | ( | const XTreeWidgetItem * | item | ) | const |
|
signal |
|
inline |
|
inline |
|
inline |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
inline |
|
protectedvirtual |
|
protectedvirtual |
|
inline |
|
signal |
|
inline |
void XTreeWidget::populate | ( | XSqlQuery | pQuery, |
bool | pUseAltId = FALSE , |
||
PopulateStyle | popstyle = Replace |
||
) |
void XTreeWidget::populate | ( | XSqlQuery | pQuery, |
int | pIndex, | ||
bool | pUseAltId = FALSE , |
||
PopulateStyle | popstyle = Replace |
||
) |
void XTreeWidget::populate | ( | const QString & | pSql, |
bool | pUseAltId = FALSE |
||
) |
void XTreeWidget::populate | ( | const QString & | pSql, |
int | pIndex, | ||
bool | pUseAltId = FALSE |
||
) |
|
protectedslot |
|
signal |
bool XTreeWidget::populateLinear | ( | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
protectedslot |
QVariant XTreeWidget::rawValue | ( | const QString | colname | ) | const |
Returns the Raw Value of the first selected row on colname
|
inline |
|
protectedvirtual |
|
signal |
void XTreeWidget::sCopyCellToClipboard | ( | ) |
void XTreeWidget::sCopyRowToClipboard | ( | ) |
void XTreeWidget::sCopyVisibleToClipboard | ( | ) |
|
protectedslot |
QList< XTreeWidgetItem * > XTreeWidget::selectedItems | ( | ) | const |
void XTreeWidget::setAltDragString | ( | QString | pAltDragString | ) |
|
virtual |
|
virtual |
|
virtual |
|
inline |
|
inline |
|
inline |
void XTreeWidget::setDragString | ( | QString | pDragString | ) |
|
inline |
|
inline |
|
inline |
|
inline |
void XTreeWidget::setId | ( | int | pId, |
bool | pClear = true |
||
) |
Selects a row with a matching value pId on the first column in the result set. If pClear is true then any previous selections are cleared.
void XTreeWidget::setId | ( | int | pId, |
int | pAltId, | ||
bool | pClear = true |
||
) |
Selects a row with a matching values pId and pAltId on the first and second columns respectively in the result set. If pClear is true then any previous selections are cleared.
|
inline |
void XTreeWidget::setPopulateLinear | ( | bool | alwaysLinear = true | ) |
void XTreeWidget::sExport | ( | ) |
|
protectedslot |
|
inline |
void XTreeWidget::showColumn | ( | const QString & | pColumn | ) |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
inline |
|
virtual |
|
inline |
void XTreeWidget::sSearch | ( | const QString & | pTarget | ) |
|
inline |
QString XTreeWidget::toCsv | ( | ) | const |
QString XTreeWidget::toHtml | ( | ) | const |
|
virtual |
|
inline |
QString XTreeWidget::toTxt | ( | ) | const |
QString XTreeWidget::toVcf | ( | ) | const |
|
signal |
|
inline |
|
static |
|
protected |
|
readwrite |
|
readwrite |
|
readwrite |
Generated on Fri Oct 7 2016 15:41:44 | xTuple ERP Programmer Reference, Version 4.6.0 | 1.8.10 |