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

#include <DesignObjectChooser.h>

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

Signals

void onSelectedSignal (Buffer< UUID > id)
 

Public Member Functions

 DesignObjectChooser (QWidget *parent=nullptr)
 
 DesignObjectChooser (QTModelManager *manager, QWidget *parent=nullptr)
 
 DesignObjectChooser (LibraryManager *manager, QWidget *parent=nullptr)
 
void addCategory (const String &name, const Buffer< UUID > &items)
 
void removeCategory (const String &name)
 
void showActiveMaterialsCategory (bool show)
 
void showActiveModelsCategory (bool show)
 
void setModelManager (QTModelManager *manager)
 
void setLibraryManager (LibraryManager *manager)
 
void clear ()
 
void updateFromArchive (bool show_active_models, bool show_active_materials, bool refresh_archive_files)
 
void updateFromArchive (bool refresh_archive_files)
 
void filterFromManager ()
 
void filterFromArchive ()
 
void filter (const String &keyword_search)
 
void setSelectionMode (DesignObjectGallery::SelectionMode selection_mode)
 
void setSelected (const Buffer< UUID > &id)
 
void setCategory (const String &category)
 
void addButton (Button *button)
 
const Buffer< UUID > & currentSelection () const
 
Buffer< ModelgetCurrentSelectedModels () const
 

Protected Slots

void onCategoryChanged ()
 

Protected Member Functions

void init ()
 
void initContextMenu (Button *button)
 
void showFileMenu (bool is_save)
 
void exportImages ()
 

Protected Attributes

bool m_is_material_chooser
 
bool m_is_model_chooser
 
bool m_is_library = false
 
Dictionary< String, Buffer< UUID > > m_keywords
 
Dictionary< String, Buffer< UUID > > m_categories
 
Buffer< Stringm_category_list
 
QTModelManagerm_manager
 
LibraryManagerm_library_manager
 
String m_keyword_search
 
Ui::DesignObjectChooserUI * ui
 

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 files: