API Documentation
|
Provides the ability to pull specific data from a DesignObjectLookup for display in a column of a table. More...
#include <DesignTableModel.h>
Classes | |
struct | RelativePathObject |
Public Types | |
enum | ModelTableType { e_design_parameter , e_model_material , e_custom_callback } |
enum | RelativePath { e_parent , e_last_child , e_child_index = 10 , e_child_0 = e_child_index , e_child_1 , e_child_2 , e_child_3 , e_child_4 , e_child_5 , e_child_6 , e_child_7 } |
Public Member Functions | |
QVariant | data (const DesignObject &obj, int role=Qt::DisplayRole) const |
DesignObject | getTarget (const DesignObject &a, bool try_to_create) const |
TranslatedString | headerTitle () const |
bool | isCheckEditable () const |
bool | isSortEqual (const DesignObject &a, const DesignObject &b) const |
bool | isSortLessThan (const DesignObject &a, const DesignObject &b) const |
bool | isTextEditable () const |
bool | isValid () const |
ModelTableColumnSpec () | |
ModelTableColumnSpec (const DesignParameter ¶meter) | |
ModelTableColumnSpec (const DesignParameter ¶meter, Buffer< RelativePathObject > relative_mode) | |
ModelTableColumnSpec (const std::function< void(UUID)> &callback) | |
ModelTableColumnSpec (const TranslatedString &text, const String &icon, const std::function< void(UUID)> &callback) | |
ModelTableColumnSpec (ModelTableType type) | |
bool | setData (const DesignObject &obj, const QVariant &value, int role) |
String | stringDisplayData (const DesignObject &obj) const |
Public Attributes | |
std::function< void(UUID)> | callback |
ModelTableType | column_type |
TranslatedString | custom_column_name |
String | custom_icon |
TranslatedString | custom_text |
DesignParameter | design_parameter |
bool | is_clicked = false |
bool | is_currently_editable = false |
bool | is_editable |
uint04 | max_decimal_places |
uint04 | min_decimal_places |
Buffer< RelativePathObject > | relative_path |
Protected Member Functions | |
QVariant | parameterData (const DesignObject &obj, int role) const |
Provides the ability to pull specific data from a DesignObjectLookup for display in a column of a table.
enum ModelTableType |
enum RelativePath |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
ModelTableColumnSpec | ( | const TranslatedString & | text, |
const String & | icon, | ||
const std::function< void(UUID)> & | callback ) |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscardprotected |
|
nodiscard |
|
nodiscard |
std::function<void(UUID)> callback |
ModelTableType column_type |
TranslatedString custom_column_name |
String custom_icon |
TranslatedString custom_text |
DesignParameter design_parameter |
bool is_clicked = false |
bool is_currently_editable = false |
bool is_editable |
uint04 max_decimal_places |
uint04 min_decimal_places |
Buffer<RelativePathObject> relative_path |