33#include <NDEVR/QTModelManager.h>
34#include <NDEVR/LibraryManager.h>
35#include <NDEVR/ButtonGallery.h>
36#include <NDEVR/Button.h>
71 return m_object_names[a].translation() > m_object_names[b].translation();
91 ButtonGallery::resizeEvent(resize_event);
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Shows a series of Buttons with large icons that represent DesignObjects that allow the user to choose...
Definition DesignObjectGallery.h:46
void setButtonVisible(const UUID &id, bool visible)
Definition DesignObjectGallery.h:62
void setObjects(const Buffer< UUID > &objects)
const Buffer< UUID > & ids() const
Definition DesignObjectGallery.h:58
void sortByName()
Definition DesignObjectGallery.h:66
void setManager(QTModelManager *manager)
Buffer< UUID > m_current_selection
Definition DesignObjectGallery.h:107
void updateFromManager(const UUID &id)
TranslatedString getObjectName(const UUID &id) const
void onSelectedSignal(Buffer< UUID > ids)
void updateFromLibrary(const UUID &id)
SelectionMode m_selection_mode
Definition DesignObjectGallery.h:105
Buffer< UUID > m_objects
Definition DesignObjectGallery.h:102
SelectionMode
Definition DesignObjectGallery.h:50
@ e_single_selection
Definition DesignObjectGallery.h:52
@ e_no_selection
Definition DesignObjectGallery.h:51
@ e_multi_selection
Definition DesignObjectGallery.h:53
DesignObjectGallery(QWidget *parent=nullptr)
const Buffer< UUID > & currentSelection() const
Definition DesignObjectGallery.h:79
LibraryManager * m_library_manager
Definition DesignObjectGallery.h:110
void setLibrary(LibraryManager *manager)
Ribbon * m_browser_ribbon
Definition DesignObjectGallery.h:109
void updateObject(UUID id)
UUID m_capture_id
Definition DesignObjectGallery.h:101
QTModelManager * m_manager
Definition DesignObjectGallery.h:108
void resizeEvent(QResizeEvent *resize_event) override
Definition DesignObjectGallery.h:89
const QTModelManager * manager()
Definition DesignObjectGallery.h:97
void setSelectionMode(SelectionMode selection_mode)
Dictionary< UUID, Button * > m_buttons
Definition DesignObjectGallery.h:104
Dictionary< UUID, TranslatedString > m_object_names
Definition DesignObjectGallery.h:103
void setSelected(const Buffer< UUID > &id)
Dictionary< UUID, DynamicPointer< CaptureRequest > > m_active_requests
Definition DesignObjectGallery.h:106
Buffer< Model > getCurrentSelectedModels() const
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
Manages loading Models from a group that is stored either on a remote server or locally on the disk i...
Definition LibraryManager.h:42
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Definition QTModelManager.h:105
The UI ribbon is a horizontal menu bar typically located at the top of the application interface or a...
Definition Ribbon.h:54
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60