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

#include <DesignPropertyTable.h>

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

Signals

void viewSettingsSignal ()
 

Public Member Functions

 DesignPropertyTable (QWidget *parent=nullptr)
 
 DesignPropertyTable (QTModelManager *manager, QWidget *parent=nullptr)
 
virtual ~DesignPropertyTable ()
 
void setup ()
 
void filterAndSetList (Buffer< UUID > models)
 
void setList (const Buffer< UUID > &models)
 
void addListItem (const UUID &id)
 
void setupTable ()
 
bool event (QEvent *event) override
 
void updateRow (uint04 row)
 
void setTypeAddedFilter (const String &type)
 
void setAddedFilter (const std::function< bool(const Model &)> &callback)
 
void addNewButton (std::function< void(Button *)> callback, const TranslatedString &new_title=_t("Add New"), const String &add_icon="plus")
 
void addOpenButton (std::function< void(Button *)> callback, const TranslatedString &new_title=_t("Open"), const String &add_icon="open")
 
void addWidget (QWidget *widget)
 
virtual void setModelManager (QTModelManager *manager)
 
void setColumnVisible (uint04 column, bool visible)
 
uint04 addColumn (DesignObject::DesignProperty property, bool is_editable=true)
 
uint04 addColumn (const DesignParameter &parameter, bool is_editable=true)
 
uint04 addColumn (const TranslatedString &custom_column_name, const DesignParameter &parameter, bool is_editable=true)
 
uint04 addParentPathColumn (const TranslatedString &custom_column_name=TranslatedString())
 
uint04 addMaterialDataColumn (const TranslatedString &custom_column_name=TranslatedString())
 
uint04 addColumn (const TranslatedString &name, const String &icon, const std::function< void(UUID)> &callback)
 
uint04 addColumn (const ModelTableColumnSpec &column)
 
void showSearch (bool show_search)
 
void setEditable (bool editable)
 
void setColumnEditable (uint04 column, bool editable)
 
bool isEditable ()
 
Buffer< UUIDselectedIDs () const
 
void setSelectedCallback (const std::function< void(Model, PopupInfo)> &callback)
 
void setSortCallback (const std::function< bool(const Model &a, const Model &b)> &callback)
 
const std::function< void(Model, PopupInfo)> & selectedCallback () const
 

Protected Slots

void selected (QModelIndex index)
 
void contextMenu (const QPoint &pos)
 

Protected Attributes

QWidget * m_search_widget
 
DesignObjectSearchWidgetm_search_text
 
Buttonm_edit_button
 
QHBoxLayout * m_bottom_button_layout
 
DesignPropertyTableViewm_table_view
 
QTModelManagerm_manager
 
DesignTableModelm_view_model
 
DesignSortFilterProxyModelm_sort_model
 

Constructor & Destructor Documentation

◆ DesignPropertyTable() [1/2]

DesignPropertyTable ( QWidget * parent = nullptr)
explicit

◆ DesignPropertyTable() [2/2]

DesignPropertyTable ( QTModelManager * manager,
QWidget * parent = nullptr )
explicit

◆ ~DesignPropertyTable()

~DesignPropertyTable ( )
virtual

Member Function Documentation

◆ addColumn() [1/5]

uint04 addColumn ( const DesignParameter & parameter,
bool is_editable = true )

◆ addColumn() [2/5]

uint04 addColumn ( const ModelTableColumnSpec & column)

◆ addColumn() [3/5]

uint04 addColumn ( const TranslatedString & custom_column_name,
const DesignParameter & parameter,
bool is_editable = true )

◆ addColumn() [4/5]

uint04 addColumn ( const TranslatedString & name,
const String & icon,
const std::function< void(UUID)> & callback )

◆ addColumn() [5/5]

uint04 addColumn ( DesignObject::DesignProperty property,
bool is_editable = true )

◆ addListItem()

void addListItem ( const UUID & id)

◆ addMaterialDataColumn()

uint04 addMaterialDataColumn ( const TranslatedString & custom_column_name = TranslatedString())

◆ addNewButton()

void addNewButton ( std::function< void(Button *)> callback,
const TranslatedString & new_title = _t("Add New"),
const String & add_icon = "plus" )

◆ addOpenButton()

void addOpenButton ( std::function< void(Button *)> callback,
const TranslatedString & new_title = _t("Open"),
const String & add_icon = "open" )

◆ addParentPathColumn()

uint04 addParentPathColumn ( const TranslatedString & custom_column_name = TranslatedString())

◆ addWidget()

void addWidget ( QWidget * widget)

◆ contextMenu

void contextMenu ( const QPoint & pos)
protectedslot

◆ event()

bool event ( QEvent * event)
override

◆ filterAndSetList()

void filterAndSetList ( Buffer< UUID > models)

◆ isEditable()

bool isEditable ( )

◆ selected

void selected ( QModelIndex index)
protectedslot

◆ selectedCallback()

const std::function< void(Model, PopupInfo)> & selectedCallback ( ) const
inline

◆ selectedIDs()

Buffer< UUID > selectedIDs ( ) const

◆ setAddedFilter()

void setAddedFilter ( const std::function< bool(const Model &)> & callback)

◆ setColumnEditable()

void setColumnEditable ( uint04 column,
bool editable )

◆ setColumnVisible()

void setColumnVisible ( uint04 column,
bool visible )

◆ setEditable()

void setEditable ( bool editable)

◆ setList()

void setList ( const Buffer< UUID > & models)

◆ setModelManager()

void setModelManager ( QTModelManager * manager)
virtual

◆ setSelectedCallback()

void setSelectedCallback ( const std::function< void(Model, PopupInfo)> & callback)
inline

◆ setSortCallback()

void setSortCallback ( const std::function< bool(const Model &a, const Model &b)> & callback)

◆ setTypeAddedFilter()

void setTypeAddedFilter ( const String & type)

◆ setup()

void setup ( )

◆ setupTable()

void setupTable ( )

◆ showSearch()

void showSearch ( bool show_search)

◆ updateRow()

void updateRow ( uint04 row)

◆ viewSettingsSignal

void viewSettingsSignal ( )
signal

Member Data Documentation

◆ m_bottom_button_layout

QHBoxLayout* m_bottom_button_layout
protected

◆ m_edit_button

Button* m_edit_button
protected

◆ m_manager

QTModelManager* m_manager
protected

◆ m_search_text

DesignObjectSearchWidget* m_search_text
protected

◆ m_search_widget

QWidget* m_search_widget
protected

◆ m_sort_model

DesignSortFilterProxyModel* m_sort_model
protected

◆ m_table_view

DesignPropertyTableView* m_table_view
protected

◆ m_view_model

DesignTableModel* m_view_model
protected

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