API Documentation
Loading...
Searching...
No Matches
DesignObjectGallery Class Reference

Shows a series of Buttons with large icons that represent DesignObjects that allow the user to choose one. More...

#include <DesignObjectGallery.h>

Inheritance diagram for DesignObjectGallery:
[legend]
Collaboration diagram for DesignObjectGallery:
[legend]

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< ModelgetCurrentSelectedModels () 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 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 QTModelManagermanager ()
 
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
 
Ribbonm_browser_ribbon
 
Dictionary< UUID, Button * > m_buttons
 
UUID m_capture_id
 
Buffer< UUIDm_current_selection
 
LibraryManagerm_library_manager
 
QTModelManagerm_manager
 
Dictionary< UUID, TranslatedStringm_object_names
 
Buffer< UUIDm_objects
 
SelectionMode m_selection_mode = SelectionMode::e_no_selection
 
- Protected Attributes inherited from QCustomScrollArea
bool m_use_full_scroll = false
 

Detailed Description

Shows a series of Buttons with large icons that represent DesignObjects that allow the user to choose one.


Member Enumeration Documentation

◆ SelectionMode

Enumerator
e_no_selection 
e_single_selection 
e_multi_selection 

Constructor & Destructor Documentation

◆ DesignObjectGallery()

DesignObjectGallery ( QWidget * parent = nullptr)

◆ ~DesignObjectGallery()

Member Function Documentation

◆ clear()

void clear ( )
overridevirtual

Reimplemented from ButtonGallery.

◆ currentSelection()

const Buffer< UUID > & currentSelection ( ) const
inline

◆ fillWithMaterials()

void fillWithMaterials ( )

◆ fillWithModels()

void fillWithModels ( )

◆ getCurrentSelectedModels()

Buffer< Model > getCurrentSelectedModels ( ) const

◆ getObjectName()

TranslatedString getObjectName ( const UUID & id) const
protected

◆ ids()

const Buffer< UUID > & ids ( ) const
inline

◆ manager()

const QTModelManager * manager ( )
inlineprotected

◆ onSelectedSignal

void onSelectedSignal ( Buffer< UUID > ids)
signal

◆ resizeEvent()

void resizeEvent ( QResizeEvent * resize_event)
inlineoverrideprotected

◆ setButtonVisible()

void setButtonVisible ( const UUID & id,
bool visible )
inline

◆ setLibrary()

void setLibrary ( LibraryManager * manager)

◆ setManager()

void setManager ( QTModelManager * manager)

◆ setObjects()

void setObjects ( const Buffer< UUID > & objects)

◆ setSelected()

void setSelected ( const Buffer< UUID > & id)

◆ setSelectionMode()

void setSelectionMode ( SelectionMode selection_mode)

◆ sortByName()

void sortByName ( )
inline

◆ updateFromLibrary()

void updateFromLibrary ( const UUID & id)
protected

◆ updateFromManager()

void updateFromManager ( const UUID & id)
protected

◆ updateObject

void updateObject ( UUID id)
protectedslot

Member Data Documentation

◆ m_active_requests

Dictionary<UUID, DynamicPointer<CaptureRequest> > m_active_requests
protected

◆ m_browser_ribbon

Ribbon* m_browser_ribbon
protected

◆ m_buttons

Dictionary<UUID, Button*> m_buttons
protected

◆ m_capture_id

UUID m_capture_id
protected

◆ m_current_selection

Buffer<UUID> m_current_selection
protected

◆ m_library_manager

LibraryManager* m_library_manager
protected

◆ m_manager

QTModelManager* m_manager
protected

◆ m_object_names

Dictionary<UUID, TranslatedString> m_object_names
protected

◆ m_objects

Buffer<UUID> m_objects
protected

◆ m_selection_mode

SelectionMode m_selection_mode = SelectionMode::e_no_selection
protected

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