PIPS
|
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <xview/xview.h>
#include <xview/panel.h>
#include <xview/defaults.h>
#include "genC.h"
#include "misc.h"
#include "wpips.h"
#include "xv_sizes.h"
Go to the source code of this file.
Macros | |
#define | BOUND(x, lb, ub) |
Functions | |
void | event_procedure (Xv_Window window, Event *event, Notify_arg arg) |
void | install_event_procedure (Xv_Window window) |
void | place_frame (Frame frame, int l, int t) |
void | create_frames () |
void | place_frames () |
Variables | |
static int | display_width |
define MAX(a, b) ((a)>(b) ? (a) : (b)) More... | |
static int | display_height |
#define BOUND | ( | x, | |
lb, | |||
ub | |||
) |
Definition at line 40 of file xv_frames.c.
void create_frames | ( | ) |
XV_WIDTH, WPIPS_WIDTH, XV_HEIGHT, WPIPS_HEIGHT,
get the display dimensions
Footers added to edit window. RK, 21/05/1993.
Definition at line 91 of file xv_frames.c.
References close_log_subwindow(), display_height, display_width, edit_frame, EDIT_HEIGHT, EDIT_WIDTH, help_frame, HELP_HEIGHT, HELP_WIDTH, hide_window(), install_event_procedure(), int, log_frame, main_frame, MAX_NUMBER_OF_WPIPS_WINDOWS, mchoose_frame, options_frame, query_frame, QUERY_HEIGHT, QUERY_WIDTH, schoose_frame, WPIPS_LOG_WINDOW_HEIGHT_DEFAULT, WPIPS_LOG_WINDOW_HEIGHT_RESSOURCE_CLASS, WPIPS_LOG_WINDOW_HEIGHT_RESSOURCE_NAME, WPIPS_LOG_WINDOW_WIDTH_DEFAULT, WPIPS_LOG_WINDOW_WIDTH_RESSOURCE_CLASS, WPIPS_LOG_WINDOW_WIDTH_RESSOURCE_NAME, and X_WM_DECOR_SIZE.
Referenced by wpips_main().
void event_procedure | ( | Xv_Window | window, |
Event * | event, | ||
Notify_arg | arg | ||
) |
Definition at line 49 of file xv_frames.c.
References debug(), debug_off, and debug_on.
Referenced by install_event_procedure().
void install_event_procedure | ( | Xv_Window | window | ) |
Definition at line 66 of file xv_frames.c.
References event_procedure().
Referenced by create_frames().
We need to estimate the size of the decor added by the widow manager, Y_WM_DECOR_SIZE & X_WM_DECOR_SIZE. RK, 9/10/1993.
Definition at line 75 of file xv_frames.c.
References BOUND, display_height, display_width, MAX, X_WM_DECOR_SIZE, and Y_WM_DECOR_SIZE.
Referenced by place_frames().
void place_frames | ( | ) |
get the display dimensions
warning: some window managers do NOT place the top frame (main_frame) themselves. In this case add this fonction call and modify the call to place_frames().
place_frame(main_frame, (display_width-WPIPS_WIDTH)/2, (display_height-WPIPS_HEIGHT)/2);
in the bottom left :
Above the main frame :
in the upper right corner, in the bottom right corner, etc :
According to the 2 least bits of the window number...
in the upper
in the upper left corner :
in the upper left corner :
in the upper left corner
Definition at line 177 of file xv_frames.c.
References display_height, display_width, edit_frame, help_frame, HELP_HEIGHT, HELP_WIDTH, int, log_frame, main_frame, MAX_NUMBER_OF_WPIPS_WINDOWS, mchoose_frame, MIN, options_frame, place_frame(), query_frame, QUERY_HEIGHT, QUERY_WIDTH, schoose_frame, and Y_WM_DECOR_SIZE.
Referenced by main_event_proc(), and wpips_main().
|
static |
Definition at line 45 of file xv_frames.c.
Referenced by create_frames(), place_frame(), and place_frames().
|
static |
define MAX(a, b) ((a)>(b) ? (a) : (b))
Definition at line 45 of file xv_frames.c.
Referenced by create_frames(), place_frame(), and place_frames().