A base class for tables wishing to show columns of DesignObject properties.
More...
#include <DesignPropertyTable.h>
|
uint04 | addColumn (const DesignParameter ¶meter, bool is_editable=true) |
|
uint04 | addColumn (const ModelTableColumnSpec &column) |
|
uint04 | addColumn (const TranslatedString &custom_column_name, const DesignParameter ¶meter, bool is_editable=true) |
|
uint04 | addColumn (const TranslatedString &name, const String &icon, const std::function< void(UUID)> &callback) |
|
uint04 | addColumn (DesignObject::DesignProperty property, bool is_editable=true) |
|
void | addListItem (const UUID &id) |
|
uint04 | addMaterialDataColumn (const TranslatedString &custom_column_name=TranslatedString()) |
|
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") |
|
uint04 | addParentPathColumn (const TranslatedString &custom_column_name=TranslatedString()) |
|
void | addWidget (QWidget *widget) |
|
| DesignPropertyTable (QTModelManager *manager, QWidget *parent=nullptr) |
|
| DesignPropertyTable (QWidget *parent=nullptr) |
|
bool | event (QEvent *event) override |
|
void | filterAndSetList (Buffer< UUID > models) |
|
bool | isEditable () |
|
const std::function< void(Model, PopupInfo)> & | selectedCallback () const |
|
Buffer< UUID > | selectedIDs () const |
|
void | setAddedFilter (const std::function< bool(const Model &)> &callback) |
|
void | setColumnEditable (uint04 column, bool editable) |
|
void | setColumnVisible (uint04 column, bool visible) |
|
void | setEditable (bool editable) |
|
void | setList (const Buffer< UUID > &models) |
|
virtual void | setModelManager (QTModelManager *manager) |
|
void | setSelectedCallback (const std::function< void(Model, PopupInfo)> &callback) |
|
void | setSortCallback (const std::function< bool(const Model &a, const Model &b)> &callback) |
|
void | setTypeAddedFilter (const String &type) |
|
void | setup () |
|
void | setupTable () |
|
void | showSearch (bool show_search) |
|
void | updateRow (uint04 row) |
|
virtual | ~DesignPropertyTable () |
|
A base class for tables wishing to show columns of DesignObject properties.
◆ DesignPropertyTable() [1/2]
◆ DesignPropertyTable() [2/2]
◆ ~DesignPropertyTable()
◆ addColumn() [1/5]
◆ addColumn() [2/5]
◆ addColumn() [3/5]
◆ addColumn() [4/5]
◆ addColumn() [5/5]
◆ addListItem()
void addListItem |
( |
const UUID & | id | ) |
|
◆ addMaterialDataColumn()
◆ addNewButton()
◆ addOpenButton()
◆ addParentPathColumn()
◆ addWidget()
void addWidget |
( |
QWidget * | widget | ) |
|
◆ contextMenu
void contextMenu |
( |
const QPoint & | pos | ) |
|
|
protectedslot |
◆ event()
bool event |
( |
QEvent * | event | ) |
|
|
override |
◆ filterAndSetList()
◆ isEditable()
◆ selected
void selected |
( |
QModelIndex | index | ) |
|
|
protectedslot |
◆ selectedCallback()
const std::function< void(Model, PopupInfo)> & selectedCallback |
( |
| ) |
const |
|
inline |
◆ selectedIDs()
◆ 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()
◆ setModelManager()
◆ 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()
◆ setupTable()
◆ showSearch()
void showSearch |
( |
bool | show_search | ) |
|
◆ updateRow()
◆ viewSettingsSignal
void viewSettingsSignal |
( |
| ) |
|
|
signal |
◆ m_bottom_button_layout
QHBoxLayout* m_bottom_button_layout |
|
protected |
◆ m_edit_button
◆ m_manager
◆ m_search_text
◆ m_search_widget
◆ m_sort_model
◆ m_table_view
◆ m_view_model
The documentation for this class was generated from the following file: