RibbonGallery class represents the gallery control. More...
#include <Qtitan>
Inherits QWidget.
| RibbonGallery ( QWidget * parent = Q_NULL ) | |
| virtual | ~RibbonGallery () |
| int | checkedIndex () const |
| RibbonGalleryItem * | checkedItem () const |
| void | ensureVisible ( int index ) |
| RibbonGalleryGroup * | galleryGroup () const |
| virtual QRect | getBorders () const |
| QRect | getDrawItemRect ( int index ) |
| RibbonGalleryItem * | getItem ( int index ) const |
| int | getItemCount () const |
| QRect | getItemsRect () const |
| int | getSelectedItem () const |
| void | hideSelection () |
| int | hitTestItem ( QPoint point, QRect * rect = Q_NULL ) const |
| bool | isBorderVisible () const |
| bool | isItemSelected () const |
| bool | isLabelsVisible () const |
| bool | isResizable () const |
| bool | isShowAsButton () const |
| OfficePopupMenu * | popupMenu () const |
| Qt::ScrollBarPolicy | scrollBarPolicy () const |
| virtual void | selectedItemChanged () |
| void | setBorderVisible ( bool visible ) |
| void | setCheckedIndex ( int index ) |
| void | setCheckedItem ( const RibbonGalleryItem * item ) |
| void | setGalleryGroup ( RibbonGalleryGroup * items ) |
| void | setLabelsVisible ( bool showLabels ) |
| void | setPopupMenu ( OfficePopupMenu * popupMenu ) |
| void | setScrollBarPolicy ( Qt::ScrollBarPolicy policy ) |
| void | setSelectedItem ( int selected ) |
| virtual QSize | minimumSizeHint () const |
| virtual QSize | sizeHint () const |
| void | currentItemChanged ( RibbonGalleryItem * current, RibbonGalleryItem * previous ) |
| void | itemClicked ( RibbonGalleryItem * item ) |
| void | itemClicking ( RibbonGalleryItem * item, bool & handled ) |
| void | itemPressed ( RibbonGalleryItem * item ) |
| void | itemSelectionChanged () |
| virtual void | focusOutEvent ( QFocusEvent * event ) |
| virtual void | leaveEvent ( QEvent * event ) |
| virtual void | mouseMoveEvent ( QMouseEvent * event ) |
| virtual void | mousePressEvent ( QMouseEvent * event ) |
| virtual void | mouseReleaseEvent ( QMouseEvent * event ) |
| virtual void | paintEvent ( QPaintEvent * ) |
| virtual void | resizeEvent ( QResizeEvent * event ) |
RibbonGallery class represents the gallery control.
Access functions:
| bool | isBorderVisible () const |
| void | setBorderVisible ( bool visible ) |
Access functions:
| bool | isResizable () const |
Access functions:
| Qt::ScrollBarPolicy | scrollBarPolicy () const |
| void | setScrollBarPolicy ( Qt::ScrollBarPolicy policy ) |
Constructs RibbonGallery object with the given parent.
Destructor of the RibbonGallery object.
Returns chcked item index in the gallery.
See also setCheckedIndex().
Returs the reference to the RibbonGalleryItem object of the chcked item in the gallery. See int getCheckedIndex();
See also setCheckedItem().
Signal throws when the current item was changed. previous - reference to the previous selected item. current the reference to the current selected item.
Reimplemented from QWidget::focusOutEvent().
Returns reference to the RibbonGalleryGroup object.
See also setGalleryGroup().
Returns the bounds of gallery in the rectangle form.
Returns the bounded rectangle of the item by the given index.
Returns reference to the RibbonGalleryItem by the given index.
Returns count of the items in the gallery.
Returns the united boundary of all elements within the galleries.
Returns the index of the selected element in the gallery.
Hide selection of the gallery's item.
Returns the index of the item by given mouse point. If rect is not Q_NULL it will contain the rectangle the gallery's item.
Returns whether selected items in the gallery.
Returns if the gallery needs to draw a normal button. Function is reserved.
Signal throws when you click on the item in the gallery.
Signal throws when user is clicking on the item in the gallery. item - the reference to teh clicking element. handled - the flag to prevent of closing the gallery popup. If handled is false then the gallery popup will not be closed.
Signal throws when you press mouse button on the item in the gallery.
Signal throws when selected was changed.
Reimplemented from QWidget::leaveEvent().
Reimplemented from QWidget::minimumSizeHint().
Reimplemented from QWidget::mouseMoveEvent().
Reimplemented from QWidget::mousePressEvent().
Reimplemented from QWidget::mouseReleaseEvent().
Reimplemented from QWidget::paintEvent().
Returns gallery's popup menu.
See also setPopupMenu().
Reimplemented from QWidget::resizeEvent().
Sets checked item with the given index.
See also checkedIndex().
Sets checked item with the given reference to the RibbonGalleryItem object. See setCheckedIndex(int index).
See also checkedItem().
Sets group for the gallery. group - is a pointer to the elements group.
See also galleryGroup().
See also isLabelsVisible().
Sets popup menu for the gallery.
See also popupMenu().
Sets the selected element in the gallery. selected is the index of the selected element.
Reimplemented from QWidget::sizeHint().