27#ifndef MYCOLUMNHEADER_H_
28#define MYCOLUMNHEADER_H_
30#include "ColumnIndex.h"
31#include "Utils/Library/Sortorder.h"
32#include "Utils/Pimpl.h"
50 ColumnHeader(ColumnIndex::IntegerType columnIndex,
bool switchable, SortOrder sortAsc, SortOrder sortDesc,
51 int preferredWidth,
bool isStretchable =
false);
52 virtual QString hashPrefix()
const = 0;
57 virtual QString title()
const = 0;
61 bool isStretchable()
const;
62 bool isSwitchable()
const;
63 int defaultSize()
const;
65 SortOrder sortorder(Qt::SortOrder sortOrder)
const;
67 ColumnIndex::IntegerType columnIndex()
const;
76 ColumnHeaderTrack(ColumnIndex::Track columnIndex,
bool switchable, SortOrder sortAsc, SortOrder sortDesc,
77 int preferredWidth,
bool isStretchable =
false);
78 QString title()
const override;
81 QString hashPrefix()
const override;
90 ColumnHeaderAlbum(ColumnIndex::Album columnIndex,
bool switchable, SortOrder sortAsc, SortOrder sortDesc,
91 int preferredWidth,
bool isStretchable =
false);
92 QString title()
const override;
95 QString hashPrefix()
const override;
104 ColumnHeaderArtist(ColumnIndex::Artist columnIndex,
bool switchable, SortOrder sortAsc, SortOrder sortDesc,
105 int preferredWidth,
bool isStretchable =
false);
106 QString title()
const override;
109 QString hashPrefix()
const override;
112 using ColumnHeaderPtr = std::shared_ptr<ColumnHeader>;
Definition ColumnHeader.h:86
Definition ColumnHeader.h:100
Definition ColumnHeader.h:72
The ColumnHeader class.
Definition ColumnHeader.h:45
Definition EngineUtils.h:33