Crossfire Client, Trunk  R18666
Functions
GTK-V2 client keybinding window functions.

Functions

void update_keybinding_list (void)
void on_keybindings_activate (GtkMenuItem *menuitem, gpointer user_data)
gboolean on_keybinding_entry_key_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer user_data)
void on_keybinding_button_remove_clicked (GtkButton *button, gpointer user_data)
void on_keybinding_button_bind_clicked (GtkButton *button, gpointer user_data)
void on_keybinding_button_update_clicked (GtkButton *button, gpointer user_data)
void on_keybinding_button_close_clicked (GtkButton *button, gpointer user_data)
gboolean keybinding_selection_func (GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, gboolean path_currently_selected, gpointer userdata)
void reset_keybinding_status (void)
void on_keybinding_button_clear_clicked (GtkButton *button, gpointer user_data)

Detailed Description

EndOf GtkV2KeyBinding


Function Documentation

gboolean keybinding_selection_func ( GtkTreeSelection *  selection,
GtkTreeModel *  model,
GtkTreePath *  path,
gboolean  path_currently_selected,
gpointer  userdata 
)

Called when the user clicks one of the entries in the list of keybindings and places information about it into the input fields on the dialog. This allows the player to edit and update, or remove bindings.

Parameters:
selection
model
path
path_currently_selected
userdata
Returns:
TRUE

Definition at line 2065 of file keys.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void on_keybinding_button_bind_clicked ( GtkButton *  button,
gpointer  user_data 
)

Sets up a new binding when the "Add" button is clicked.

Parameters:
button
user_data

Definition at line 1981 of file keys.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void on_keybinding_button_clear_clicked ( GtkButton *  button,
gpointer  user_data 
)

Implements the "Clear Fields" button function on the keybinding dialog. If a keybinding is highlighted (selected), de-select it first, then clear all of * the input boxes and reset any buttons to an appropriate state.

Parameters:
button
user_data

Definition at line 2162 of file keys.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void on_keybinding_button_close_clicked ( GtkButton *  button,
gpointer  user_data 
)

Deactivates the keybinding dialog when the "Close Window" button is clicked.

Parameters:
button
user_data

Definition at line 2047 of file keys.c.

Here is the caller graph for this function:

void on_keybinding_button_remove_clicked ( GtkButton *  button,
gpointer  user_data 
)

Implements the "Remove Binding" button function that unbinds the currently selected keybinding.

Parameters:
button
user_data

Definition at line 1860 of file keys.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void on_keybinding_button_update_clicked ( GtkButton *  button,
gpointer  user_data 
)

Implements the "Update Binding" button to update the currently selected keybinding to match the currently shown identifiers, key, or command input fields. If a keybinding is highlighted, so something. If not, log an error since the "Update Binding" button should have been disabled.

Parameters:
button
user_data

Definition at line 2013 of file keys.c.

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean on_keybinding_entry_key_key_press_event ( GtkWidget *  widget,
GdkEventKey *  event,
gpointer  user_data 
)

Respond to a key press in the "Key" input box. If the keyboard has modifier keys pressed, set the appropriate "Keybinding Modifiers" checkboxes if the shift or control keys happens to be pressed at the time. Oddly, the Alt and Meta keys are not similarly handled. Checkboxes are never cleared here in case the user had just set the checkboxes ahead of time.i

Parameters:
widget
event
user_data
Returns:
TRUE (Returning TRUE prevents widget from getting this event.)

Definition at line 1806 of file keys.c.

Here is the caller graph for this function:

void on_keybindings_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

Menubar item to activate keybindings window

Parameters:
menuitem
user_data

Definition at line 1786 of file keys.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void reset_keybinding_status ( void  )

Reset the state of the keybinding dialog. Uncheck all modifier checkboxes, clear the key input box, clear the command input box, and disable the two update and remove keybinding buttons.

Definition at line 2135 of file keys.c.

Here is the caller graph for this function:

void update_keybinding_list ( void  )

Update the keybinding dialog to reflect the current state of the keys file.

Definition at line 1741 of file keys.c.

Here is the call graph for this function:

Here is the caller graph for this function: