1 /***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
14 #ifndef FC__RULEDIT_QT_H
15 #define FC__RULEDIT_QT_H
18 #include <QApplication>
19 #include <QMainWindow>
37 class ruledit_main
: public QMainWindow
42 ruledit_main(QApplication
*qapp_in
, QWidget
*central_in
);
45 void popup_quit_dialog();
50 void closeEvent(QCloseEvent
*cevent
);
53 class ruledit_gui
: public QObject
58 void setup(QWidget
*central_in
);
59 void display_msg(const char *msg
);
60 void clear_required(const char *title
);
61 void show_required(const char *msg
);
64 struct rule_data data
;
69 QLineEdit
*ruleset_select
;
71 QStackedLayout
*main_layout
;
73 requirers_dlg
*requirers
;
85 int ruledit_qt_run(int argc
, char **argv
);
86 void ruledit_qt_display_requirers(const char *msg
);
88 #endif // FC__RULEDIT_QT_H