Skyscraper 2.0
texturemanager.h
Go to the documentation of this file.
1/*
2 Skyscraper 2.0 Alpha - Texture Manager Dialog
3 Copyright (C)2003-2024 Ryan Thoryk
4 https://www.skyscrapersim.net
5 https://sourceforge.net/projects/skyscraper/
6 Contact - ryan@skyscrapersim.net
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21*/
22
23#ifndef TEXTUREMANAGER_H
24#define TEXTUREMANAGER_H
25
26//(*Headers(TextureManager)
27#include <wx/button.h>
28#include <wx/checkbox.h>
29#include <wx/dialog.h>
30#include <wx/listbox.h>
31#include <wx/sizer.h>
32#include <wx/statbmp.h>
33#include <wx/stattext.h>
34#include <wx/textctrl.h>
35//*)
36
37namespace Skyscraper {
38
39class TextureManager: public wxDialog
40{
41 public:
42
43 TextureManager(DebugPanel* parent,wxWindowID id=wxID_ANY);
44 virtual ~TextureManager();
45
46 //(*Declarations(TextureManager)
47 wxButton* bExport;
48 wxButton* bOK;
49 wxButton* bSave;
50 wxButton* bUnload;
51 wxCheckBox* chkEnableForce;
52 wxCheckBox* chkForceMode;
53 wxListBox* TextureList;
54 wxStaticBitmap* bmpMain;
55 wxStaticText* StaticText10;
56 wxStaticText* StaticText11;
57 wxStaticText* StaticText12;
58 wxStaticText* StaticText1;
59 wxStaticText* StaticText2;
60 wxStaticText* StaticText3;
61 wxStaticText* StaticText4;
62 wxStaticText* StaticText5;
63 wxStaticText* StaticText6;
64 wxStaticText* StaticText7;
65 wxStaticText* StaticText8;
66 wxStaticText* StaticText9;
67 wxTextCtrl* tAlpha;
68 wxTextCtrl* tDependencies;
69 wxTextCtrl* tFilename;
70 wxTextCtrl* tHeight;
71 wxTextCtrl* tHeightMult;
72 wxTextCtrl* tMaterial;
73 wxTextCtrl* tMemory;
74 wxTextCtrl* tMipMaps;
75 wxTextCtrl* tWidth;
76 wxTextCtrl* tWidthMult;
77 //*)
78 void Loop();
79
80 protected:
81
82 //(*Identifiers(TextureManager)
83 static const wxWindowID ID_TextureList;
84 static const wxWindowID ID_STATICTEXT7;
85 static const wxWindowID ID_tDependencies;
86 static const wxWindowID ID_STATICTEXT4;
87 static const wxWindowID ID_tMaterial;
88 static const wxWindowID ID_STATICTEXT1;
89 static const wxWindowID ID_tFilename;
90 static const wxWindowID ID_STATICTEXT8;
91 static const wxWindowID ID_tWidth;
92 static const wxWindowID ID_STATICTEXT9;
93 static const wxWindowID ID_tHeight;
94 static const wxWindowID ID_STATICTEXT11;
95 static const wxWindowID ID_tAlpha;
96 static const wxWindowID ID_STATICTEXT12;
97 static const wxWindowID ID_tMipMaps;
98 static const wxWindowID ID_STATICTEXT10;
99 static const wxWindowID ID_tMemory;
100 static const wxWindowID ID_STATICTEXT5;
101 static const wxWindowID ID_tWidthMult;
102 static const wxWindowID ID_STATICTEXT6;
103 static const wxWindowID ID_tHeightMult;
104 static const wxWindowID ID_STATICTEXT2;
105 static const wxWindowID ID_chkEnableForce;
106 static const wxWindowID ID_STATICTEXT3;
107 static const wxWindowID ID_chkForceMode;
108 static const wxWindowID ID_bSave;
109 static const wxWindowID ID_bExport;
110 static const wxWindowID ID_bUnload;
111 static const wxWindowID ID_bmpMain;
112 static const wxWindowID ID_bOK;
113 //*)
114
115 private:
116
117 //(*Handlers(TextureManager)
118 void On_bUnload_Click(wxCommandEvent& event);
119 void On_bOK_Click(wxCommandEvent& event);
120 void On_TextureList_Select(wxCommandEvent& event);
121 void On_bSave_Click(wxCommandEvent& event);
122 void On_bExport_Click(wxCommandEvent& event);
123 //*)
124
125 std::string GetTextureName(const std::string &material);
126
130
131 DECLARE_EVENT_TABLE()
132};
133
134}
135
136#endif
static const wxWindowID ID_STATICTEXT4
static const wxWindowID ID_STATICTEXT10
static const wxWindowID ID_STATICTEXT11
static const wxWindowID ID_tDependencies
static const wxWindowID ID_tFilename
static const wxWindowID ID_tHeightMult
static const wxWindowID ID_tMaterial
static const wxWindowID ID_bmpMain
static const wxWindowID ID_tWidth
static const wxWindowID ID_chkEnableForce
static const wxWindowID ID_STATICTEXT2
void On_bExport_Click(wxCommandEvent &event)
void On_TextureList_Select(wxCommandEvent &event)
static const wxWindowID ID_tWidthMult
static const wxWindowID ID_STATICTEXT6
TextureManager(DebugPanel *parent, wxWindowID id=wxID_ANY)
static const wxWindowID ID_tMipMaps
static const wxWindowID ID_STATICTEXT12
static const wxWindowID ID_tHeight
void On_bUnload_Click(wxCommandEvent &event)
static const wxWindowID ID_bSave
void On_bSave_Click(wxCommandEvent &event)
static const wxWindowID ID_tAlpha
static const wxWindowID ID_bExport
static const wxWindowID ID_chkForceMode
static const wxWindowID ID_bUnload
static const wxWindowID ID_bOK
std::string GetTextureName(const std::string &material)
static const wxWindowID ID_STATICTEXT9
static const wxWindowID ID_STATICTEXT5
static const wxWindowID ID_STATICTEXT1
static const wxWindowID ID_STATICTEXT7
static const wxWindowID ID_STATICTEXT8
static const wxWindowID ID_tMemory
void On_bOK_Click(wxCommandEvent &event)
static const wxWindowID ID_TextureList
static const wxWindowID ID_STATICTEXT3