43 explicit TableView(QWidget* parent =
nullptr);
44 ~TableView()
override;
45 TableView(
const TableView& other) =
delete;
46 TableView& operator=(
const TableView& other) =
delete;
48 void init(
const std::shared_ptr<PlayActionEventHandler>& playActionEventHandler,
AbstractLibrary* library);
51 void setupColumnNames();
54 [[nodiscard]]
virtual ColumnHeaderList columnHeaders()
const = 0;
55 [[nodiscard]]
virtual QByteArray columnHeaderState()
const = 0;
56 virtual void saveColumnHeaderState(
const QByteArray& state) = 0;
58 [[nodiscard]]
virtual VariableSortorder sortorder()
const = 0;
59 virtual void applySortorder(VariableSortorder s) = 0;
61 [[nodiscard]]
virtual bool autoResizeState()
const = 0;
62 virtual void saveAutoResizeState(
bool b) = 0;
64 void languageChanged()
override;
66 [[nodiscard]]
int mapModelIndexToIndex(
const QModelIndex& idx)
const override;
67 [[nodiscard]] ModelIndexRange mapIndexToModelIndexes(
int idx)
const override;
69 void skinChanged()
override;
72 void headerColumnsChanged(
int oldCount,
int newCount);
73 void sortorderChanged(
int index, Qt::SortOrder sortorder);
74 void sectionResized(
int logicalIndex,
int oldSize,
int newSize);
75 void sectionMoved(
int logicalIndex,
int oldVisualIndex,
int newVisualIndex);
76 void autoResizeTriggered(
bool b);