projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clip folder bug on reload, expander user folder drag/drop segv, remove libfdk src...
[goodguy/history.git]
/
cinelerra-5.1
/
guicast
/
bclistbox.h
diff --git
a/cinelerra-5.1/guicast/bclistbox.h
b/cinelerra-5.1/guicast/bclistbox.h
index 5ea18865e6679f41e05d261f9fa1d3364265eda6..6bdd2c041a35e0d202310a27b9c199d3bc7e864d 100644
(file)
--- a/
cinelerra-5.1/guicast/bclistbox.h
+++ b/
cinelerra-5.1/guicast/bclistbox.h
@@
-27,7
+27,7
@@
#include "bcscrollbar.h"
#include "bcsubwindow.h"
#include "bctoggle.h"
#include "bcscrollbar.h"
#include "bcsubwindow.h"
#include "bctoggle.h"
-#include "colors.h"
+#include "
bc
colors.h"
#define BCPOPUPLISTBOX_W 25
#define BCPOPUPLISTBOX_H 25
#define BCPOPUPLISTBOX_W 25
#define BCPOPUPLISTBOX_H 25
@@
-106,8
+106,6
@@
public:
int allow_drag = 0); // Allow user to drag icons around
virtual ~BC_ListBox();
int allow_drag = 0); // Allow user to drag icons around
virtual ~BC_ListBox();
- friend class BC_ListBoxToggle;
-
int initialize();
// User event handler for new selections
int initialize();
// User event handler for new selections
@@
-125,6
+123,8
@@
public:
virtual int sort_order_event() { return 0; };
// Column moved
virtual int move_column_event() { return 0; };
virtual int sort_order_event() { return 0; };
// Column moved
virtual int move_column_event() { return 0; };
+// item highlight changed
+ virtual int mouse_over_event(int no) { return 0; }
int enable();
int disable();
int enable();
int disable();
@@
-191,6
+191,12
@@
public:
int activate(int x, int y, int w=-1, int h=-1);
int deactivate();
int is_active();
int activate(int x, int y, int w=-1, int h=-1);
int deactivate();
int is_active();
+ int expander_active();
+
+// get item no at current cursor position
+ int get_cursor_item_no();
+// get top data item no, and item at current cursor position
+ int get_cursor_data_item_no(BC_ListBoxItem **item_return=0);
int translation_event();
int repeat_event(int64_t duration);
int translation_event();
int repeat_event(int64_t duration);
@@
-199,7
+205,9
@@
public:
// Must be called in the constructor.
void set_use_button(int value);
void set_is_suggestions(int value);
// Must be called in the constructor.
void set_use_button(int value);
void set_is_suggestions(int value);
-
+ void set_scroll_repeat();
+ void unset_scroll_repeat();
+ int scroll_repeat;
// change the contents
int update(ArrayList<BC_ListBoxItem*> *data,
// change the contents
int update(ArrayList<BC_ListBoxItem*> *data,
@@
-316,6
+324,12
@@
public:
int indent /* = 0 */,
int master_column);
int indent /* = 0 */,
int master_column);
+ int get_icon_x(BC_ListBoxItem *item);
+ int get_icon_y(BC_ListBoxItem *item);
+ int get_icon_w(BC_ListBoxItem *item);
+ int get_icon_h(BC_ListBoxItem *item);
+ int get_text_w(BC_ListBoxItem *item);
+ int get_text_h(BC_ListBoxItem *item);
int get_item_x(BC_ListBoxItem *item);
int get_item_y(BC_ListBoxItem *item);
int get_item_w(BC_ListBoxItem *item);
int get_item_x(BC_ListBoxItem *item);
int get_item_y(BC_ListBoxItem *item);
int get_item_w(BC_ListBoxItem *item);
@@
-323,6
+337,7
@@
public:
// Draw the list items
int draw_items(int flash, int bg_draw=0);
// Draw the list items
int draw_items(int flash, int bg_draw=0);
+ int is_highlighted();
private:
void delete_columns();
private:
void delete_columns();
@@
-403,10
+418,6
@@
private:
int get_items_height(ArrayList<BC_ListBoxItem*> *data,
int columns,
int *result = 0);
int get_items_height(ArrayList<BC_ListBoxItem*> *data,
int columns,
int *result = 0);
- int get_icon_w(BC_ListBoxItem *item);
- int get_icon_h(BC_ListBoxItem *item);
- int get_text_w(BC_ListBoxItem *item);
- int get_text_h(BC_ListBoxItem *item);
int get_baseline(BC_ListBoxItem *item);
int get_item_highlight(ArrayList<BC_ListBoxItem*> *data, int column, int item);
int get_item_color(ArrayList<BC_ListBoxItem*> *data, int column, int item);
int get_baseline(BC_ListBoxItem *item);
int get_item_highlight(ArrayList<BC_ListBoxItem*> *data, int column, int item);
int get_item_color(ArrayList<BC_ListBoxItem*> *data, int column, int item);
@@
-434,7
+445,8
@@
private:
// Points *item_return to the first item in the row or 0 if no item was found.
// if it's nonzero. Returns -1 if no item was found. Clamps the y coordinate
// only if the current operation is not SELECT, so scrolling is possible.
// Points *item_return to the first item in the row or 0 if no item was found.
// if it's nonzero. Returns -1 if no item was found. Clamps the y coordinate
// only if the current operation is not SELECT, so scrolling is possible.
-// expanded - 1 if items in this table should be tested for cursor coverage
+// expanded = 1 if items in this table should be tested for cursor coverage
+// expanded = -1 returns only the top level master column index/item
int get_cursor_item(ArrayList<BC_ListBoxItem*> *data,
int cursor_x,
int cursor_y,
int get_cursor_item(ArrayList<BC_ListBoxItem*> *data,
int cursor_x,
int cursor_y,
@@
-507,7
+519,7
@@
private:
// Size of the popup if there is one
char **column_titles;
int *column_width;
// Size of the popup if there is one
char **column_titles;
int *column_width;
- int default_column_width[
1
];
+ int default_column_width[
32
];
int columns;
int master_column;
int search_column;
int columns;
int master_column;
int search_column;
@@
-588,6
+600,7
@@
private:
// More state variables
int button_highlighted;
int list_highlighted;
// More state variables
int button_highlighted;
int list_highlighted;
+ int packed_icons;
// item cursor is over. May not exist in tables.
// Must be an index since this is needed to change the database.
int highlighted_item;
// item cursor is over. May not exist in tables.
// Must be an index since this is needed to change the database.
int highlighted_item;