21#ifndef LIBRARYTABLEVIEW_H
22#define LIBRARYTABLEVIEW_H
24#include "Gui/Library/ItemView.h"
25#include "Gui/Library/Header/ColumnHeader.h"
27#include "Utils/Pimpl.h"
28#include "Utils/Library/Sortorder.h"
47 explicit TableView(QWidget* parent =
nullptr);
92 [[nodiscard]]
virtual VariableSortorder
sortorder()
const = 0;
99 virtual bool autoResizeState()
const = 0;
100 virtual void saveAutoResizeState(
bool b) = 0;
102 void languageChanged()
override;
105 int mapModelIndexToIndex(
const QModelIndex& idx)
const override;
109 void headerColumnsChanged(
int oldCount,
int newCount);
110 void sortorderChanged(
int index, Qt::SortOrder
sortorder);
111 void sectionResized(
int logicalIndex,
int oldSize,
int newSize);
112 void sectionMoved(
int logicalIndex,
int old_visualIndex,
int newVisualIndex);
113 void autoResizeTriggered(
bool b);
Definition AbstractLibrary.h:41
The main task of the ItemView is to display a context menu for various selections....
Definition ItemView.h:57
The TableView class.
Definition TableView.h:38
virtual QByteArray columnHeaderState() const =0
This method returns the SAVED column header sizes as they were remembered since the last time sayonar...
virtual VariableSortorder sortorder() const =0
returns the current sortorder for the table view
virtual void applySortorder(VariableSortorder s)=0
saves the current sortorder
virtual void saveColumnHeaderState(const QByteArray &state)=0
Here, the column headers sizes should be saved somewhere.
virtual ColumnHeaderList columnHeaders() const =0
returns a list of ColumnHeader objects containing name, sortorder. Everytime when the language is cha...
void setupColumnNames()
the column names are reloaded and updated with their corresponding texts
virtual void initView(AbstractLibrary *library)=0
here, the model and delegate should be instantiated as well as connections and setting listeners
Definition EngineUtils.h:33