33#include <NDEVR/DesignObjectGallery.h>
34#include <NDEVR/Dictionary.h>
37 class DesignObjectChooserUI;
58 void updateFromArchive(
bool show_active_models,
bool show_active_materials,
bool refresh_archive_files);
81 bool m_is_library =
false;
88 Ui::DesignObjectChooserUI*
ui;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Provides a screen of buttons that allow the user to pick a Model for an action.
Definition DesignObjectChooser.h:45
DesignObjectChooser(QWidget *parent=nullptr)
bool m_is_material_chooser
Definition DesignObjectChooser.h:79
DesignObjectChooser(LibraryManager *manager, QWidget *parent=nullptr)
void setModelManager(QTModelManager *manager)
Dictionary< String, Buffer< UUID > > m_keywords
Definition DesignObjectChooser.h:82
void updateFromArchive(bool refresh_archive_files)
void setLibraryManager(LibraryManager *manager)
DesignObjectChooser(QTModelManager *manager, QWidget *parent=nullptr)
void showFileMenu(bool is_save)
void initContextMenu(Button *button)
void showActiveModelsCategory(bool show)
bool m_is_model_chooser
Definition DesignObjectChooser.h:80
void updateFromArchive(bool show_active_models, bool show_active_materials, bool refresh_archive_files)
Ui::DesignObjectChooserUI * ui
Definition DesignObjectChooser.h:88
void setCategory(const String &category)
const Buffer< UUID > & currentSelection() const
void filter(const String &keyword_search)
LibraryManager * m_library_manager
Definition DesignObjectChooser.h:86
void onSelectedSignal(Buffer< UUID > id)
void addButton(Button *button)
QTModelManager * m_manager
Definition DesignObjectChooser.h:85
Dictionary< String, Buffer< UUID > > m_categories
Definition DesignObjectChooser.h:83
void addCategory(const String &name, const Buffer< UUID > &items)
Buffer< String > m_category_list
Definition DesignObjectChooser.h:84
void showActiveMaterialsCategory(bool show)
void setSelectionMode(DesignObjectGallery::SelectionMode selection_mode)
void setSelected(const Buffer< UUID > &id)
String m_keyword_search
Definition DesignObjectChooser.h:87
void removeCategory(const String &name)
Buffer< Model > getCurrentSelectedModels() const
SelectionMode
Definition DesignObjectGallery.h:50
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 core String class for the NDEVR API.
Definition String.h:69
Definition FontEditor.h:6