API Documentation
Loading...
Searching...
No Matches
DesignObjectChooser Class Reference

Provides a screen of buttons that allow the user to pick a Model for an action. More...

#include <DesignObjectChooser.h>

Inheritance diagram for DesignObjectChooser:
[legend]
Collaboration diagram for DesignObjectChooser:
[legend]

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< ModelgetCurrentSelectedModels () 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< Stringm_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
 
LibraryManagerm_library_manager
 
QTModelManagerm_manager
 
Ui::DesignObjectChooserUI * ui
 

Detailed Description

Provides a screen of buttons that allow the user to pick a Model for an action.


Constructor & Destructor Documentation

◆ DesignObjectChooser() [1/3]

DesignObjectChooser ( QWidget * parent = nullptr)

◆ DesignObjectChooser() [2/3]

DesignObjectChooser ( QTModelManager * manager,
QWidget * parent = nullptr )

◆ DesignObjectChooser() [3/3]

DesignObjectChooser ( LibraryManager * manager,
QWidget * parent = nullptr )

Member Function Documentation

◆ addButton()

void addButton ( Button * button)

◆ addCategory()

void addCategory ( const String & name,
const Buffer< UUID > & items )

◆ clear()

void clear ( )

◆ currentSelection()

const Buffer< UUID > & currentSelection ( ) const

◆ exportImages()

void exportImages ( )
protected

◆ filter()

void filter ( const String & keyword_search)

◆ filterFromArchive()

void filterFromArchive ( )

◆ filterFromManager()

void filterFromManager ( )

◆ getCurrentSelectedModels()

Buffer< Model > getCurrentSelectedModels ( ) const

◆ init()

void init ( )
protected

◆ initContextMenu()

void initContextMenu ( Button * button)
protected

◆ onCategoryChanged

void onCategoryChanged ( )
protectedslot

◆ onSelectedSignal

void onSelectedSignal ( Buffer< UUID > id)
signal

◆ removeCategory()

void removeCategory ( const String & name)

◆ setCategory()

void setCategory ( const String & category)

◆ setLibraryManager()

void setLibraryManager ( LibraryManager * manager)

◆ setModelManager()

void setModelManager ( QTModelManager * manager)

◆ setSelected()

void setSelected ( const Buffer< UUID > & id)

◆ setSelectionMode()

void setSelectionMode ( DesignObjectGallery::SelectionMode selection_mode)

◆ showActiveMaterialsCategory()

void showActiveMaterialsCategory ( bool show)

◆ showActiveModelsCategory()

void showActiveModelsCategory ( bool show)

◆ showFileMenu()

void showFileMenu ( bool is_save)
protected

◆ updateFromArchive() [1/2]

void updateFromArchive ( bool refresh_archive_files)

◆ updateFromArchive() [2/2]

void updateFromArchive ( bool show_active_models,
bool show_active_materials,
bool refresh_archive_files )

Member Data Documentation

◆ m_categories

Dictionary<String, Buffer<UUID> > m_categories
protected

◆ m_category_list

Buffer<String> m_category_list
protected

◆ m_is_library

bool m_is_library = false
protected

◆ m_is_material_chooser

bool m_is_material_chooser
protected

◆ m_is_model_chooser

bool m_is_model_chooser
protected

◆ m_keyword_search

String m_keyword_search
protected

◆ m_keywords

Dictionary<String, Buffer<UUID> > m_keywords
protected

◆ m_library_manager

LibraryManager* m_library_manager
protected

◆ m_manager

QTModelManager* m_manager
protected

◆ ui

Ui::DesignObjectChooserUI* ui
protected

The documentation for this class was generated from the following file: