1 |
578 |
markom |
/* guitcl.h - Interface to Tcl layer of GUI support code.
|
2 |
|
|
Copyright (C) 1997, 1998 Cygnus Solutions.
|
3 |
|
|
Written by Tom Tromey <tromey@cygnus.com>. */
|
4 |
|
|
|
5 |
|
|
#ifndef GUITCL_H
|
6 |
|
|
#define GUITCL_H
|
7 |
|
|
|
8 |
|
|
#ifdef __cplusplus
|
9 |
|
|
extern "C" {
|
10 |
|
|
#endif
|
11 |
|
|
|
12 |
|
|
/* This is like Tk_Main, but it doesn't assume that the program wants
|
13 |
|
|
to act like an interactive interpreter. */
|
14 |
|
|
extern void
|
15 |
|
|
ide_main (int ide_argc, char *ide_argv[], Tcl_AppInitProc *);
|
16 |
|
|
|
17 |
|
|
/* Set up the XPM image reader. This requires Tk to be linked in.
|
18 |
|
|
However, it does not require Tk to be initialized before calling. */
|
19 |
|
|
extern void
|
20 |
|
|
ide_create_xpm_image_type (void);
|
21 |
|
|
|
22 |
|
|
/* This locates the libide and application-specific Tcl libraries. It
|
23 |
|
|
sets the global Tcl variable `ide_application_name' to IDE_APPNAME,
|
24 |
|
|
and initializes a global Paths array with useful path information.
|
25 |
|
|
The application-specific Tcl library is assumed to be in the
|
26 |
|
|
directory $datadir/IDE_APPNAME/.
|
27 |
|
|
Returns a standard Tcl result. */
|
28 |
|
|
extern int
|
29 |
|
|
ide_initialize_paths (Tcl_Interp *, char *ide_appname);
|
30 |
|
|
|
31 |
|
|
/* This tries to find the application-specific startup file. If it is
|
32 |
|
|
found, it is sourced. If not, an error results. The file is
|
33 |
|
|
assumed to be named $datadir/IDE_APPNAME/IDE_APPNAME.tcl, where
|
34 |
|
|
IDE_APPNAME is the name that was previously passed to
|
35 |
|
|
ide_initialize_paths.
|
36 |
|
|
Returns a standard Tcl result. */
|
37 |
|
|
extern int
|
38 |
|
|
ide_run_app_script (Tcl_Interp *);
|
39 |
|
|
|
40 |
|
|
/* This adds the new graph command for manipulating graphs to the
|
41 |
|
|
interpreter IDE_INTERP.
|
42 |
|
|
Returns a standard Tcl result. */
|
43 |
|
|
extern int
|
44 |
|
|
create_graph_command (Tcl_Interp *ide_interp);
|
45 |
|
|
|
46 |
|
|
/* This function creates the ide_help Tcl command. */
|
47 |
|
|
int
|
48 |
|
|
ide_create_help_command (Tcl_Interp *);
|
49 |
|
|
|
50 |
|
|
/* This function creates the ide_get_directory Tcl command. */
|
51 |
|
|
int
|
52 |
|
|
ide_create_get_directory_command (Tcl_Interp *);
|
53 |
|
|
|
54 |
|
|
/* This function creates the ide_winprint Tcl command. */
|
55 |
|
|
int
|
56 |
|
|
ide_create_winprint_command (Tcl_Interp *);
|
57 |
|
|
|
58 |
|
|
/* This function creates the ide_sizebox Tcl command. */
|
59 |
|
|
int
|
60 |
|
|
ide_create_sizebox_command (Tcl_Interp *);
|
61 |
|
|
|
62 |
|
|
/* This function creates the ide_shell_execute command. */
|
63 |
|
|
int
|
64 |
|
|
ide_create_shell_execute_command (Tcl_Interp *);
|
65 |
|
|
|
66 |
|
|
/* This function creates the `ide_mapi' command. */
|
67 |
|
|
int
|
68 |
|
|
ide_create_mapi_command (Tcl_Interp *);
|
69 |
|
|
|
70 |
|
|
/* This function creates the `ide_win_choose_font' command. */
|
71 |
|
|
int
|
72 |
|
|
ide_create_win_choose_font_command (Tcl_Interp *);
|
73 |
|
|
|
74 |
|
|
/* This function creates internal commands used by ide_grab_support on
|
75 |
|
|
Windows. */
|
76 |
|
|
int
|
77 |
|
|
ide_create_win_grab_command (Tcl_Interp *);
|
78 |
|
|
|
79 |
|
|
/* This function creates the `ide_cygwin_path' command. */
|
80 |
|
|
int
|
81 |
|
|
ide_create_cygwin_path_command (Tcl_Interp *);
|
82 |
|
|
|
83 |
|
|
/* This function creates the ide_cursor command on Windows. */
|
84 |
|
|
int
|
85 |
|
|
ide_create_cursor_command (Tcl_Interp *);
|
86 |
|
|
|
87 |
|
|
/* This function creates the ide_set_error_mode command. On Windows,
|
88 |
|
|
this translates into a call to SetErrorMode. On Unix, this command
|
89 |
|
|
is a no-op. */
|
90 |
|
|
int
|
91 |
|
|
ide_create_set_error_mode_command (Tcl_Interp *);
|
92 |
|
|
|
93 |
|
|
/* This function creates the ide_messageBox command. */
|
94 |
|
|
int
|
95 |
|
|
ide_create_messagebox_command (Tcl_Interp *);
|
96 |
|
|
|
97 |
|
|
/* This function creates the "warp_pointer" command. Warp_pointer
|
98 |
|
|
forces the pointer to a specific location. There is probably no
|
99 |
|
|
good reason to use this except in the testsuite! */
|
100 |
|
|
int
|
101 |
|
|
cyg_create_warp_pointer_command (Tcl_Interp *interp);
|
102 |
|
|
|
103 |
|
|
#ifdef __cplusplus
|
104 |
|
|
}
|
105 |
|
|
#endif
|
106 |
|
|
|
107 |
|
|
#endif /* GUITCL_H */
|