PIPS
|
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <xview/xview.h>
#include <xview/panel.h>
#include <xview/text.h>
#include <xview/textsw.h>
#include <xview/notice.h>
#include <xview/xv_error.h>
#include "genC.h"
#include "misc.h"
#include "linear.h"
#include "ri.h"
#include "ri-util.h"
#include "database.h"
#include "pipsdbm.h"
#include "top-level.h"
#include "properties.h"
#include "wpips.h"
Go to the source code of this file.
Macros | |
#define | MAXARGS 100 |
Functions | |
void | prompt_user (string a_printf_format,...) |
static void | insert_something_in_the_wpips_log_window (char *a_message) |
void | wpips_user_error_message (char error_buffer[]) |
void | wpips_user_warning_message (char warning_buffer[]) |
void | wpips_user_log (string fmt, va_list args) |
void | open_log_subwindow (Menu menu, Menu_item menu_item) |
void | clear_log_subwindow (Menu menu, Menu_item menu_item) |
void | close_log_subwindow (Menu menu, Menu_item menu_item) |
void | create_log_menu () |
void | create_log_window () |
This works but it is cleaner to use textsw_reset() instead... More... | |
Variables | |
static Textsw | log_textsw |
xview/newgen interaction More... | |
static Menu_item | open_front |
static Menu_item | clear |
static Menu_item | close |
void clear_log_subwindow | ( | Menu | menu, |
Menu_item | menu_item | ||
) |
Definition at line 214 of file xv_log.c.
References clear, int, and log_textsw.
Referenced by create_log_menu().
void close_log_subwindow | ( | Menu | menu, |
Menu_item | menu_item | ||
) |
ENU_INACTIVE, FALSE, 0);
Definition at line 225 of file xv_log.c.
References close, hide_window(), log_frame, and open_front.
Referenced by create_log_menu().
void create_log_menu | ( | ) |
In fact, create it but disabled to keep the same frame layout in the Emacs mode:
Definition at line 235 of file xv_log.c.
References clear, clear_log_subwindow(), close, close_log_subwindow(), main_panel, open_front, open_log_subwindow(), and wpips_emacs_mode.
void create_log_window | ( | ) |
This works but it is cleaner to use textsw_reset() instead...
void recreate_log_window() { xv_destroy(log_textsw); log_textsw = (Xv_Window) xv_create(log_frame, TEXTSW, 0); }
Xv_Window window;
recuperation d'event ne fonctionne pas -> installer TEXTSW_NOTIFY_PROC,
autre suggestion: mettre un masque X
window = (Xv_Window) xv_find(log_frame, WINDOW, 0);
xv_set(window, WIN_CONSUME_X_EVENT_MASK, EnterWindowMask, WIN_EVENT_PROC, default_win_interpose, NULL);
Definition at line 289 of file xv_log.c.
References log_frame, and log_textsw.
|
static |
Try to insert at the end:
Verify it fitted:
It ran out of space!
recreate_log_window();
Discard the content without keeping the undo buffer:
Hope there is no use of recursion...
Definition at line 93 of file xv_log.c.
References clear, db_get_current_workspace_directory(), int, log_frame, log_textsw, main_frame, and prompt_user().
Referenced by wpips_user_error_message(), wpips_user_log(), and wpips_user_warning_message().
void open_log_subwindow | ( | Menu | menu, |
Menu_item | menu_item | ||
) |
Definition at line 204 of file xv_log.c.
References close, log_frame, open_front, and unhide_window().
Referenced by create_log_menu().
void prompt_user | ( | string | a_printf_format, |
... | |||
) |
Definition at line 70 of file xv_log.c.
References main_frame, send_prompt_user_to_emacs(), SMALL_BUFFER_LENGTH, and wpips_emacs_mode.
Referenced by insert_something_in_the_wpips_log_window().
void wpips_user_error_message | ( | char | error_buffer[] | ) |
prompt_user("Something went wrong. Check the log window");
terminate PIPS request
Definition at line 138 of file xv_log.c.
References abort, exit, get_bool_property(), insert_something_in_the_wpips_log_window(), log_frame, log_on_file(), send_user_error_to_emacs(), show_message(), THROW, unhide_window(), user_exception_error, and wpips_emacs_mode.
void wpips_user_log | ( | string | fmt, |
va_list | args | ||
) |
Display the "Message:" line in the main window also in the emacs mode:
Definition at line 183 of file xv_log.c.
References get_bool_property(), insert_something_in_the_wpips_log_window(), log_on_file(), send_user_log_to_emacs(), show_message(), SMALL_BUFFER_LENGTH, and wpips_emacs_mode.
Referenced by wpips_main().
void wpips_user_warning_message | ( | char | warning_buffer[] | ) |
Franc,ois said a warning is not important enough... unhide_window(log_frame);
Definition at line 163 of file xv_log.c.
References insert_something_in_the_wpips_log_window(), log_on_file(), send_user_warning_to_emacs(), show_message(), and wpips_emacs_mode.
|
static |
Definition at line 66 of file xv_log.c.
Referenced by clear_log_subwindow(), create_log_menu(), and insert_something_in_the_wpips_log_window().
|
static |
Definition at line 66 of file xv_log.c.
Referenced by close_log_subwindow(), create_log_menu(), main(), and open_log_subwindow().
|
static |
xview/newgen interaction
Definition at line 65 of file xv_log.c.
Referenced by clear_log_subwindow(), create_log_window(), and insert_something_in_the_wpips_log_window().
|
static |
Definition at line 66 of file xv_log.c.
Referenced by close_log_subwindow(), create_log_menu(), and open_log_subwindow().