Remove sqlite3 build dep.
[gmpc.git] / src / GUI / cmd.h
blob10fb05fdd718fda2c6d126659ba80e645636d7ed
1 #ifndef __CMD_H__
2 #define __CMD_H__
4 /**
5 * Shows the commandline in the playlist window.
6 */
7 void show_command_line(void);
9 /**
10 * @param entry The CMD #GtkEntry
11 * @param event the #GdkEvent to process
12 * @param data user data.
14 * Function handles key presses on the #GtkEntry of the CMD.
15 * Escape: close the entry.
16 * Up: Previous history item.
17 * Down: Next history item.
18 * Backspace: if empty, close the CMD.
20 * @returns TRUE if the keypress is handled and should not propagate.
22 gboolean show_command_line_key_press_event(
23 GtkWidget *entry,
24 GdkEventKey *event,
25 gpointer data);
27 /**
28 * @param entry The CMD #GtkEntry
30 * Handle activation of the CMD. It Executes the command.
32 void show_command_line_activate(
33 GtkWidget *entry,
34 gpointer data);
36 /**
37 * @param entry The CMD #GtkEntry
38 * @param pos The #GtkEntryIconPostion that was released.
39 * @param event The #GdkEvent to handle.
40 * @param data user data.
42 * Handle cliking of the icons in the CMD entry.
43 * On right icon, clear the entry.
45 void show_command_line_icon_release(
46 GtkWidget *entry,
47 GtkEntryIconPosition pos,
48 GdkEvent *event,
49 gpointer data);
51 /**
52 * @param entry The CMD #GtkEntry
53 * @param data user data.
55 * Handle change event on the entry.
56 * Used by the history.
58 void show_command_line_entry_changed(
59 GtkWidget *entry,
60 gpointer data);
61 #endif