27 #ifndef MYCOLUMNHEADER_H_
28 #define MYCOLUMNHEADER_H_
30 #include "ColumnIndex.h"
31 #include "Utils/Library/Sortorder.h"
32 #include "Utils/Pimpl.h"
49 ColumnHeader(ColumnIndex::IntegerType columnIndex,
bool switchable,
SortOrder sortAsc,
SortOrder sortDesc,
int preferredWidth,
bool isStretchable=
false);
50 virtual QString hashPrefix()
const=0;
55 virtual QString title()
const=0;
59 bool isStretchable()
const;
60 bool isSwitchable()
const;
61 int defaultSize()
const;
63 int preferredSize()
const;
64 void setPreferredSize(
int size);
68 ColumnIndex::IntegerType columnIndex()
const;
78 QString title()
const override;
81 QString hashPrefix()
const override;
90 QString title()
const override;
93 QString hashPrefix()
const override;
102 QString title()
const override;
105 QString hashPrefix()
const override;
108 using ColumnHeaderPtr = std::shared_ptr<ColumnHeader>;