3e793a4cab
array.cpp Corretti TPointer_array assoc.cpp Aggiuntta add() cfiles.c Corretto salvataggio pathpref.ini controls.cpp Aggiunto attributo di read_only default.url Aggiunto menu di edit ed help mask.cpp Gestione menu edit maskfld.cpp Gestione menu edit msksheet.cpp Gestione menu edit progind.cpp Aggiunto nuova scavatura 3D sheet.cpp viswin.cpp Aggiornati ID del menu edit window.cpp Corretta gestione voci di menu standard xvtility.cpp Aggiunto metodo per skippare gli errori di XVT git-svn-id: svn://10.65.10.50/trunk@5791 c028cbd2-c16b-5b4b-a496-9718f37d4682
75 lines
1.6 KiB
C++
Executable File
75 lines
1.6 KiB
C++
Executable File
#ifndef __XVTILITY_H
|
|
#define __XVTILITY_H
|
|
|
|
#ifndef XVT_INCL
|
|
#include <xvt.h>
|
|
#endif
|
|
|
|
#ifndef __STDTYPES_H
|
|
#include <stdtypes.h>
|
|
#endif
|
|
|
|
#ifndef __KEYS_H
|
|
#include <keys.h>
|
|
#endif
|
|
|
|
|
|
RCT& resize_rect(short x, short y, short dx, short dy, WIN_TYPE wt, WINDOW parent);
|
|
|
|
void xvt_draw_rect(WINDOW w, const RCT& r, COLOR c1, COLOR c2, short depth = 1);
|
|
|
|
WINDOW xvt_create_window
|
|
(
|
|
WIN_TYPE wt,
|
|
short x, short y, short dx, short dy,
|
|
const char* caption,
|
|
int menu, WINDOW parent,
|
|
long flags,
|
|
EVENT_HANDLER eh,
|
|
long app_data
|
|
);
|
|
|
|
int allow_another_instance();
|
|
int deny_another_instance();
|
|
|
|
WINDOW xvt_create_statbar();
|
|
void xvt_statbar_set(const char* text, bool def = FALSE);
|
|
void xvt_statbar_refresh();
|
|
|
|
void beep();
|
|
void do_events();
|
|
|
|
void set_xvt_hooks();
|
|
void ignore_xvt_errors(bool ie);
|
|
|
|
void customize_colors();
|
|
void customize_controls(bool on);
|
|
|
|
KEY e_char_to_key(const EVENT* ep);
|
|
void dispatch_event(WINDOW win, const EVENT& e, bool post);
|
|
void dispatch_e_menu(WINDOW win, MENU_TAG item);
|
|
void dispatch_e_char(WINDOW win, KEY key);
|
|
void dispatch_e_scroll(WINDOW win, KEY key);
|
|
|
|
void begin_wait();
|
|
void end_wait();
|
|
|
|
// One-liner for waiting!
|
|
class TWait_cursor
|
|
{
|
|
public:
|
|
TWait_cursor() { ::begin_wait(); }
|
|
~TWait_cursor() { ::end_wait(); }
|
|
};
|
|
|
|
void xvt_set_font(WINDOW win, const char* family, int style, int dim = 0);
|
|
bool xvt_test_menu_tag(MENU_TAG tag);
|
|
|
|
COLOR trans_color(char c);
|
|
PAT_STYLE trans_brush(char p);
|
|
PEN_STYLE trans_pen (char p);
|
|
|
|
extern short CHARX, CHARY, BASEY, ROWY;
|
|
|
|
#endif
|