Search
lxdream.org :: lxdream/src/gui/gtkui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gtkui.h
changeset 450:207461e79f21
prev447:3e095bfcb476
next455:3080881d00d4
author nkeynes
date Wed Oct 17 11:26:45 2007 +0000 (15 years ago)
permissions -rw-r--r--
last change Split config management out to config.[ch]
Manage config filename
Check home dir + sysconfdir for conf file
Initial work on a path settings dialog
view annotate diff log raw
     1 /**
     2  * $Id: gtkui.h,v 1.4 2007-10-17 11:26:45 nkeynes Exp $
     3  *
     4  * Core GTK-based user interface
     5  *
     6  * Copyright (c) 2005 Nathan Keynes.
     7  *
     8  * This program is free software; you can redistribute it and/or modify
     9  * it under the terms of the GNU General Public License as published by
    10  * the Free Software Foundation; either version 2 of the License, or
    11  * (at your option) any later version.
    12  *
    13  * This program is distributed in the hope that it will be useful,
    14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  * GNU General Public License for more details.
    17  */
    19 #ifndef __lxdream_gtkui_H
    20 #define __lxdream_gtkui_H
    22 #include <gtk/gtk.h>
    23 #include "gui.h"
    24 #include "cpu.h"
    26 /********************* Top-level windows *********************/
    28 typedef struct main_window_info *main_window_t;
    29 typedef struct debug_window_info *debug_window_t;
    30 typedef struct mmio_window_info *mmio_window_t;
    32 /**
    33  * Construct and show the main window, returning an 
    34  * opaque pointer to the window.
    35  */
    36 main_window_t main_window_new( const gchar *title );
    37 GtkWindow *main_window_get_frame( main_window_t win );
    38 GtkWidget *main_window_get_renderarea( main_window_t win );
    39 void main_window_set_running( main_window_t win, gboolean running );
    40 void main_window_set_framerate( main_window_t win, float rate );
    41 void main_window_set_speed( main_window_t win, double speed );
    43 debug_window_t debug_window_new();
    44 void debug_window_show( debug_window_t win, gboolean show );
    45 void debug_window_set_running( debug_window_t win, gboolean running );
    46 void debug_window_update(debug_window_t win);
    48 mmio_window_t mmio_window_new();
    49 void mmio_window_show( mmio_window_t win, gboolean show );
    51 void controller_dialog_run();
    52 void path_dialog_run();
    54 /********************* Helper functions **********************/
    56 gint gtk_gui_run_property_dialog( const gchar *title, GtkWidget *panel );
    58 /******************** Video driver hooks *********************/
    60 GtkWidget *gtk_gui_get_renderarea();
    62 /******************* Callback declarations *******************/
    64 void mount_action_callback( GtkAction *action, gpointer user_data);
    65 void reset_action_callback( GtkAction *action, gpointer user_data);
    66 void pause_action_callback( GtkAction *action, gpointer user_data);
    67 void resume_action_callback( GtkAction *action, gpointer user_data);
    68 void load_state_action_callback( GtkAction *action, gpointer user_data);
    69 void save_state_action_callback( GtkAction *action, gpointer user_data);
    70 void about_action_callback( GtkAction *action, gpointer user_data);
    71 void debugger_action_callback( GtkAction *action, gpointer user_data);
    72 void exit_action_callback( GtkAction *action, gpointer user_data);
    74 void path_settings_callback( GtkAction *action, gpointer user_data);
    75 void audio_settings_callback( GtkAction *action, gpointer user_data);
    76 void controller_settings_callback( GtkAction *action, gpointer user_data);
    77 void network_settings_callback( GtkAction *action, gpointer user_data);
    78 void video_settings_callback( GtkAction *action, gpointer user_data);
    79 void fullscreen_toggle_callback( GtkToggleAction *action, gpointer user_data);
    81 /*************** Constant colour/font values *****************/
    82 extern PangoFontDescription *gui_fixed_font;
    83 extern GdkColor gui_colour_normal, gui_colour_changed, gui_colour_error;
    84 extern GdkColor gui_colour_warn, gui_colour_pc, gui_colour_debug;
    85 extern GdkColor gui_colour_trace, gui_colour_break, gui_colour_temp_break;
    86 extern GdkColor gui_colour_white;
    88 #endif /* __lxdream_gtkui_H */
.