 |
Sayonara Player
|
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"
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);
114 void sectionResized(
int logicalIndex,
int oldSize,
int newSize);
115 void sectionMoved(
int logicalIndex,
int old_visualIndex,
int newVisualIndex);
116 void autoResizeTriggered(
bool b);
120 #endif // LIBRARYTABLEVIEW_H
virtual void initView(AbstractLibrary *library)=0
here, the model and delegate should be instantiated as well as connections and setting listeners
Definition: typedefs.h:32
The TableView class.
Definition: TableView.h:38
virtual void applySortorder(SortOrder s)=0
saves the current sortorder
The main task of the ItemView is to display a context menu for various selections....
Definition: ItemView.h:57
Definition: EngineUtils.h:33
virtual QByteArray columnHeaderState() const =0
This method returns the SAVED column header sizes as they were remembered since the last time sayonar...
Definition: AbstractLibrary.h:43
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31
virtual void saveColumnHeaderState(const QByteArray &state)=0
Here, the column headers sizes should be saved somewhere.
void setupColumnNames()
the column names are reloaded and updated with their corresponding texts
virtual SortOrder sortorder() const =0
returns the current sortorder for the table view
virtual ColumnHeaderList columnHeaders() const =0
returns a list of ColumnHeader objects containing name, sortorder. Everytime when the language is cha...
SortOrder
The SortOrder enum.
Definition: Sortorder.h:32