API Documentation
|
#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 | |
DesignObjectGallery (QWidget *parent=nullptr) | |
~DesignObjectGallery () | |
void | clear () override |
const Buffer< UUID > & | ids () const |
void | setButtonVisible (const UUID &id, bool visible) |
void | sortByName () |
void | setObjects (const Buffer< UUID > &objects) |
void | setSelected (const Buffer< UUID > &id) |
Buffer< Model > | getCurrentSelectedModels () const |
void | fillWithMaterials () |
void | fillWithModels () |
const Buffer< UUID > & | currentSelection () const |
void | setSelectionMode (SelectionMode selection_mode) |
void | setManager (QTModelManager *manager) |
void | setLibrary (LibraryManager *manager) |
Public Member Functions inherited from ButtonGallery | |
ButtonGallery (QWidget *parent=nullptr) | |
void | setIconSizeMultiplier (fltp04 multiplier) |
virtual void | sortButtons (const std::function< bool(Button *, Button *)> &sorter) |
virtual void | addButton (Button *button) |
virtual void | sortButtons () |
virtual void | removeButton (Button *button) |
void | updateGalleryLayout () |
const Buffer< Button * > & | buttons () const |
Public Member Functions inherited from QCustomScrollArea | |
QCustomScrollArea (QWidget *parent=nullptr) | |
bool | eventFilter (QObject *, QEvent *event) override |
void | setWidget (QWidget *w) |
void | setUseFullScroll (bool use_full_scroll) |
bool | useFullScroll () const |
QWidget * | takeWidget () |
QSize | sizeHint () const override |
Protected Slots | |
void | updateObject (UUID id) |
Protected Member Functions | |
TranslatedString | getObjectName (const UUID &id) const |
void | updateFromManager (const UUID &id) |
void | updateFromLibrary (const UUID &id) |
void | resizeEvent (QResizeEvent *resize_event) override |
const QTModelManager * | manager () |
Protected Attributes | |
UUID | m_capture_id |
Buffer< UUID > | m_objects |
Dictionary< UUID, TranslatedString > | m_object_names |
Dictionary< UUID, Button * > | m_buttons |
SelectionMode | m_selection_mode = SelectionMode::e_no_selection |
Dictionary< UUID, DynamicPointer< CaptureRequest > > | m_active_requests |
Buffer< UUID > | m_current_selection |
QTModelManager * | m_manager |
Ribbon * | m_browser_ribbon |
LibraryManager * | m_library_manager |
Protected Attributes inherited from ButtonGallery | |
RibbonSubGroup * | m_gallery |
Protected Attributes inherited from QCustomScrollArea | |
bool | m_use_full_scroll = false |
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 |