Make unitwaittime block exploding a nuke in place.
[freeciv.git] / tools / mpgui_qt.h
blob0ff8095a0884d38a1f8d4a4050fa9186f157b165
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)
6 any later version.
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__MPGUI_QT_H
15 #define FC__MPGUI_QT_H
17 #ifdef HAVE_CONFIG_H
18 #include <fc_config.h>
19 #endif
21 // Qt
22 #include <QObject>
24 // tools
25 #include "modinst.h"
27 class QLabel;
28 class QLineEdit;
29 class QProgressBar;
30 class QTableWidget;
32 class mpgui : public QObject
34 Q_OBJECT
36 public:
37 void setup(QWidget *central, struct fcmp_params *fcmp);
38 void display_msg(const char *msg);
39 void progress(int downloaded, int max);
40 void setup_list(const char *name, const char *URL,
41 const char *version, const char *license,
42 enum modpack_type type, const char *subtype,
43 const char *notes);
44 void refresh_list_versions();
46 private slots:
47 void URL_given();
48 void row_selected(int, int);
49 void row_download(int, int);
51 private:
52 QLineEdit *URLedit;
53 QLabel *msg_dspl;
54 QProgressBar *bar;
55 QTableWidget *mplist_table;
58 #endif // FC__MPGUI_QT_H