Freeciv-3.2: /fast/freeciv/nightly/S3_2/tools/ruledit/values_dlg.cpp Source File

Freeciv-3.2

Loading...
Searching...
No Matches
values_dlg.cpp
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#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18// ruledit
19#include "helpeditor.h"
20
21#include "values_dlg.h"
22
23
24/**********************************************************************/
27values_dlg::values_dlg() : QDialog()
28{
29 help = nullptr;
30}
31
32/**********************************************************************/
35 void values_dlg::open_help(struct strvec *helptext)
36{
37 if (help == nullptr && helptext != nullptr) {
38 help = new helpeditor(this, helptext);
39
40 help->show();
41 }
42}
43
44/**********************************************************************/
47 void values_dlg::close_help()
48{
49 if (help != nullptr) {
50 help->close();
51
52 help = nullptr;
53 }
54}
helpeditor
Definition helpeditor.h:29
helpeditor::close
void close()
Definition helpeditor.cpp:63
values_dlg::close_help
void close_help()
Definition values_dlg.cpp:47
values_dlg::help
helpeditor * help
Definition values_dlg.h:37
values_dlg::values_dlg
values_dlg()
Definition values_dlg.cpp:27
values_dlg::open_help
void open_help(struct strvec *help)
Definition values_dlg.cpp:35
helpeditor.h
strvec
Definition string_vector.c:29
values_dlg.h