1 /* 2 * char *rcsid_gtk2_info_h = 3 * "$Id$"; 4 */ 5 6 /* 7 Crossfire client, a client program for the crossfire program. 8 9 Copyright (C) 2010 Mark Wedel & Crossfire Development Team 10 11 This program is free software; you can redistribute it and/or modify 12 it under the terms of the GNU General Public License as published by 13 the Free Software Foundation; either version 2 of the License, or 14 (at your option) any later version. 15 16 This program is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU General Public License for more details. 20 21 You should have received a copy of the GNU General Public License 22 along with this program; if not, write to the Free Software 23 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 24 25 The author can be reached via e-mail to crossfire@metalforge.org 26 */ 27 28 #ifndef INFO_H 29 #define INFO_H 30 31 /** 32 * @file info.h 33 * This file is really here to declare the Info_Pane structure. 34 * the account based login code also uses info panes, so it 35 * needs to be declared in a place where both files can access it. 36 */ 37 38 #include "shared/newclient.h" 39 40 /** 41 * @{ 42 * @name GTK V2 Font Style Definitions. 43 * Font style support definitions for the info window. 44 * Font style defines are indices into the font_style_names[] array. 45 * The actual fonts that they are bound to are set up in the style file. 46 */ 47 #define FONT_NORMAL 0 48 #define FONT_ARCANE 1 49 #define FONT_STRANGE 2 50 #define FONT_FIXED 3 51 #define FONT_HAND 4 52 #define NUM_FONTS 5 53 54 55 typedef struct Info_Pane 56 { 57 GtkWidget *textview; 58 GtkWidget *scrolled_window; 59 GtkTextBuffer *textbuffer; 60 GtkTextMark *textmark; 61 GtkAdjustment *adjustment; 62 GtkTextTag *color_tags[NUM_COLORS]; 63 GtkTextTag *font_tags[NUM_FONTS]; 64 GtkTextTag *bold_tag, *italic_tag, *underline_tag, *default_tag; 65 GtkTextTag **msg_type_tags[MSG_TYPE_LAST]; 66 } Info_Pane; 67 68 #endif 69