Freeciv-3.3
Loading...
Searching...
No Matches
tab_good.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_GOOD_H
15#define FC__TAB_GOOD_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
30class tab_good : public QWidget
31{
33
34 public:
35 explicit tab_good(ruledit_gui *ui_in);
36 void refresh();
37
38 private:
40 void update_good_info(struct goods_type *pgood);
42
43 QLineEdit *name;
44 QLineEdit *rname;
47
49
50 private slots:
51 void name_given();
52 void select_good();
53 void add_now();
54 void delete_now();
55 void same_name_toggle(bool checked);
56 void edit_reqs();
57 void edit_effects();
58};
59
60#endif // FC__TAB_GOOD_H
QListWidget * good_list
Definition tab_good.h:45
void edit_effects()
Definition tab_good.cpp:301
struct goods_type * selected
Definition tab_good.h:48
bool initialize_new_good(struct goods_type *pgood)
Definition tab_good.cpp:224
QLineEdit * name
Definition tab_good.h:43
void refresh()
Definition tab_good.cpp:114
QCheckBox * same_name
Definition tab_good.h:46
void select_good()
Definition tab_good.cpp:157
QLineEdit * rname
Definition tab_good.h:44
void delete_now()
Definition tab_good.cpp:204
void name_given()
Definition tab_good.cpp:172
void edit_reqs()
Definition tab_good.cpp:290
void update_good_info(struct goods_type *pgood)
Definition tab_good.cpp:129
void add_now()
Definition tab_good.cpp:242
ruledit_gui * ui
Definition tab_good.h:39
void same_name_toggle(bool checked)
Definition tab_good.cpp:279
char * incite_cost
Definition comments.c:76
struct player_slot * slots
Definition player.c:51