2 * QT AGI Studio :: Copyright (C) 2000 Helen Zommer
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 #include <qpushbutton.h>
31 #include <qpopupmenu.h>
33 #include <qmessagebox.h>
34 #include <qfiledialog.h>
35 #include <qlineedit.h>
36 #include <qbuttongroup.h>
37 #include <qradiobutton.h>
38 #include <qmainwindow.h>
39 #include <qstatusbar.h>
41 #include "wordsedit.h"
47 #include "resources.h"
48 #include "helpwindow.h"
50 // Added by William Heineman
53 class WindowList : public QWidget
58 WindowList( QWidget *parent=0, const char *name=0 );
68 class About: public QWidget
72 About( QWidget *parent=0, const char *name=0);
76 class Menu : public QMainWindow
80 Menu( QWidget *parent=0, const char *name=0);
82 ResourcesWin *resources_win;
83 void errmes(const char *, const char *,...);
84 void errmes(const char *,...);
85 void warnmes(const char *,...);
89 void show_resources();
90 void enable_resources();
91 void disable_resources();
92 void inc_res(ResourcesWin *res);
96 // Added by William Heineman
105 void open_game(void);
106 void close_game(void);
111 void from_template(void);
114 void add_resource(void);
115 void extract_resource(void);
116 void delete_resource(void);
117 void renumber_resource(void);
118 void rebuild_vol(void);
119 void recompile_all(void);
120 void new_resource_window();
122 void view_editor(void);
123 void logic_editor(void);
124 void text_editor(void);
125 void object_editor(void);
126 void words_editor(void);
127 void picture_editor(void);
128 void sound_player(void);
130 void help_contents(void);
131 void help_index(void);
132 bool help_topic( const QString& topic );
135 void closeEvent( QCloseEvent *e );
138 void save_and_run(void);
139 void window_list_cb(void);
141 // Added by William Heineman
144 void map_editor(void);
145 void map_write(void);
149 QMessageBox *err,*warn;
152 QPushButton *open,*close_,*run,*view,*logic,*text,*obj,*words,*pic,*wil,*con;
153 Dir *dir_new,*dir_open;
159 // Added by William Heineman
160 diGraph<int, char, char, int>network;
181 extern WinList winlist[MAXWIN];
182 extern int get_win();
183 extern WindowList *window_list;