add resource wdw folder expanders, fix plugin close deadlock detect
[goodguy/history.git] / cinelerra-5.1 / guicast / bclistboxitem.h
index 4ec0e475c16a6b539ed58ca7d1e5ed4b71818e74..229b31ef3dcb25d40fddbe3d53341ec3f6cbffaf 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "arraylist.h"
 #include "bcpixmap.inc"
-#include "colors.h"
+#include "bccolors.h"
 #include "vframe.h"
 
 
@@ -81,6 +81,7 @@ public:
        void set_icon_vframe(VFrame *p) { icon_vframe = p; }
        void set_color(int v) { color = v; }
        int get_color() { return color; }
+       virtual VFrame *get_vicon_frame() { return 0; }
 
        void copy_from(BC_ListBoxItem *item);
        BC_ListBoxItem& operator=(BC_ListBoxItem& item) {
@@ -91,6 +92,7 @@ public:
 
 // The item with the sublist must be in column 0.  Only this is searched by
 // BC_ListBox.
+       int sublist_active() { return sublist && expand ? 1 : 0; }
 // Mind you, sublists are ignored in icon mode.
        ArrayList<BC_ListBoxItem*>* new_sublist(int columns);
        ArrayList<BC_ListBoxItem*>* get_sublist() { return sublist; }
@@ -99,10 +101,13 @@ public:
 // Return if it's expanded
        int get_expand() { return expand; }
        void set_expand(int value) { expand = value; }
+// alpha sort on text
+       static void sort_items(ArrayList<BC_ListBoxItem*> &items);
 
 private:
        int initialize();
        void set_in_view(int v) { in_view = v; }
+       static int compare_item_text(const void *a, const void *b);
 
        BC_Pixmap *icon;
        VFrame *icon_vframe;