1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include <winver.h>
#include "../../config.h"
#include "../../resource.h"
1 24 "xchat.exe.manifest"
XC_ICON ICON "../../xchat.ico"
VS_VERSION_INFO VERSIONINFO
FILEVERSION COMMA_VERSION
PRODUCTVERSION COMMA_VERSION
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0"
BEGIN
VALUE "FileDescription", "XChat-WDK IRC Client"
VALUE "ProductName", "XChat-WDK"
VALUE "ProductVersion", PACKAGE_VERSION
VALUE "FileVersion", PACKAGE_VERSION
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 0x04B0
END
END
/* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #336699; font-weight: bold } /* Name.Property */
.highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #336699 } /* Name.Variable */
.highlight .ow { color: #008800 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
.highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
.highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long *//* HexChat
* Copyright (C) 1998-2010 Peter Zelezny.
* Copyright (C) 2009-2013 Berke Viktor.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_FE_GTK_H
#define HEXCHAT_FE_GTK_H
#include "config.h"
#define DISPLAY_NAME "HexChat"
#ifndef WIN32
#include <sys/types.h>
#endif
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#ifdef HAVE_GTK_MAC
#include <gtkosxapplication.h>
#endif
#include "banlist.h"
#define flag_c flag_wid[0]
#define flag_n flag_wid[1]
#define flag_r flag_wid[2]
#define flag_t flag_wid[3]
#define flag_i flag_wid[4]
#define flag_m flag_wid[5]
#define flag_l flag_wid[6]
#define flag_k flag_wid[7]
#define flag_b flag_wid[8]
#define NUM_FLAG_WIDS 9
#ifdef HAVE_GTK_MAC
extern GtkosxApplication *osx_app;
#endif
struct server_gui
{
GtkWidget *rawlog_window;
GtkWidget *rawlog_textlist;
/* join dialog */
GtkWidget *joind_win;
GtkWidget *joind_entry;
GtkWidget *joind_radio1;
GtkWidget *joind_radio2;
GtkWidget *joind_check;
/* chanlist variables */
GtkWidget *chanlist_wild; /* GtkEntry */
GtkWidget *chanlist_window;
GtkWidget *chanlist_list;
GtkWidget *chanlist_label;
GtkWidget *chanlist_min_spin; /* minusers GtkSpinButton */
GtkWidget *chanlist_refresh; /* buttons */
GtkWidget *chanlist_join;
GtkWidget *chanlist_savelist;
GtkWidget *chanlist_search;
GSList *chanlist_data_stored_rows; /* stored list so it can be resorted */
GSList *chanlist_pending_rows;
gint chanlist_tag;
gint chanlist_flash_tag;
gboolean chanlist_match_wants_channel; /* match in channel name */
gboolean chanlist_match_wants_topic; /* match in topic */
GRegex *chanlist_match_regex; /* compiled regular expression here */
unsigned int have_regex;
guint chanlist_users_found_count; /* users total for all channels */
guint chanlist_users_shown_count; /* users total for displayed channels */
guint chanlist_channels_found_count; /* channel total for /LIST operation */
guint chanlist_channels_shown_count; /* total number of displayed
channels */
guint32 chanlist_maxusers;
guint32 chanlist_minusers;
guint32 chanlist_minusers_downloaded; /* used by LIST IRC command */
int chanlist_search_type; /* 0=simple 1=pattern/wildcard 2=regexp */
gboolean chanlist_caption_is_stale;
};
/* this struct is persistant even when delinking/relinking */
typedef struct restore_gui
{
banlist_info *banlist;
void *tab; /* (chan *) */
/* information stored when this tab isn't front-most */
GtkListStore *user_model; /* for filling the GtkTreeView */
void *buffer; /* xtext_Buffer */
char *input_text; /* input text buffer (while not-front tab) */
char *topic_text; /* topic GtkEntry buffer */
char *key_text;
char *limit_text;
gfloat old_ul_value; /* old userlist value (for adj) */
gfloat lag_value; /* lag-o-meter */
char *lag_text; /* lag-o-meter text */
char *lag_tip; /* lag-o-meter tooltip */
gfloat queue_value; /* outbound queue meter */
char *queue_text; /* outbound queue text */
char *queue_tip; /* outbound queue tooltip */
short flag_wid_state[NUM_FLAG_WIDS];
unsigned int c_graph:1; /* connecting graph, is there one? */
} restore_gui;
typedef struct session_gui
{
GtkWidget
*xtext,
*vscrollbar,
*window, /* toplevel */
*topic_entry,
*note_book,
*main_table,
*user_tree, /* GtkTreeView */
*user_box, /* userlist box */
*button_box_parent,
*button_box, /* userlist buttons' box */
*dialogbutton_box,
*topicbutton_box,
*meter_box, /* all the meters inside this */
*lagometer,
*laginfo,
*throttlemeter,
*throttleinfo,
*topic_bar,
*hpane_left,
*hpane_right,
*vpane_left,
*vpane_right,
*menu,
*bar, /* connecting progress bar */
*nick_box, /* contains label to the left of input_box */
*nick_label,
*op_xpm, /* icon to the left of nickname */
*namelistinfo, /* label above userlist */
*input_box,
*flag_wid[NUM_FLAG_WIDS], /* channelmode buttons */
*limit_entry, /* +l */
*key_entry; /* +k */
GtkWidget *shbox, *shentry; /* search bar hbox */
gulong search_changed_signal; /* hook for search change event so blanking the box doesn't suck */
#define MENU_ID_NUM 14
GtkWidget *menu_item[MENU_ID_NUM+1]; /* some items we may change state of */
void *chanview; /* chanview.h */
int bartag; /*connecting progressbar timeout */
int pane_left_size; /*last position of the pane*/
int pane_right_size;
guint16 is_tab; /* is tab or toplevel? */
guint16 ul_hidden; /* userlist hidden? */
} session_gui;
extern GdkPixmap *channelwin_pix;
extern GdkPixmap *dialogwin_pix;
#define SPELL_ENTRY_GET_TEXT(e) ((char *)(gtk_entry_get_text (GTK_ENTRY(e))))
#define SPELL_ENTRY_SET_TEXT(e,txt) gtk_entry_set_text(GTK_ENTRY(e),txt)
#define SPELL_ENTRY_SET_EDITABLE(e,v) gtk_editable_set_editable(GTK_EDITABLE(e),v)
#define SPELL_ENTRY_GET_POS(e) gtk_editable_get_position(GTK_EDITABLE(e))
#define SPELL_ENTRY_SET_POS(e,p) gtk_editable_set_position(GTK_EDITABLE(e),p);
#define SPELL_ENTRY_INSERT(e,t,l,p) gtk_editable_insert_text(GTK_EDITABLE(e),t,l,p)
#endif
|