Shows a series of Buttons with large icons that represent DesignObjects that allow the user to choose one.
More...
|
| | DesignObjectGallery (QWidget *parent=nullptr) |
| | Constructs a DesignObjectGallery.
|
|
void | clear () override |
| | Clears all gallery items and resets the selection.
|
| void | clear (bool keep_selection) |
| | Clears all gallery items, optionally preserving the current selection.
|
| const Buffer< UUID > | currentSelection () const |
| | Returns the currently selected UUIDs.
|
| void | fillWithMaterials (bool keep_selected) |
| | Populates the gallery with all available materials.
|
| void | fillWithMaterials (Model model, bool keep_selected) |
| | Populates the gallery with materials from a specific model.
|
| void | fillWithModels (bool keep_selected) |
| | Populates the gallery with all available models.
|
| const Buffer< UUID > & | ids () const |
| | Returns the ordered list of object UUIDs currently in the gallery.
|
| void | onSelectedSignal (Buffer< UUID > ids) |
| | Emitted when the selection changes for any reason.
|
| void | onUserSelectedSignal (Buffer< UUID > ids) |
| | Emitted when the user explicitly changes the selection via interaction.
|
| void | saveRequestedSignal (Buffer< UUID > ids) |
| | Emitted when the user requests that the selected objects be saved.
|
|
void | scrollToSelected () |
| | Scrolls the gallery view to make the currently selected item visible.
|
| SelectionMode | selectionMode () const |
| | Returns the current selection mode.
|
| void | setButtonVisible (const UUID &id, bool visible) |
| | Sets the visibility of a specific gallery button by its UUID.
|
| void | setIsMaterialGallery (bool is_material) |
| | Sets whether this gallery is being used as a material gallery.
|
| void | setLibrary (LibraryManager *manager) |
| | Sets the library manager used for library-based galleries.
|
| void | setManager (QTModelManager *manager) |
| | Sets the model manager used to look up design objects.
|
| void | setObjects (const Buffer< UUID > &objects, bool keep_selected) |
| | Populates the gallery with the given set of objects.
|
| void | setSelected (const Buffer< UUID > &id, bool scroll_to_selected=false) |
| | Sets the selected items in the gallery.
|
| void | setSelectionMode (SelectionMode selection_mode) |
| | Sets the selection mode for the gallery.
|
|
void | sortByName () |
| | Sorts the gallery items alphabetically by name.
|
| | ButtonGallery (QWidget *parent=nullptr) |
| | Constructs a ButtonGallery with an optional parent widget.
|
| virtual void | addButton (Button *button) |
| | Adds a button to the gallery.
|
| const Buffer< QPointer< Button > > & | buttons () const |
| | Returns the list of buttons currently in the gallery.
|
| virtual void | removeButton (Button *button) |
| | Removes a button from the gallery.
|
| void | setIconSizeMultiplier (fltp04 multiplier) |
| | Sets the icon size multiplier applied to all buttons in the gallery.
|
| QSize | sizeHint () const override |
| | Returns the recommended size for the gallery widget.
|
| virtual void | sortButtons () |
| | Sorts buttons alphabetically.
|
| virtual void | sortButtons (const std::function< bool(Button *, Button *)> &sorter) |
| | Sorts buttons using a custom comparison function.
|
|
void | updateGalleryLayout () |
| | Updates the layout of buttons within the gallery after additions or removals.
|
| | QCustomScrollArea (QWidget *parent=nullptr) |
| | Constructs a custom scroll area widget.
|
| bool | eventFilter (QObject *, QEvent *event) override |
| | Filters events for the child widget to handle resize and layout updates.
|
| void | setUseFullScroll (bool use_full_scroll) |
| | Sets whether the scroll area uses full scroll mode, where the scroll area expands to accommodate the full content size in the size hint.
|
| void | setWidget (QWidget *w) |
| | Sets the scrollable child widget.
|
| QSize | sizeHint () const override |
| | Returns the recommended size for the scroll area.
|
| QWidget * | takeWidget () |
| | Removes and returns the scrollable child widget without deleting it.
|
| bool | useFullScroll () const |
| | Returns whether full scroll mode is enabled.
|
|
|
Dictionary< UUID, DynamicPointer< CaptureRequest > > | m_active_requests |
| | Active thumbnail capture requests.
|
|
Ribbon * | m_browser_ribbon = nullptr |
| | The ribbon widget used for browsing categories.
|
|
Dictionary< UUID, Button * > | m_buttons |
| | Maps each object UUID to its gallery button.
|
|
UUID | m_capture_id |
| | The UUID used for thumbnail capture requests.
|
|
Set< UUID > | m_current_selection |
| | The set of currently selected object UUIDs.
|
|
bool | m_is_material_gallery = false |
| | Whether this gallery displays materials.
|
|
LibraryManager * | m_library_manager = nullptr |
| | The library manager for library-based galleries.
|
|
QTModelManager * | m_manager = nullptr |
| | The model manager providing design objects.
|
|
Dictionary< UUID, TranslatedString > | m_object_names |
| | Cached display names for objects.
|
|
Buffer< UUID > | m_objects |
| | The ordered list of object UUIDs in the gallery.
|
|
SelectionMode | m_selection_mode = SelectionMode::e_no_selection |
| | The current selection mode.
|
|
RibbonSubGroup * | m_gallery |
| | The internal ribbon sub-group managing the button layout.
|
|
bool | m_use_full_scroll = false |
| | Whether the scroll area uses full scroll mode.
|
Shows a series of Buttons with large icons that represent DesignObjects that allow the user to choose one.
Definition at line 45 of file DesignObjectGallery.h.