Freeciv-3.3: /fast/freeciv/nightly/main/client/gui-qt/gotodlg.h Source File

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***************************************************************************/
42 class goto_dialog: public qfc_dialog
43{
44 Q_OBJECT
45 QTableWidget *goto_tab;
46 QPushButton *goto_city;
47 QPushButton *airlift_city;
48 QPushButton *close_but;
49 QCheckBox *show_all;
50 QGridLayout *layout;
51 QLabel *show_all_label;
52
53public:
54 goto_dialog(QWidget *parent = 0);
55 void init();
56 ~goto_dialog();
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:
70 void paint(QPainter *painter, QPaintEvent *event);
71 void paintEvent(QPaintEvent *event);
72
73private:
74 void fill_tab(struct player *pplayer);
75 struct tile *original_tile;
76};
77
78#endif // FC__GOTODLG_H
goto_dialog
Definition gotodlg.h:43
goto_dialog::sort_def
void sort_def()
Definition gotodlg.cpp:205
goto_dialog::close_but
QPushButton * close_but
Definition gotodlg.h:48
goto_dialog::go_to_city
void go_to_city()
Definition gotodlg.cpp:440
goto_dialog::goto_city
QPushButton * goto_city
Definition gotodlg.h:46
goto_dialog::update_dlg
void update_dlg()
Definition gotodlg.cpp:236
goto_dialog::init
void init()
Definition gotodlg.cpp:140
goto_dialog::close_dlg
void close_dlg()
Definition gotodlg.cpp:460
goto_dialog::original_tile
struct tile * original_tile
Definition gotodlg.h:75
goto_dialog::show_all
QCheckBox * show_all
Definition gotodlg.h:49
goto_dialog::checkbox_changed
void checkbox_changed(int state)
Definition gotodlg.cpp:158
goto_dialog::show_all_label
QLabel * show_all_label
Definition gotodlg.h:51
goto_dialog::goto_tab
QTableWidget * goto_tab
Definition gotodlg.h:45
goto_dialog::paint
void paint(QPainter *painter, QPaintEvent *event)
Definition gotodlg.cpp:474
goto_dialog::airlift_city
QPushButton * airlift_city
Definition gotodlg.h:47
goto_dialog::airlift_to
void airlift_to()
Definition gotodlg.cpp:419
goto_dialog::~goto_dialog
~goto_dialog()
Definition gotodlg.cpp:151
goto_dialog::show_me
void show_me()
Definition gotodlg.cpp:213
goto_dialog::paintEvent
void paintEvent(QPaintEvent *event)
Definition gotodlg.cpp:485
goto_dialog::item_selected
void item_selected(const QItemSelection &sl, const QItemSelection &ds)
Definition gotodlg.cpp:166
goto_dialog::layout
QGridLayout * layout
Definition gotodlg.h:50
goto_dialog::fill_tab
void fill_tab(struct player *pplayer)
Definition gotodlg.cpp:257
qfc_dialog
Definition dialogs.h:74
incite_cost
char * incite_cost
Definition comments.c:74
event
enum event_type event
Definition events.c:81
gotodlg_g.h
dialogs.h
slots
struct player_slot * slots
Definition player.c:51
player
Definition player.h:249
tile
Definition tile.h:50
unit.h