24 #include "cluster-order.h"
28 namespace Antares::Component::HTMLListbox::Datasource
30 using ThermalClusterList = std::list<Data::ThermalCluster*>;
31 using ThermalClusterMap = std::map<wxString, ThermalClusterList>;
45 virtual void sortClustersInGroup(ThermalClusterList& clusterList) = 0;
47 void reorderItemsList(
const wxString& search)
override;
48 void rebuildItemsList(
const wxString& search)
override;
64 wxString
name()
const override
66 return wxT(
"Thermal clusters in alphabetical order");
69 const char*
icon()
const override
71 return "images/16x16/sort_alphabet.png";
75 void sortClustersInGroup(ThermalClusterList& clusterList)
override;
91 virtual wxString
name()
const
93 return wxT(
"Thermal clusters in reverse alphabetical order");
96 virtual const char*
icon()
const
98 return "images/16x16/sort_alphabet_descending.png";
102 void sortClustersInGroup(ThermalClusterList& clusterList)
override;
Listbox with HTML content.
Definition: component.h:46
Definition: cluster-order.h:52
Definition: thermal-cluster-order.h:53
const char * icon() const override
Get the relative path to the icon file.
Definition: thermal-cluster-order.h:69
virtual ~ThermalClustersByAlphaOrder()
Destructor.
Definition: thermal-cluster-order.cpp:163
wxString name() const override
Get the name of the datasource.
Definition: thermal-cluster-order.h:64
ThermalClustersByAlphaOrder(HTMLListbox::Component &parent)
Default Constructor.
Definition: thermal-cluster-order.cpp:158
Definition: thermal-cluster-order.h:80
virtual wxString name() const
Get the name of the datasource.
Definition: thermal-cluster-order.h:91
virtual ~ThermalClustersByAlphaReverseOrder()
Destructor.
Definition: thermal-cluster-order.cpp:181
virtual const char * icon() const
Get the relative path to the icon file.
Definition: thermal-cluster-order.h:96
ThermalClustersByAlphaReverseOrder(HTMLListbox::Component &parent)
Default Constructor.
Definition: thermal-cluster-order.cpp:175
Definition: thermal-cluster-order.h:34
virtual ~ThermalClustersByOrder()
Destructor.
Definition: thermal-cluster-order.cpp:36
ThermalClustersByOrder(HTMLListbox::Component &parent)
Default Constructor.
Definition: thermal-cluster-order.cpp:31