OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 
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 }
void SCopy(const char *szSource, char *sTarget, size_t iMaxL)
Definition: Standard.cpp:122
C4Console Console
Definition: C4Globals.cpp:45
bool Active
Definition: C4ToolsDlg.h:52
int32_t Grade
Definition: C4ToolsDlg.h:54
char Texture[C4M_MaxName+1]
Definition: C4ToolsDlg.h:57
char Material[C4M_MaxName+1]
Definition: C4ToolsDlg.h:56
#define DEFINE_STANDARD_DLG_METHODS(cls)
bool ModeBack
Definition: C4ToolsDlg.h:58
const int32_t C4TLS_Brush
Definition: C4ToolsDlg.h:28
char BackMaterial[C4M_MaxName+1]
Definition: C4ToolsDlg.h:59
const int32_t C4TLS_GradeDefault
Definition: C4ToolsDlg.h:37
void ToolsDlgClose()
Definition: C4Console.cpp:671
int32_t SelectedTool
Definition: C4ToolsDlg.h:53
char BackTexture[C4M_MaxName+1]
Definition: C4ToolsDlg.h:60
int32_t Tool
Definition: C4ToolsDlg.h:53
bool ModeIFT
Definition: C4ToolsDlg.h:55