Search
lxdream.org :: lxdream/src/gui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui.h
changeset 561:533f6b478071
prev545:fdcdcd8b9fd1
next678:35eb00945316
author nkeynes
date Tue Jan 01 05:08:38 2008 +0000 (16 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Enable Id keyword on all source files
file annotate diff log raw
nkeynes@435
     1
/**
nkeynes@561
     2
 * $Id$
nkeynes@435
     3
 *
nkeynes@435
     4
 * Public GUI declarations (used from elsewhere in the system)
nkeynes@435
     5
 *
nkeynes@435
     6
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@435
     7
 *
nkeynes@435
     8
 * This program is free software; you can redistribute it and/or modify
nkeynes@435
     9
 * it under the terms of the GNU General Public License as published by
nkeynes@435
    10
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@435
    11
 * (at your option) any later version.
nkeynes@435
    12
 *
nkeynes@435
    13
 * This program is distributed in the hope that it will be useful,
nkeynes@435
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@435
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@435
    16
 * GNU General Public License for more details.
nkeynes@435
    17
 */
nkeynes@435
    18
nkeynes@435
    19
#ifndef __lxdream_gui_H
nkeynes@435
    20
#define __lxdream_gui_H
nkeynes@435
    21
nkeynes@435
    22
#include <glib/gtypes.h>
nkeynes@435
    23
nkeynes@435
    24
/**
nkeynes@435
    25
 * GUI-provided method to scan the command line for standard arguments,
nkeynes@435
    26
 * invoked prior to regular command line processing. The command line
nkeynes@435
    27
 * is modified to remove any arguments handled by the UI.
nkeynes@435
    28
 * @return TRUE on success, FALSE on failure.
nkeynes@435
    29
 */
nkeynes@435
    30
gboolean gui_parse_cmdline( int *argc, char **argv[] );
nkeynes@435
    31
nkeynes@435
    32
/**
nkeynes@435
    33
 * Initialize the GUI system and create any windows needed. This method
nkeynes@435
    34
 * should also register the GUI module with the module manager (if the
nkeynes@435
    35
 * GUI has one).
nkeynes@435
    36
 *
nkeynes@435
    37
 * @param debug TRUE if the system should start in debugging mode.
nkeynes@435
    38
 */
nkeynes@435
    39
gboolean gui_init( gboolean debug );
nkeynes@435
    40
nkeynes@435
    41
/**
nkeynes@435
    42
 * Enter the GUI main loop. If this method ever returns, the system will
nkeynes@435
    43
 * exit normally.
nkeynes@435
    44
 */
nkeynes@435
    45
void gui_main_loop(void);
nkeynes@435
    46
nkeynes@447
    47
gboolean gui_error_dialog( const char *fmt, ... );
nkeynes@447
    48
nkeynes@435
    49
typedef enum { IO_IDE, IO_NETWORK } io_activity_type;
nkeynes@435
    50
nkeynes@435
    51
/**
nkeynes@545
    52
 * Notify the GUI of state changes (eg binary was loaded and PC changed)
nkeynes@545
    53
 */
nkeynes@545
    54
void gui_update_state();
nkeynes@545
    55
nkeynes@545
    56
/**
nkeynes@435
    57
 * Notify the GUI of I/O activity. 
nkeynes@435
    58
 * @param activity the type of IO activity being reported.
nkeynes@435
    59
 * @param active TRUE if the I/O device is becoming active, FALSE if inactive.
nkeynes@435
    60
 */
nkeynes@435
    61
void gui_update_io_activity( io_activity_type activity, gboolean active );
nkeynes@435
    62
nkeynes@480
    63
/**
nkeynes@480
    64
 * Open a gdrom filename via the menu. FIXME: Should be generic
nkeynes@480
    65
 */
nkeynes@480
    66
gboolean gdrom_menu_open_file( const char *filename );
nkeynes@480
    67
nkeynes@435
    68
#endif /* __lxdream_gui_H */
.