1 /*
2     TiMidity++ -- MIDI to WAVE converter and player
test1null3     Copyright (C) 1999-2002 Masanao Izumo <mo@goice.co.jp>
4     Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>
5 
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10 
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15 
16     You should have received a copy of the GNU General Public License
17     along with this program; if not, write to the Free Software
18     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 
20     motif.h: written by Vincent Pagel (pagel@loria.fr) 10/4/95
21 
22     */
23 
24 /*
25  * MESSAGE FROM KERNEL TO MOTIF
26  */
27 #define REFRESH_MESSAGE 1
28 #define HELPMODE_MESSAGE 2
29 #define TOTALTIME_MESSAGE 3
30 #define MASTERVOL_MESSAGE 4
31 #define FILENAME_MESSAGE 5
32 #define CURTIME_MESSAGE 6
33 #define NOTE_MESSAGE 7
34 #define PROGRAM_MESSAGE 8
35 #define VOLUME_MESSAGE 9
36 #define EXPRESSION_MESSAGE 10
37 #define PANNING_MESSAGE 11
38 #define SUSTAIN_MESSAGE 12
39 #define PITCH_MESSAGE 13
40 #define RESET_MESSAGE 14
41 #define CLOSE_MESSAGE 15
42 #define CMSG_MESSAGE 16
43 #define FILE_LIST_MESSAGE 17
44 #define NEXT_FILE_MESSAGE 18
45 #define PREV_FILE_MESSAGE 19
46 #define TUNE_END_MESSAGE 20
47 #define LYRIC_MESSAGE 21
48 
49 typedef enum {
50     GTK_CHANGE_VOLUME = 1,
51     GTK_CHANGE_LOCATOR,
52     GTK_QUIT,
53     GTK_PLAY_FILE,
54     GTK_NEXT,
55     GTK_PREV,
56     GTK_RESTART,
57     GTK_FWD,
58     GTK_RWD,
59     GTK_PAUSE,
60     GTK_KEYUP,
61     GTK_KEYDOWN,
62     GTK_SLOWER,
63     GTK_FASTER,
64     GTK_TOGGLE_DRUMS
65 } GtkControls;
66 
67 /*
68  * CONSTANTS FOR MOTIF/GTK+ MENUS
69  */
70 #define MENU_OPEN 1
71 #define MENU_QUIT 2
72 #define MENU_TOGGLE 3
73 
74 #define DIALOG_CANCEL 1
75 #define DIALOG_OK 2
76 #define DIALOG_ALL 3
77 
78 void	gtk_pipe_int_write(int c);
79 void	gtk_pipe_int_read(int *c);
80 
81 void	gtk_pipe_string_write(char *str);
82 void	gtk_pipe_string_read(char *str);
83 
84 void	gtk_pipe_open(void);
85 int	gtk_pipe_read_ready(void);
86 
87 void Launch_Gtk_Process(int pipe_number);
88