Freeciv-3.4
Toggle main menu visibility
Main Page
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
tools
ruledit
conversion_log.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
// Qt
19
#include <QGridLayout>
20
#include <QPushButton>
21
22
// utility
23
#include "
fcintl.h
"
24
25
#include "
conversion_log.h
"
26
27
/**********************************************************************/
30
conversion_log::conversion_log
(
QString
title
) : QDialog()
31
{
32
QGridLayout
*main_layout =
new
QGridLayout
(
this
);
33
QPushButton *close_button;
34
int
row
= 0;
35
36
area
=
new
QTextEdit
();
37
area
->setParent(
this
);
38
area
->setReadOnly(
true
);
39
main_layout->addWidget(
area
,
row
++, 0);
40
41
close_button =
new
QPushButton(QString::fromUtf8(
R__
(
"Close"
)),
this
);
42
connect(close_button,
SIGNAL
(
pressed
()),
this
,
SLOT
(
close_now
()));
43
main_layout->addWidget(close_button,
row
++, 0);
44
45
setLayout
(main_layout);
46
setWindowTitle
(
title
);
47
48
setVisible
(
false
);
49
}
30
conversion_log::conversion_log
(
QString
title
) : QDialog() {
…
}
50
51
/**********************************************************************/
54
void
conversion_log::add
(
const
char
*msg)
55
{
56
area
->append(QString::fromUtf8(msg));
57
setVisible
(
true
);
58
}
54
void
conversion_log::add
(
const
char
*msg) {
…
}
59
60
/**********************************************************************/
63
void
conversion_log::close_now
()
64
{
65
done(0);
66
}
63
void
conversion_log::close_now
() {
…
}
BODYGUARD_NONE
@ BODYGUARD_NONE
Definition
aiguard.c:37
conversion_log::conversion_log
conversion_log(QString title)
Definition
conversion_log.cpp:30
conversion_log::add
void add(const char *msg)
Definition
conversion_log.cpp:54
conversion_log::area
QTextEdit * area
Definition
conversion_log.h:34
conversion_log::close_now
void close_now()
Definition
conversion_log.cpp:63
conversion_log.h
fcintl.h
R__
#define R__(String)
Definition
fcintl.h:75
title
const char * title
Definition
repodlgs.c:1314
Generated on Sun Mar 9 2025 22:30:15 for Freeciv-3.4 by
1.9.8