Freeciv-3.3
Loading...
Searching...
No Matches
tab_achievement.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_ACHIEVEMENT_H
15#define FC__TAB_ACHIEVEMENT_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;
27class QMenu;
28class QSpinBox;
29class QToolButton;
30
31class ruledit_gui;
32
33class tab_achievement : public QWidget
34{
36
37 public:
39 void refresh();
40
41 private:
45
46 QLineEdit *name;
47 QLineEdit *rname;
51 QMenu *type_menu;
53
55
56 private slots:
57 void name_given();
58 void select_achievement();
59 void add_now();
60 void delete_now();
61 void same_name_toggle(bool checked);
62 void edit_effects();
64 void set_value(int value);
65};
66
67#endif // FC__TAB_ACHIEVEMENT_H
bool initialize_new_achievement(struct achievement *pach)
void set_value(int value)
void update_achievement_info(struct achievement *pach)
QToolButton * type_button
void same_name_toggle(bool checked)
QCheckBox * same_name
ruledit_gui * ui
QSpinBox * value_box
void edit_type(QAction *action)
QListWidget * ach_list
struct achievement * selected
QLineEdit * rname
char * incite_cost
Definition comments.c:76
struct player_slot * slots
Definition player.c:51