34#include <NDEVR/DesignTableModel.h>
35#include <NDEVR/Button.h>
36#include <NDEVR/Translator.h>
40#include <QItemDelegate>
45 class QCustomTableWidget;
46 class DesignObjectSearchWidget;
53 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
54 bool editorEvent(QEvent* event, QAbstractItemModel* model,
const QStyleOptionViewItem& option,
const QModelIndex& index)
override;
71 void dataChanged(
const QModelIndex& topLeft,
const QModelIndex& bottomRight,
const QVector<int>& roles)
override;
72 void rowsInserted(
const QModelIndex& parent,
int start,
int end)
override;
86 void addListItem(
const UUID&
id);
88 bool event(QEvent* event)
override;
89 void updateRow(
uint04 row);
90 void setTypeAddedFilter(
const String& type);
91 void setAddedFilter(
const std::function<
bool(
const Model&)>& callback);
94 void addWidget(QWidget* widget);
96 void setColumnVisible(
uint04 column,
bool visible);
104 void showSearch(
bool show_search);
105 void setEditable(
bool editable);
106 void setColumnEditable(
uint04 column,
bool editable);
110 void setSortCallback(
const std::function<
bool(
const Model& a,
const Model& b)>& callback);
115 void selected(QModelIndex index);
116 void contextMenu(
const QPoint &pos);
#define _t(english_string)
Definition Translator.h:87
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
DesignProperty
Definition DesignObject.h:94
Definition DesignParameter.h:42
Definition DesignPropertyTable.h:77
Button * m_edit_button
Definition DesignPropertyTable.h:120
QHBoxLayout * m_bottom_button_layout
Definition DesignPropertyTable.h:121
DesignObjectSearchWidget * m_search_text
Definition DesignPropertyTable.h:119
DesignTableModel * m_view_model
Definition DesignPropertyTable.h:124
void viewSettingsSignal()
DesignSortFilterProxyModel * m_sort_model
Definition DesignPropertyTable.h:125
QWidget * m_search_widget
Definition DesignPropertyTable.h:118
const std::function< void(Model, PopupInfo)> & selectedCallback() const
Definition DesignPropertyTable.h:111
QTModelManager * m_manager
Definition DesignPropertyTable.h:123
DesignPropertyTableView * m_table_view
Definition DesignPropertyTable.h:122
void setSelectedCallback(const std::function< void(Model, PopupInfo)> &callback)
Definition DesignPropertyTable.h:109
Definition DesignPropertyTable.h:62
QSize minimumSizeHint() const override
Definition DesignPropertyTable.cpp:222
DesignPropertyTableView(QWidget *parent=nullptr)
Definition DesignPropertyTable.cpp:181
DesignTableModel * model() const
Definition DesignPropertyTable.h:66
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles) override
Definition DesignPropertyTable.cpp:188
DesignSortFilterProxyModel * m_table_model
Definition DesignPropertyTable.h:74
Buffer< UUID > selectedIDs() const
Definition DesignPropertyTable.cpp:245
void setProxyModel(DesignSortFilterProxyModel *model)
Definition DesignPropertyTable.cpp:216
void rowsInserted(const QModelIndex &parent, int start, int end) override
Definition DesignPropertyTable.cpp:198
void refreshAll()
Definition DesignPropertyTable.cpp:241
Definition DesignTableModel.h:184
DesignTableModel * model()
Definition DesignTableModel.cpp:1015
Definition DesignTableModel.h:116
Definition DesignPropertyTable.h:49
void setModel(DesignSortFilterProxyModel *model)
Definition DesignPropertyTable.h:55
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition DesignPropertyTable.cpp:25
MaterialWidget * m_draw_material_widget
Definition DesignPropertyTable.h:58
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
Definition DesignPropertyTable.cpp:78
MaterialWidget * m_click_material_widget
Definition DesignPropertyTable.h:59
DesignSortFilterProxyModel * m_table_model
Definition DesignPropertyTable.h:57
ModelTableDelegate(DesignSortFilterProxyModel *model, QObject *parent=nullptr)
Definition DesignPropertyTable.cpp:18
Definition QTModelManager.h:94
Definition TranslatedString.h:9
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
Definition DesignTableModel.h:49