36
36
CD_APPLET_DEFINE_BEGIN ("Scooby-Do",
38
38
CAIRO_DOCK_CATEGORY_APPLET_SYSTEM,
39
N_("This plug-in allows you to make different actions directly from the keyboard.\n"
40
"It has 2 modes, each one being triggered by a keyboard shortcut:\n\n"
41
"- the finder mode (default shortcut : CTRL + Enter) :\n"
42
" It lets you find and launch applications, files, recent files, firefox bookmarks, commands, and even calculations.\n"
43
" Type what you want to search, the results will be displayed in real time.\n"
44
" The first results of each category are displayed in the main listing.\n"
45
" Use the up/down arrows to navigate inside the list,\n"
46
" and use the left/right arrows to enter into a category, or to display more actions (when a little arrow is drawn next to text).\n"
47
" Once inside a category, you can filter the results by typing some letters.\n"
48
" Press Enter to validate, maintain SHIFT or ALT to keep the list of results opened.\n\n"
49
"- the navigation mode (default shortcut : CTRL + F9) :\n"
50
" use the arrows to navigate into the docks and sub-docks,\n"
51
" or type the name of a launcher and press Tab to automatically jump to the next suitable launcher\n"
52
" press Enter to click on the icon, Shift+Enter for Shift+click, Alt+Enter for middle click, and Ctrl+Enter for left click\n"
39
("This plug-in allows you to make different actions directly from the keyboard.\n"
40
"It is triggered by a keyboard shortcut (by default: CTRL + Enter):\n"
41
"It lets you find and launch applications, files, recent files, firefox bookmarks, commands, and even calculations.\n"
42
"Type what you want to search, the results will be displayed in real time.\n"
43
"The first results of each category are displayed in the main listing.\n"
44
"Use the up/down arrows to navigate inside the list,\n"
45
" and use the left/right arrows to enter into a category, or to display more actions (when a little arrow is drawn next to text).\n"
46
"Once inside a category, you can filter the results by typing some letters.\n"
47
"Press Enter to validate, maintain SHIFT or ALT to keep the list of results opened.\n"
53
48
"Escape or the same shortkey will cancel."),
54
49
"Fabounet (Fabrice Rey)")
50
CD_APPLET_DEFINE_COMMON_APPLET_INTERFACE
55
51
CD_APPLET_SET_CONTAINER_TYPE (CAIRO_DOCK_MODULE_IS_PLUGIN);
56
52
CD_APPLET_DEFINE_END
70
66
CD_APPLET_INIT_BEGIN
71
67
cairo_dock_register_notification (CAIRO_DOCK_KEY_PRESSED, (CairoDockNotificationFunc) cd_do_key_pressed, CAIRO_DOCK_RUN_AFTER, NULL);
73
cd_keybinder_bind (myConfig.cShortkeyNav, (CDBindkeyHandler) cd_do_on_shortkey_nav, myApplet);
74
69
cd_keybinder_bind (myConfig.cShortkeySearch, (CDBindkeyHandler) cd_do_on_shortkey_search, myApplet);
76
71
_register_backends ();
97
92
cd_do_destroy_listing (myData.pListing);
98
93
myData.pListing = NULL;
100
cd_keybinder_bind (myConfig.cShortkeyNav, (CDBindkeyHandler) cd_do_on_shortkey_nav, myApplet); // shortkey were unbinded during reset_config.
101
95
cd_keybinder_bind (myConfig.cShortkeySearch, (CDBindkeyHandler) cd_do_on_shortkey_search, myApplet); // shortkey were unbinded during reset_config.
103
97
if (myData.sCurrentText != NULL) // peu probable.