25 #include "pips_config.h"
31 #include <sys/resource.h>
32 #include <xview/xview.h>
33 #include <xview/panel.h>
34 #include <xview/text.h>
35 #include <xview/svrimage.h>
36 #include <xview/icon.h>
56 unsigned short int bitmap[256];
68 #include "WP65_PE.icon"
71 #include "WP65_bank.icon"
74 #include "callgraph.icon"
77 #include "parallel.icon"
80 #include "sequential.icon"
89 #include "logo_pips_small.xbm"
98 (Server_image) xv_create(NULL, SERVER_IMAGE,
114 char * inverted_pips_icon;
124 (Server_image) xv_create(NULL, SERVER_IMAGE,
133 logo_pips_small_bits,
134 XV_WIDTH, logo_pips_small_width,
135 XV_HEIGHT, logo_pips_small_height,
138 inverted_pips_icon = (
char *)
malloc(
sizeof(logo_pips_small_bits));
139 for (i = 0; i <
sizeof(logo_pips_small_bits); i++)
140 inverted_pips_icon[i] = ~logo_pips_small_bits[i];
142 (Server_image) xv_create(NULL, SERVER_IMAGE,
145 XV_WIDTH, logo_pips_small_width,
146 XV_HEIGHT, logo_pips_small_height,
148 free(inverted_pips_icon);
160 Server_image
image = NULL;
171 Rect image_rect, label_rect;
174 width = xv_get(
image, XV_WIDTH);
175 height = xv_get(
image, XV_HEIGHT);
177 rect_construct(&image_rect, 0, 0, width, height);
182 icon = (Icon) xv_get(frame, FRAME_ICON);
191 ICON_IMAGE_RECT, &image_rect,
192 ICON_LABEL, icon_text,
193 ICON_LABEL_RECT, &label_rect,
197 icon = (Icon) xv_create(NULL, ICON,
201 ICON_IMAGE_RECT, &image_rect,
202 ICON_LABEL, icon_text,
203 ICON_LABEL_RECT, &label_rect,
206 xv_set(frame, FRAME_ICON, icon,
GtkWidget * main_frame
If we are in the Emacs mode, the log_frame is no longer really used:
void set_pips_icon(Frame frame, char *icon_name, char *icon_text)
Server_image wpips_positive_server_image
To store the negative image for a blinking icon in the interrupt button:
Server_image create_status_window_pips_image()
void create_icons()
include "logo_pips_small.xpm"
Server_image wpips_negative_server_image
code taken from http://fast-edge.googlecode.com and adapted to c99
static pips_icons_type pips_icons_data[LAST_ICON]
static Server_image pips_icon_server_image[LAST_ICON]