Freeciv-3.3
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();
68 void item_selected(const QItemSelection &sl, const QItemSelection &ds);
69 void checkbox_changed(Qt::CheckState state);
70 void checkbox_changed_depr(int state);
71protected:
74
75private:
76 void fill_tab(struct player *pplayer);
78};
79
80#endif // FC__GOTODLG_H
void sort_def()
Definition gotodlg.cpp:227
QPushButton * close_but
Definition gotodlg.h:48
void go_to_city()
Definition gotodlg.cpp:462
QPushButton * goto_city
Definition gotodlg.h:46
void checkbox_changed(Qt::CheckState state)
Definition gotodlg.cpp:168
void update_dlg()
Definition gotodlg.cpp:258
void init()
Definition gotodlg.cpp:150
void close_dlg()
Definition gotodlg.cpp:511
struct tile * original_tile
Definition gotodlg.h:77
QCheckBox * show_all
Definition gotodlg.h:49
void dbl_click_p(QTableWidgetItem *item)
Definition gotodlg.cpp:485
void checkbox_changed_depr(int state)
Definition gotodlg.cpp:177
QLabel * show_all_label
Definition gotodlg.h:51
QTableWidget * goto_tab
Definition gotodlg.h:45
void paint(QPainter *painter, QPaintEvent *event)
Definition gotodlg.cpp:525
QPushButton * airlift_city
Definition gotodlg.h:47
void airlift_to()
Definition gotodlg.cpp:441
void show_me()
Definition gotodlg.cpp:235
void paintEvent(QPaintEvent *event)
Definition gotodlg.cpp:536
void item_selected(const QItemSelection &sl, const QItemSelection &ds)
Definition gotodlg.cpp:185
QGridLayout * layout
Definition gotodlg.h:50
void fill_tab(struct player *pplayer)
Definition gotodlg.cpp:279
char * incite_cost
Definition comments.c:76
enum event_type event
Definition events.c:81
struct player_slot * slots
Definition player.c:51
Definition climisc.h:82
Definition tile.h:50