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 QByteArray columnHeaderState() const =0
This method returns the SAVED column header sizes as they were remembered since the last time sayonar...
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
SortOrder
The SortOrder enum.
Definition: Sortorder.h:31
virtual void applySortorder(SortOrder s)=0
saves the current sortorder
Definition: AbstractLibrary.h:41
Definition: typedefs.h:32
virtual ColumnHeaderList columnHeaders() const =0
returns a list of ColumnHeader objects containing name, sortorder. Everytime when the language is cha...
The TableView class.
Definition: TableView.h:36
virtual SortOrder sortorder() const =0
returns the current sortorder for the table view
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:30
The main task of the ItemView is to display a context menu for various selections....
Definition: ItemView.h:54
virtual void saveColumnHeaderState(const QByteArray &state)=0
Here, the column headers sizes should be saved somewhere.
Definition: EngineUtils.h:33