erbrowser/include/main.h

Go to the documentation of this file.
00001 #ifndef __MAIN_H__
00002 #define __MAIN_H__
00003 
00004 /**
00005  * File Name  : main.h
00006  *
00007  * Description: Main module of the application
00008  */
00009 
00010 /*
00011  * This file is part of erbrowser.
00012  *
00013  * erbrowser is free software: you can redistribute it and/or modify
00014  * it under the terms of the GNU General Public License as published by
00015  * the Free Software Foundation, either version 2 of the License, or
00016  * (at your option) any later version.
00017  *
00018  * erbrowser is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00021  * GNU General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU General Public License
00024  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00025  */
00026 
00027 /**
00028  * Copyright (C) 2009 iRex Technologies B.V.
00029  * All rights reserved.
00030  */
00031 
00032 
00033 //----------------------------------------------------------------------------
00034 // Include Files
00035 //----------------------------------------------------------------------------
00036 
00037 #include <gtk/gtk.h>
00038 
00039 G_BEGIN_DECLS
00040 
00041 
00042 //----------------------------------------------------------------------------
00043 // Definitions
00044 //---------------------------------------------------------------------------- 
00045 
00046 
00047 //----------------------------------------------------------------------------
00048 // Forward Declarations
00049 //----------------------------------------------------------------------------
00050 
00051 
00052 //----------------------------------------------------------------------------
00053 // Type Declarations
00054 //----------------------------------------------------------------------------
00055 
00056 typedef struct _BrowserWindow
00057 {
00058     GtkWidget *window;
00059     GtkWidget *back_listview;
00060     GtkListStore *back_liststore;
00061     GtkWidget *locationbar;
00062     GtkWidget *toolbar;
00063     GtkWidget *uri_entry;
00064     GtkWidget *title;
00065     GtkWidget *web_view;
00066     GtkWidget *scrolled_window;
00067     GtkWidget *vbox;
00068     GtkAdjustment *hadjustment;
00069     GtkAdjustment *vadjustment;
00070     gchar *uri;
00071     gboolean open_download;
00072 } BrowserWindow;
00073 
00074 
00075 //----------------------------------------------------------------------------
00076 // Global Constants
00077 //----------------------------------------------------------------------------
00078 
00079 
00080 //----------------------------------------------------------------------------
00081 // Global Variables
00082 //----------------------------------------------------------------------------
00083 
00084 GtkWidget       *g_main_window;
00085 gchar           *g_mountpoint;
00086 
00087 
00088 //============================================================================
00089 // Public Functions
00090 //============================================================================
00091 
00092 void     main_set_locale         ( const char    *locale );
00093 void     main_quit               ( void );
00094 void     main_on_connected       ( void );
00095 void     main_on_disconnected    ( void );
00096 gboolean main_request_connection ( void );
00097 void     run_error_dialog        ( const gchar   *msg );
00098 
00099 G_END_DECLS
00100 
00101 #endif /* __MAIN_H__ */
Generated by  doxygen 1.6.2-20100208