Player GUI source code. More...
#include "player_gui.h"
Functions | |
| int | StartGui (int argc, char **argv) |
| Main GUI function This function starts the GUI. | |
| gint | timeout_callback (gpointer) |
| GTK timeout. This function forces the GUI to sleep. | |
| void | ConfigGui (struct_gui_config *config) |
| Default variables This function sets the default values for some variables,. | |
| void | MarkHighlitedType (struct_combo *combo) |
| Changes the background on the selected message type. | |
| void | WaitForFirstMessage (struct_gui_config *config) |
| Waits for first message. | |
| void | button_callback (GtkButton *button, gpointer data) |
| Main button callback This function is a callback for all buttons. | |
| void | MoveScrollBar (struct_combo *combo) |
| Move the scroll bar This function moves the horizontal scroll bar if the autoscroll is enabled. | |
| gboolean | h_scroll_moved (GtkRange *, GtkScrollType, gdouble, gpointer data) |
| Callback for scroll bar moves This function checks if it was i that moved the scroll bar and if not we turn off the autoscroll. When the used moves the scroll bar by hand the autoscroll is disabled. | |
| gboolean | zoom_change (GtkRange *, gpointer data) |
| Callback for zoom change This function redraws widgets based on the new zoom level. | |
| void | CreatMainWindow (struct_window *gtk, struct_gui_config *config) |
| Create main window. This function packs all widgets together. | |
| void | checkbutton_toggled (GtkToggleButton *button, gpointer) |
| Callback for checkbuttons Activates or deactivates a message type. | |
| gboolean | speed_change (GtkRange *range, gpointer) |
| Callback for speed change Gets the new value and sends it to the manager. | |
| gboolean | on_destroy (GtkWidget *, gpointer) |
| Destroy callback Kill it self and the father. | |
| void | CreateMarker (struct_combo *combo) |
| Create marker Create a marker at the current time position. | |
| gboolean | mouse_over (GtkWidget *, GdkEventCrossing *event, gpointer data) |
| Mouse over callback Change marker background color. | |
| void | LayoutTimebar (struct_window *gtk, struct_gui_config *config) |
| Layout labels with the time Draws a serires of labels on the GUI timestamps. | |
| gboolean | zone_pressed_callback (GtkWidget *widget, GdkEventButton *event, gpointer data) |
| Function called when a zone was pressed Seeks to the position seleted and changes the highlited_type. | |
| void | CreateDrawingArea (GtkWidget **widget, struct_combo *combo) |
| Create drawing area Create the underlying drawing area of the zone. | |
| gboolean | motion_event_callback (GtkWidget *, GdkEventMotion *event, gpointer data) |
| Drags the marker Drags the marker to a new position making a seek in the manager. | |
| gboolean | drag_event_callback (GtkWidget *, GdkEventButton *event, gpointer data) |
| Draw event callback Sets or resets drawing state. If the marker was pressed begin drawing else stop draging. | |
| gboolean | expose_event_callback (GtkWidget *widget, GdkEventExpose *, gpointer data) |
| Redraw the underlying widget and timebars. | |
| int | ColorShort2Long (int input) |
| void | status_handler (playback_status_message *msg) |
| void | MoveMarker (struct_combo *combo, double time) |
| Move the marker to a new position. | |
| void | gui_shutdown_module (int x) |
Variables | |
| struct_combo * | data |
| Pointer to a global structure containing a representation of the GUI. | |
Player GUI source code.
1.6.3