Freeciv-3.3
Loading...
Searching...
No Matches
tab_counters.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_COUNTER_H
15#define FC__TAB_COUNTER_H
16
17#ifdef HAVE_CONFIG_H
18#include <fc_config.h>
19#endif
20
21// Qt
22#include <QCheckBox>
23#include <QComboBox>
24#include <QListWidget>
25#include <QMenu>
26#include <QPushButton>
27#include <QSpinBox>
28#include <QWidget>
29
30// common
31#include "counters.h"
32
33class ruledit_gui;
34
35class tab_counter : public QWidget
36{
38
39 public:
40 explicit tab_counter(ruledit_gui *ui_in);
41 void refresh();
42 static void techs_to_menu(QMenu *fill_menu);
44
45 private:
47
48 QLineEdit *name;
49 QLineEdit *rname;
54 QPushButton *effects_button;
55
57
59
60 private slots:
62 void checkpoint_given(int val);
63 void default_given(int val);
64 void name_given();
65 void select_counter();
66 void add_now();
67 void delete_now();
68 void same_name_toggle(bool checked);
69 void edit_effects();
72};
73
74
75#endif // FC__TAB_COUNTER_H
QLineEdit * rname
void update_counter_info(struct counter *counter)
bool initialize_new_counter(struct counter *padv)
struct counter * selected
static void techs_to_menu(QMenu *fill_menu)
QPushButton * effects_button
ruledit_gui * ui
QComboBox * type
void select_counter()
QCheckBox * same_name
void counter_behaviour_selected(int item)
QSpinBox * def
QListWidget * counter_list
QSpinBox * checkpoint
void same_name_toggle(bool checked)
void edit_effects()
QLineEdit * name
void default_given(int val)
static QString counter_name(struct counter *padv)
void checkpoint_given(int val)
char * incite_cost
Definition comments.c:76
struct player_slot * slots
Definition player.c:51
Definition climisc.h:82