PIPS
|
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "genC.h"
#include "misc.h"
#include <gtk/gtk.h>
#include "gpips.h"
#include "pips.icon"
#include "ICFG.icon"
#include "callgraph.icon"
#include "parallel.icon"
#include "sequential.icon"
#include "user.icon"
#include "logo_pips_small.xbm"
Go to the source code of this file.
Data Structures | |
struct | pips_icons_type |
Enumerations | |
enum | { ICON_TEXT_HEIGHT = 20 } |
Functions | |
void | create_icons () |
include "logo_pips_small.xpm" More... | |
Server_image | create_status_window_pips_image () |
void | set_pips_icon (Frame frame, char *icon_name, char *icon_text) |
Variables | |
Server_image | wpips_positive_server_image |
To store the negative image for a blinking icon in the interrupt button: More... | |
Server_image | wpips_negative_server_image |
static Server_image | pips_icon_server_image [LAST_ICON] |
static pips_icons_type | pips_icons_data [LAST_ICON] |
anonymous enum |
Enumerator | |
---|---|
ICON_TEXT_HEIGHT |
Definition at line 40 of file xv_icons.c.
void create_icons | ( | ) |
include "logo_pips_small.xpm"
Definition at line 72 of file xv_icons.c.
References LAST_ICON, main_frame, pips_icon_server_image, pips_icons_data, and set_pips_icon().
Referenced by wpips_main().
Server_image create_status_window_pips_image | ( | ) |
To store the negative image for a blinking icon in the interrupt button:
Pixmap logo_pips_small_pixmap;
logo_pips_small_pixmap = XCreatePixmap((Display *) xv_get(main_frame, XV_DISPLAY), (Window) xv_get(main_frame, XV_ID),
ERVER_IMAGE_PIXMAP, logo_pips_small, SERVER_IMAGE_X_BITS, logo_pips_small, SERVER_IMAGE_DEPTH, 8, XV_WIDTH, 56, XV_HEIGHT, 51,
Definition at line 84 of file xv_icons.c.
References free(), malloc(), wpips_negative_server_image, and wpips_positive_server_image.
Referenced by create_status_subwindow().
void set_pips_icon | ( | Frame | frame, |
char * | icon_name, | ||
char * | icon_text | ||
) |
Ok, the icon has been found
Hum... Is there a need to free the old icon ?
Bug if we don't reuse an already existing frame's icon...
fprintf(stderr, "0x%x\n", icon);
If the owner of the icon is not NULL, the behaviour is crazy ! RK, 16/06/94.
If we want to place the icon on the screen : rect.r_width= (int)xv_get(icon, XV_WIDTH); rect.r_height= (int)xv_get(icon, XV_HEIGHT); rect.r_left= 0; rect.r_top= 0;
xv_set(frame, FRAME_ICON, icon, FRAME_CLOSED_RECT, &rect, NULL);
Definition at line 118 of file xv_icons.c.
References ICON_TEXT_HEIGHT, LAST_ICON, pips_icon_server_image, and pips_icons_data.
Referenced by create_icons(), wpips_file_view(), and wpips_view_marked_busy().
|
static |
Definition at line 48 of file xv_icons.c.
Referenced by create_icons(), create_status_subwindow(), and set_pips_icon().
|
static |
Definition at line 55 of file xv_icons.c.
Referenced by create_icons(), and set_pips_icon().
Server_image wpips_negative_server_image |
Definition at line 46 of file xv_icons.c.
Referenced by create_status_window_pips_image(), and wpips_interrupt_button_blink().
Server_image wpips_positive_server_image |
To store the negative image for a blinking icon in the interrupt button:
Definition at line 46 of file xv_icons.c.
Referenced by create_status_window_pips_image(), wpips_interrupt_button_blink(), and wpips_interrupt_button_restore().