API Documentation
|
#include <DesignPropertyTable.h>
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 ¶meter, bool is_editable=true) |
uint04 | addColumn (const TranslatedString &custom_column_name, const DesignParameter ¶meter, 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< UUID > | selectedIDs () 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 |
DesignObjectSearchWidget * | m_search_text |
Button * | m_edit_button |
QHBoxLayout * | m_bottom_button_layout |
DesignPropertyTableView * | m_table_view |
QTModelManager * | m_manager |
DesignTableModel * | m_view_model |
DesignSortFilterProxyModel * | m_sort_model |
|
explicit |
|
explicit |
|
virtual |
uint04 addColumn | ( | const DesignParameter & | parameter, |
bool | is_editable = true ) |
uint04 addColumn | ( | const ModelTableColumnSpec & | column | ) |
uint04 addColumn | ( | const TranslatedString & | custom_column_name, |
const DesignParameter & | parameter, | ||
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 | ) |
|
protectedslot |
|
override |
bool isEditable | ( | ) |
|
protectedslot |
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 | ) |
|
virtual |
void setTypeAddedFilter | ( | const String & | type | ) |
void setup | ( | ) |
void setupTable | ( | ) |
void showSearch | ( | bool | show_search | ) |
void updateRow | ( | uint04 | row | ) |
|
signal |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |