X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcwindowbase.h;h=2feaf66cebcb1e798ed807697473723a90d37803;hb=HEAD;hp=d02a357ed3fe84e0af975e260a5a0c6b59fb0490;hpb=c8ada3e79b5bf9b8282bdcc8fe858f24c6ac0715;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/bcwindowbase.h b/cinelerra-5.1/guicast/bcwindowbase.h index d02a357e..2feaf66c 100644 --- a/cinelerra-5.1/guicast/bcwindowbase.h +++ b/cinelerra-5.1/guicast/bcwindowbase.h @@ -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; @@ -917,11 +930,9 @@ private: #else Condition *completion_lock; #endif - - + Mutex *grab_lock; int dump_windows(); - BC_WindowEvents *event_thread; int is_deleting; // Hide cursor when video is enabled