OpenClonk
C4ConsoleGUICommon.h
Go to the documentation of this file.
1
/*
2
* OpenClonk, http://www.openclonk.org
3
*
4
* Copyright (c) 2005, Günther Brammer
5
* Copyright (c) 2010-2016, The OpenClonk Team and contributors
6
*
7
* Distributed under the terms of the ISC license; see accompanying file
8
* "COPYING" for details.
9
*
10
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
11
* See accompanying file "TRADEMARK" for details.
12
*
13
* To redistribute this file separately, substitute the full license texts
14
* for the above references.
15
*/
16
17
// To be directly included by platform-specific implementations
18
19
C4ConsoleGUI::C4ConsoleGUI
()
20
{
21
state =
new
C4ConsoleGUI::State
(
this
);
22
}
23
24
C4ConsoleGUI::~C4ConsoleGUI
() {
delete
state;}
25
26
#define DEFINE_STANDARD_DLG_METHODS(cls)\
27
cls::cls()\
28
{\
29
state = new cls::State(this);\
30
Default();\
31
}\
32
\
33
cls::~cls()\
34
{\
35
Clear();\
36
delete state;\
37
}\
38
39
DEFINE_STANDARD_DLG_METHODS
(
C4ToolsDlg
)
40
41
void
C4ToolsDlg
::Clear()
42
{
43
state->
Clear
();
44
Console
.
ToolsDlgClose
();
45
Active =
false
;
46
}
47
48
void
C4ToolsDlg::Default
()
49
{
50
Active
=
false
;
51
Tool
=
SelectedTool
=
C4TLS_Brush
;
52
Grade
=
C4TLS_GradeDefault
;
53
ModeIFT
=
true
;
54
SCopy
(
"Earth"
,
Material
);
55
SCopy
(
"earth"
,
Texture
);
56
ModeBack
=
false
;
57
SCopy
(
"Tunnel"
,
BackMaterial
);
58
SCopy
(
"tunnel"
,
BackTexture
);
59
state->
Default
();
60
}
DEFINE_STANDARD_DLG_METHODS
#define DEFINE_STANDARD_DLG_METHODS(cls)
Definition:
C4ConsoleGUICommon.h:26
Console
C4Console Console
Definition:
C4Globals.cpp:45
C4TLS_Brush
const int32_t C4TLS_Brush
Definition:
C4ToolsDlg.h:28
C4TLS_GradeDefault
const int32_t C4TLS_GradeDefault
Definition:
C4ToolsDlg.h:37
SCopy
void SCopy(const char *szSource, char *sTarget, size_t iMaxL)
Definition:
Standard.cpp:152
C4ConsoleGUI::State
Definition:
C4Console.cpp:653
C4ConsoleGUI::C4ConsoleGUI
C4ConsoleGUI()
Definition:
C4ConsoleGUICommon.h:19
C4ConsoleGUI::~C4ConsoleGUI
~C4ConsoleGUI() override
Definition:
C4ConsoleGUICommon.h:24
C4ConsoleGUI::ToolsDlgClose
void ToolsDlgClose()
Definition:
C4Console.cpp:666
C4ToolsDlg::State::Default
void Default()
Definition:
C4Console.cpp:660
C4ToolsDlg
Definition:
C4ToolsDlg.h:43
C4ToolsDlg::ModeBack
bool ModeBack
Definition:
C4ToolsDlg.h:58
C4ToolsDlg::Default
void Default()
Definition:
C4ConsoleGUICommon.h:48
C4ToolsDlg::Grade
int32_t Grade
Definition:
C4ToolsDlg.h:54
C4ToolsDlg::Tool
int32_t Tool
Definition:
C4ToolsDlg.h:53
C4ToolsDlg::Active
bool Active
Definition:
C4ToolsDlg.h:52
C4ToolsDlg::BackTexture
char BackTexture[C4M_MaxName+1]
Definition:
C4ToolsDlg.h:60
C4ToolsDlg::ModeIFT
bool ModeIFT
Definition:
C4ToolsDlg.h:55
C4ToolsDlg::Clear
void Clear()
Definition:
C4ConsoleGUICommon.h:41
C4ToolsDlg::Texture
char Texture[C4M_MaxName+1]
Definition:
C4ToolsDlg.h:57
C4ToolsDlg::BackMaterial
char BackMaterial[C4M_MaxName+1]
Definition:
C4ToolsDlg.h:59
C4ToolsDlg::SelectedTool
int32_t SelectedTool
Definition:
C4ToolsDlg.h:53
C4ToolsDlg::Material
char Material[C4M_MaxName+1]
Definition:
C4ToolsDlg.h:56
openclonk
src
editor
C4ConsoleGUICommon.h
Generated on Fri May 16 2025 04:33:08 for OpenClonk by
1.9.1