titler fixes, auto paste bug, resize popup hang, focus policy fix, chk lang
[goodguy/history.git] / cinelerra-5.1 / guicast / bclistbox.h
index 73c5ddb3a4805296ce795d36b9e0d9af709e5888..66d13255f86bb2b59bd7782586923dcd127104de 100644 (file)
@@ -178,25 +178,27 @@ public:
                int *result /* = 0 */,
                int master_column);
 
-
-       int focus_out_event();
+       virtual int focus_out_event();
+       virtual int keypress_event();
        virtual int button_press_event();
-       int button_release_event();
-       int cursor_enter_event();
-       int cursor_leave_event();
-       int cursor_motion_event();
+       virtual int button_release_event();
+       virtual int cursor_enter_event();
+       virtual int cursor_leave_event();
+       virtual int cursor_motion_event();
        virtual int drag_start_event();
        virtual int drag_motion_event();
        virtual int drag_stop_event();
-       int deactivate();
+
 // After popping up a menu call this to interrupt the selection process
        void deactivate_selection();
 
 // take_focus - used by the suggestion box to keep it from taking focus from the
 // textbox
        int activate(int take_focus = 1);
+       int activate(int x, int y, int w=-1, int h=-1);
+       int deactivate();
+       int is_active();
 
-       virtual int keypress_event();
        int translation_event();
        int repeat_event(int64_t duration);
        BC_DragWindow* get_drag_popup();
@@ -251,6 +253,9 @@ public:
        void set_justify(int value);
        int get_w() { return is_popup ? BCPOPUPLISTBOX_W : popup_w; }
        int get_h() { return is_popup ? BCPOPUPLISTBOX_H : popup_h; }
+       int gui_tooltip(const char *text) {
+               return is_popup && gui ? gui->show_tooltip(text, gui->get_w(),0, -1,-1) : -1;
+       }
        int get_view_w() { return view_w; }
        int get_view_h() { return view_h; }
        int get_row_height() { return row_height; }
@@ -273,6 +278,9 @@ public:
 
 
        void reset_query();
+       int get_show_query() { return show_query; }
+       void set_show_query(int v) { show_query = v; }
+
        int reposition_window(int x,
                int y,
                int w = -1,
@@ -501,7 +509,7 @@ private:
        BC_ListBoxYScroll *yscrollbar;
        ArrayList<BC_ListBoxToggle*> expanders;
        char query[BCTEXTLEN];
-
+       int show_query;
 
 // Window containing the listbox
        BC_WindowBase *gui;
@@ -532,7 +540,6 @@ private:
        int list_background;
 
 
-
 // Popup button
        BC_Pixmap *button_images[4];
 // Expander