#include <wx/listctrl.h>
#include <wx/splitter.h>
//#include <vector>
-
+const std::string empty_string("");
namespace creaImageIO
{
+ //=====================================================================
+ /// Data stored by the list items
+ struct ItemData
+ {
+ ItemData() : node(0), id(-1), attr(&empty_string) {}
+ // The corresponding Node
+ tree::Node* node;
+ // The id ?
+ int id;
+ // The pointer on the current attribute string to sort on
+ const std::string* attr;
+ // Was the item previously selected ?
+ // Useful for reselecting the item after sort
+ bool selected;
+ };
/**
* \ingroup View
*/
/// Updates the view of a level given the selected items of upper level
/// Recursive method
virtual void RecursiveUpdateLevel( int );
- ///Sets the color of a selected item
- void SetColor(int level, int item);
- ///Creates the color palette for the first level
- void CreateColorPalette();
///Selects all the elements of a level
void SelectAll(int level);
///UnSelects all the elements of a level
// or sorting
bool mIgnoreSelectedChanged;
-
DECLARE_EVENT_TABLE()
};
// EO class WxTreeView