33#include <NDEVR/QTModelManager.h>
34#include <NDEVR/LibraryManager.h>
35#include <NDEVR/ButtonGallery.h>
36#include <NDEVR/Button.h>
53 void clear()
override;
67 return m_object_names[a].translation() > m_object_names[b].translation();
87 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:64
Definition DesignObjectGallery.h:42
void setButtonVisible(const UUID &id, bool visible)
Definition DesignObjectGallery.h:58
void setObjects(const Buffer< UUID > &objects)
Definition DesignObjectGallery.cpp:42
const Buffer< UUID > & ids() const
Definition DesignObjectGallery.h:54
void sortByName()
Definition DesignObjectGallery.h:62
void setManager(QTModelManager *manager)
Definition DesignObjectGallery.cpp:209
Buffer< UUID > m_current_selection
Definition DesignObjectGallery.h:103
void updateFromManager(const UUID &id)
Definition DesignObjectGallery.cpp:264
TranslatedString getObjectName(const UUID &id) const
Definition DesignObjectGallery.cpp:247
void onSelectedSignal(Buffer< UUID > ids)
void updateFromLibrary(const UUID &id)
Definition DesignObjectGallery.cpp:307
SelectionMode m_selection_mode
Definition DesignObjectGallery.h:101
~DesignObjectGallery()
Definition DesignObjectGallery.cpp:18
Buffer< UUID > m_objects
Definition DesignObjectGallery.h:98
SelectionMode
Definition DesignObjectGallery.h:46
@ e_single_selection
Definition DesignObjectGallery.h:48
@ e_no_selection
Definition DesignObjectGallery.h:47
@ e_multi_selection
Definition DesignObjectGallery.h:49
DesignObjectGallery(QWidget *parent=nullptr)
Definition DesignObjectGallery.cpp:9
const Buffer< UUID > & currentSelection() const
Definition DesignObjectGallery.h:75
LibraryManager * m_library_manager
Definition DesignObjectGallery.h:106
void setLibrary(LibraryManager *manager)
Definition DesignObjectGallery.cpp:225
Ribbon * m_browser_ribbon
Definition DesignObjectGallery.h:105
void updateObject(UUID id)
Definition DesignObjectGallery.cpp:232
UUID m_capture_id
Definition DesignObjectGallery.h:97
QTModelManager * m_manager
Definition DesignObjectGallery.h:104
void resizeEvent(QResizeEvent *resize_event) override
Definition DesignObjectGallery.h:85
void fillWithMaterials()
Definition DesignObjectGallery.cpp:160
const QTModelManager * manager()
Definition DesignObjectGallery.h:93
void setSelectionMode(SelectionMode selection_mode)
Definition DesignObjectGallery.cpp:196
Dictionary< UUID, Button * > m_buttons
Definition DesignObjectGallery.h:100
Dictionary< UUID, TranslatedString > m_object_names
Definition DesignObjectGallery.h:99
void setSelected(const Buffer< UUID > &id)
Definition DesignObjectGallery.cpp:126
void clear() override
Definition DesignObjectGallery.cpp:23
Dictionary< UUID, DynamicPointer< CaptureRequest > > m_active_requests
Definition DesignObjectGallery.h:102
Buffer< Model > getCurrentSelectedModels() const
Definition DesignObjectGallery.cpp:141
void fillWithModels()
Definition DesignObjectGallery.cpp:175
Definition Dictionary.h:48
Definition LibraryManager.h:38
Definition QTModelManager.h:94
Definition TranslatedString.h:9
SelectionMode
Definition SelectionArea.hpp:43