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"
43 void sigSortorderChanged(SortOrder);
50 explicit TableView(QWidget* parent =
nullptr);
102 virtual bool autoResizeState()
const = 0;
103 virtual void saveAutoResizeState(
bool b) = 0;
105 void languageChanged()
override;
108 int mapModelIndexToIndex(
const QModelIndex& idx)
const override;
112 void headerColumnsChanged(
int oldCount,
int newCount);
113 void sortorderChanged(
int index, Qt::SortOrder
sortorder);
114 void sectionResized(
int logicalIndex,
int oldSize,
int newSize);
115 void sectionMoved(
int logicalIndex,
int old_visualIndex,
int newVisualIndex);
116 void autoResizeTriggered(
bool b);
Definition: AbstractLibrary.h:44
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 void applySortorder(SortOrder s)=0
saves the current sortorder
virtual QByteArray columnHeaderState() const =0
This method returns the SAVED column header sizes as they were remembered since the last time sayonar...
virtual SortOrder sortorder() const =0
returns the current sortorder for the table view
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
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31
Definition: typedefs.h:33