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 
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 
40 
41 void C4ToolsDlg::Clear()
42 {
43  state->Clear();
45  Active = false;
46 }
47 
49 {
50  Active = false;
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 DEFINE_STANDARD_DLG_METHODS(cls)
C4Console Console
Definition: C4Globals.cpp:45
const int32_t C4TLS_Brush
Definition: C4ToolsDlg.h:28
const int32_t C4TLS_GradeDefault
Definition: C4ToolsDlg.h:37
void SCopy(const char *szSource, char *sTarget, size_t iMaxL)
Definition: Standard.cpp:152
~C4ConsoleGUI() override
void ToolsDlgClose()
Definition: C4Console.cpp:666
bool ModeBack
Definition: C4ToolsDlg.h:58
int32_t Grade
Definition: C4ToolsDlg.h:54
int32_t Tool
Definition: C4ToolsDlg.h:53
bool Active
Definition: C4ToolsDlg.h:52
char BackTexture[C4M_MaxName+1]
Definition: C4ToolsDlg.h:60
bool ModeIFT
Definition: C4ToolsDlg.h:55
char Texture[C4M_MaxName+1]
Definition: C4ToolsDlg.h:57
char BackMaterial[C4M_MaxName+1]
Definition: C4ToolsDlg.h:59
int32_t SelectedTool
Definition: C4ToolsDlg.h:53
char Material[C4M_MaxName+1]
Definition: C4ToolsDlg.h:56