Freeciv-3.3
Loading...
Searching...
No Matches
edit_tech.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__EDIT_TECH_H
15#define FC__EDIT_TECH_H
16
17#ifdef HAVE_CONFIG_H
18#include <fc_config.h>
19#endif
20
21// Qt
22#include <QDialog>
23
24// ruledit
25#include "values_dlg.h"
26
27class QGridLayout;
28class QLineEdit;
29class QSpinBox;
30class QToolButton;
31
32class ruledit_gui;
33
34class edit_tech : public values_dlg
35{
37
38 public:
39 explicit edit_tech(ruledit_gui *ui_in, struct advance *tech_in);
40 void refresh();
41
42 private:
44 struct advance *tech;
46 QLineEdit *gfx_tag;
47 QLineEdit *gfx_tag_alt;
48
50
51 protected:
53
54 private slots:
55 void set_cost_value(int value);
56 void gfx_tag_given();
57 void gfx_tag_alt_given();
58 void helptext();
59};
60
61
62#endif // FC__EDIT_TECH_H
ruledit_gui * ui
Definition edit_tech.h:43
void set_cost_value(int value)
struct advance * tech
Definition edit_tech.h:44
QSpinBox * cost
Definition edit_tech.h:45
void gfx_tag_given()
QLineEdit * gfx_tag
Definition edit_tech.h:46
void refresh()
void gfx_tag_alt_given()
void helptext()
QGridLayout * flag_layout
Definition edit_tech.h:49
QLineEdit * gfx_tag_alt
Definition edit_tech.h:47
void closeEvent(QCloseEvent *cevent)
char * incite_cost
Definition comments.c:76
struct player_slot * slots
Definition player.c:51