![]() |
API Documentation
|
Provides a screen of buttons that allow the user to pick a Model for an action. More...
#include <DesignObjectChooser.h>
Signals | |
| void | onSelectedSignal (Buffer< UUID > id) |
Public Member Functions | |
| void | addButton (Button *button) |
| void | addCategory (const String &name, const Buffer< UUID > &items) |
| void | clear () |
| const Buffer< UUID > & | currentSelection () const |
| DesignObjectChooser (LibraryManager *manager, QWidget *parent=nullptr) | |
| DesignObjectChooser (QTModelManager *manager, QWidget *parent=nullptr) | |
| DesignObjectChooser (QWidget *parent=nullptr) | |
| void | filter (const String &keyword_search) |
| void | filterFromArchive () |
| void | filterFromManager () |
| Buffer< Model > | getCurrentSelectedModels () const |
| void | removeCategory (const String &name) |
| void | setCategory (const String &category) |
| void | setLibraryManager (LibraryManager *manager) |
| void | setModelManager (QTModelManager *manager) |
| void | setSelected (const Buffer< UUID > &id) |
| void | setSelectionMode (DesignObjectGallery::SelectionMode selection_mode) |
| void | showActiveMaterialsCategory (bool show) |
| void | showActiveModelsCategory (bool show) |
| void | updateFromArchive (bool refresh_archive_files) |
| void | updateFromArchive (bool show_active_models, bool show_active_materials, bool refresh_archive_files) |
Protected Slots | |
| void | onCategoryChanged () |
Protected Member Functions | |
| void | exportImages () |
| void | init () |
| void | initContextMenu (Button *button) |
| void | showFileMenu (bool is_save) |
Protected Attributes | |
| Dictionary< String, Buffer< UUID > > | m_categories |
| Buffer< String > | m_category_list |
| bool | m_is_library = false |
| bool | m_is_material_chooser |
| bool | m_is_model_chooser |
| String | m_keyword_search |
| Dictionary< String, Buffer< UUID > > | m_keywords |
| LibraryManager * | m_library_manager |
| QTModelManager * | m_manager |
| Ui::DesignObjectChooserUI * | ui |
Provides a screen of buttons that allow the user to pick a Model for an action.
| DesignObjectChooser | ( | QWidget * | parent = nullptr | ) |
| DesignObjectChooser | ( | QTModelManager * | manager, |
| QWidget * | parent = nullptr ) |
| DesignObjectChooser | ( | LibraryManager * | manager, |
| QWidget * | parent = nullptr ) |
| void addButton | ( | Button * | button | ) |
| void clear | ( | ) |
|
protected |
| void filter | ( | const String & | keyword_search | ) |
| void filterFromArchive | ( | ) |
| void filterFromManager | ( | ) |
|
protected |
|
protected |
|
protectedslot |
| void removeCategory | ( | const String & | name | ) |
| void setCategory | ( | const String & | category | ) |
| void setLibraryManager | ( | LibraryManager * | manager | ) |
| void setModelManager | ( | QTModelManager * | manager | ) |
| void setSelectionMode | ( | DesignObjectGallery::SelectionMode | selection_mode | ) |
| void showActiveMaterialsCategory | ( | bool | show | ) |
| void showActiveModelsCategory | ( | bool | show | ) |
|
protected |
| void updateFromArchive | ( | bool | refresh_archive_files | ) |
| void updateFromArchive | ( | bool | show_active_models, |
| bool | show_active_materials, | ||
| bool | refresh_archive_files ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |