![]() |
API Documentation
|
Shows a series of Buttons with large icons that represent DesignObjects that allow the user to choose one. More...
#include <DesignObjectGallery.h>
Public Types | |
| enum | SelectionMode { e_no_selection , e_single_selection , e_multi_selection } |
Signals | |
| void | onSelectedSignal (Buffer< UUID > ids) |
Public Member Functions | |
| void | clear () override |
| const Buffer< UUID > & | currentSelection () const |
| DesignObjectGallery (QWidget *parent=nullptr) | |
| void | fillWithMaterials () |
| void | fillWithModels () |
| Buffer< Model > | getCurrentSelectedModels () const |
| const Buffer< UUID > & | ids () const |
| void | setButtonVisible (const UUID &id, bool visible) |
| void | setLibrary (LibraryManager *manager) |
| void | setManager (QTModelManager *manager) |
| void | setObjects (const Buffer< UUID > &objects) |
| void | setSelected (const Buffer< UUID > &id) |
| void | setSelectionMode (SelectionMode selection_mode) |
| void | sortByName () |
| ~DesignObjectGallery () | |
Public Member Functions inherited from ButtonGallery | |
| virtual void | addButton (Button *button) |
| ButtonGallery (QWidget *parent=nullptr) | |
| const Buffer< Button * > & | buttons () const |
| virtual void | removeButton (Button *button) |
| void | setIconSizeMultiplier (fltp04 multiplier) |
| virtual void | sortButtons () |
| Sorts buttons alphabetically. | |
| virtual void | sortButtons (const std::function< bool(Button *, Button *)> &sorter) |
| void | updateGalleryLayout () |
Public Member Functions inherited from QCustomScrollArea | |
| bool | eventFilter (QObject *, QEvent *event) override |
| QCustomScrollArea (QWidget *parent=nullptr) | |
| void | setUseFullScroll (bool use_full_scroll) |
| void | setWidget (QWidget *w) |
| QSize | sizeHint () const override |
| QWidget * | takeWidget () |
| bool | useFullScroll () const |
Protected Slots | |
| void | updateObject (UUID id) |
Protected Member Functions | |
| TranslatedString | getObjectName (const UUID &id) const |
| const QTModelManager * | manager () |
| void | resizeEvent (QResizeEvent *resize_event) override |
| void | updateFromLibrary (const UUID &id) |
| void | updateFromManager (const UUID &id) |
Protected Attributes | |
| Dictionary< UUID, DynamicPointer< CaptureRequest > > | m_active_requests |
| Ribbon * | m_browser_ribbon |
| Dictionary< UUID, Button * > | m_buttons |
| UUID | m_capture_id |
| Buffer< UUID > | m_current_selection |
| LibraryManager * | m_library_manager |
| QTModelManager * | m_manager |
| Dictionary< UUID, TranslatedString > | m_object_names |
| Buffer< UUID > | m_objects |
| SelectionMode | m_selection_mode = SelectionMode::e_no_selection |
Protected Attributes inherited from ButtonGallery | |
| RibbonSubGroup * | m_gallery |
Protected Attributes inherited from QCustomScrollArea | |
| bool | m_use_full_scroll = false |
Shows a series of Buttons with large icons that represent DesignObjects that allow the user to choose one.
| enum SelectionMode |
| DesignObjectGallery | ( | QWidget * | parent = nullptr | ) |
| ~DesignObjectGallery | ( | ) |
|
overridevirtual |
Reimplemented from ButtonGallery.
| void fillWithMaterials | ( | ) |
| void fillWithModels | ( | ) |
|
protected |
|
inlineprotected |
|
inlineoverrideprotected |
|
inline |
| void setLibrary | ( | LibraryManager * | manager | ) |
| void setManager | ( | QTModelManager * | manager | ) |
| void setSelectionMode | ( | SelectionMode | selection_mode | ) |
|
inline |
|
protected |
|
protected |
|
protectedslot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |