00001 /* 00002 * This file is part of browser. 00003 * 00004 * browser is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * browser is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00026 /* browser - A mozilla based browser application on the eReader platform 00027 * Copyright (C) 2005-2008 iRex Technologies B.V. 00028 * 00029 */ 00030 #ifndef __BROWSER_TYPES_H__ 00031 #define __BROWSER_TYPES_H__ 00032 00033 // general includes 00034 #include <gdk/gdk.h> 00035 #include <gtk/gtk.h> 00036 #include <stdio.h> 00037 #include <string.h> 00038 #include "gtkmozembed.h" 00039 #include "indexFileHandler.h" 00040 00041 // Used to keep track of the page status when working with a manifest file 00042 typedef struct _BrowserPageStatus 00043 { 00044 // FILE* indexFile; 00045 IndexInfo index; 00046 char* currentType; 00047 char* manifestFile; 00048 int currentPage; 00049 int pageCount; 00050 } BrowserPageStatus; 00051 00052 // Used to pass browser application references/data 00053 // through the whole program. 00054 typedef struct _Ereader 00055 { 00056 GtkWidget *topLevelWindow; 00057 GtkWidget *topLevelVBox; 00058 GtkWidget *eventBox; //addded to have an actual X-window 00059 GtkWidget *mozEmbed; 00060 // GtkWidget *thepagebar; 00061 GtkWidget *dialog; // Find dialog tryout (currently - 20051227 - not used any more) 00062 #ifdef LOCAL_DISPLAY 00063 GtkWidget *toolbar; //Put empty toolbar on the screen - for layout reasons - when working on PC witout Xnest 00064 #endif //LOCAL_DISPLAY 00065 BrowserPageStatus *pageStatus; 00066 } Ereader; 00067 00068 #endif // __BROWSER_TYPES_H__
1.5.6