Freeciv-3.2
Loading...
Searching...
No Matches
gotodlg.h
Go to the documentation of this file.
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.
7
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***********************************************************************/
13
14#ifndef FC__GOTODLG_H
15#define FC__GOTODLG_H
16
17#ifdef HAVE_CONFIG_H
18#include <fc_config.h>
19#endif
20
21extern "C" {
22#include "gotodlg_g.h"
23}
24
25// Qt
26#include <QDialog>
27
28// common
29#include "dialogs.h"
30#include "unit.h"
31
32class QCheckBox;
33class QGridLayout;
34class QItemSelection;
35class QLabel;
36class QPushButton;
37class QTableWidget;
38
39/***************************************************************************
40 Class for displaying goto/airlift dialog
41***************************************************************************/
43{
45 QTableWidget *goto_tab;
46 QPushButton *goto_city;
47 QPushButton *airlift_city;
48 QPushButton *close_but;
52
53public:
54 goto_dialog(QWidget *parent = 0);
55 void init();
57 void update_dlg();
58 void show_me();
59 void sort_def();
60
61public slots:
62 void close_dlg();
63
64private slots:
65 void go_to_city();
66 void airlift_to();
67 void item_selected(const QItemSelection &sl, const QItemSelection &ds);
68 void checkbox_changed(int state);
69protected:
72
73private:
74 void fill_tab(struct player *pplayer);
76};
77
78#endif // FC__GOTODLG_H
void sort_def()
Definition gotodlg.cpp:205
QPushButton * close_but
Definition gotodlg.h:48
void go_to_city()
Definition gotodlg.cpp:440
QPushButton * goto_city
Definition gotodlg.h:46
void update_dlg()
Definition gotodlg.cpp:236
void init()
Definition gotodlg.cpp:140
void close_dlg()
Definition gotodlg.cpp:460
struct tile * original_tile
Definition gotodlg.h:75
QCheckBox * show_all
Definition gotodlg.h:49
void checkbox_changed(int state)
Definition gotodlg.cpp:158
QLabel * show_all_label
Definition gotodlg.h:51
QTableWidget * goto_tab
Definition gotodlg.h:45
void paint(QPainter *painter, QPaintEvent *event)
Definition gotodlg.cpp:474
QPushButton * airlift_city
Definition gotodlg.h:47
void airlift_to()
Definition gotodlg.cpp:419
void show_me()
Definition gotodlg.cpp:213
void paintEvent(QPaintEvent *event)
Definition gotodlg.cpp:485
void item_selected(const QItemSelection &sl, const QItemSelection &ds)
Definition gotodlg.cpp:166
QGridLayout * layout
Definition gotodlg.h:50
void fill_tab(struct player *pplayer)
Definition gotodlg.cpp:257
char * incite_cost
Definition comments.c:75
enum event_type event
Definition events.c:81
struct player_slot * slots
Definition player.c:51
Definition tile.h:50