Freeciv-3.1: /fast/freeciv/nightly/S3_1/tools/ruledit/tab_building.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
tab_building.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__TAB_BUILDING_H
15#define FC__TAB_BUILDING_H
16
17#ifdef HAVE_CONFIG_H
18#include <fc_config.h>
19#endif
20
21// Qt
22#include <QWidget>
23
24class QCheckBox;
25class QLineEdit;
26class QListWidget;
27
28class ruledit_gui;
29
30 class tab_building : public QWidget
31{
32 Q_OBJECT
33
34 public:
35 explicit tab_building(ruledit_gui *ui_in);
36 void refresh();
37
38 private:
39 ruledit_gui *ui;
40 void update_bldg_info(struct impr_type *pimpr);
41 bool initialize_new_bldg(struct impr_type *pimpr);
42
43 QLineEdit *name;
44 QLineEdit *rname;
45 QListWidget *bldg_list;
46 QCheckBox *same_name;
47
48 struct impr_type *selected;
49
50 private slots:
51 void name_given();
52 void select_bldg();
53 void add_now2(); // "2" in name to workaround segfault on program start. Due to compiler bug?
54 void delete_now();
55 void edit_now();
56 void same_name_toggle(bool checked);
57 void edit_reqs();
58 void edit_effects();
59};
60
61
62#endif // FC__TAB_BUILDING_H
ruledit_gui
Definition ruledit_qt.h:96
tab_building
Definition tab_building.h:31
tab_building::selected
struct impr_type * selected
Definition tab_building.h:48
tab_building::add_now2
void add_now2()
Definition tab_building.cpp:248
tab_building::refresh
void refresh()
Definition tab_building.cpp:119
tab_building::same_name
QCheckBox * same_name
Definition tab_building.h:46
tab_building::edit_reqs
void edit_reqs()
Definition tab_building.cpp:296
tab_building::initialize_new_bldg
bool initialize_new_bldg(struct impr_type *pimpr)
Definition tab_building.cpp:233
tab_building::ui
ruledit_gui * ui
Definition tab_building.h:39
tab_building::name_given
void name_given()
Definition tab_building.cpp:176
tab_building::update_bldg_info
void update_bldg_info(struct impr_type *pimpr)
Definition tab_building.cpp:133
tab_building::select_bldg
void select_bldg()
Definition tab_building.cpp:161
tab_building::bldg_list
QListWidget * bldg_list
Definition tab_building.h:45
tab_building::edit_effects
void edit_effects()
Definition tab_building.cpp:307
tab_building::rname
QLineEdit * rname
Definition tab_building.h:44
tab_building::delete_now
void delete_now()
Definition tab_building.cpp:209
tab_building::edit_now
void edit_now()
Definition tab_building.cpp:323
tab_building::same_name_toggle
void same_name_toggle(bool checked)
Definition tab_building.cpp:285
tab_building::name
QLineEdit * name
Definition tab_building.h:43
slots
struct player_slot * slots
Definition player.c:50
impr_type
Definition improvement.h:68