Exciting new Alt/h help key provided by sge (Georgy) with many thanks!
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / bcwindowbase.h
index e4eb8ba4c812354305d27a2fea44b078b93a94dd..2feaf66cebcb1e798ed807697473723a90d37803 100644 (file)
@@ -206,7 +206,7 @@ public:
        virtual int cursor_motion_event() { return 0; };
        virtual int cursor_leave_event();
        virtual int cursor_enter_event();
-       virtual int keypress_event() { return 0; };
+       virtual int keypress_event();
        virtual int keyrelease_event() { return 0; };
        virtual int translation_event() { return 0; };
        virtual int drag_start_event() { return 0; };
@@ -370,6 +370,8 @@ public:
        BC_WindowBase* get_parent();
 // Event happened in this window
        int is_event_win();
+// Event happened either in this window or in the associated tooltip
+       int is_tooltip_event_win();
        int cursor_inside();
 // Deactivate everything and activate this subwindow
        virtual int activate();
@@ -563,6 +565,14 @@ public:
        long from_clipboard(char *data, long maxlen, int clipboard_num);
        long clipboard_len(int clipboard_num);
 
+// *** CONTEXT_HELP ***
+       void context_help_set_keyword(const char *keyword);
+       const char *context_help_get_keyword();
+       void context_help_show(const char *keyword);
+       void context_help_show();
+       int context_help_check_and_show(const char *keyword);
+       int context_help_check_and_show();
+
        int test_keypress;
        char keys_return[KEYPRESSLEN];
 
@@ -798,6 +808,9 @@ private:
        int shared_bg_pixmap;
        char title[BCTEXTLEN];
 
+// *** CONTEXT_HELP ***
+       char context_help_keyword[BCTEXTLEN];
+
 // X Window parameters
        int screen;
        Window rootwin;