X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbclistboxitem.h;h=229b31ef3dcb25d40fddbe3d53341ec3f6cbffaf;hb=ae44cc4a24c9e04ee5e3b38baf6ce529832cfb39;hp=4ec0e475c16a6b539ed58ca7d1e5ed4b71818e74;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bclistboxitem.h b/cinelerra-5.1/guicast/bclistboxitem.h index 4ec0e475..229b31ef 100644 --- a/cinelerra-5.1/guicast/bclistboxitem.h +++ b/cinelerra-5.1/guicast/bclistboxitem.h @@ -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* new_sublist(int columns); ArrayList* 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 &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;