Debian Codegraph @

src/gui/guiConst.h

raw
1 /**
2 * Furnace Tracker - multi-system chiptune tracker
3 * Copyright (C) 2021-2025 tildearrow and contributors
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 // guiConst: constants used in the GUI like arrays, strings and other stuff
21
22 enum FurnaceGUIChanTypes {
23 // the first five match DivChanTypes, do not change order!
24
25 CHANNEL_TYPE_FM,
26 CHANNEL_TYPE_PULSE,
27 CHANNEL_TYPE_NOISE,
28 CHANNEL_TYPE_WAVETABLE,
29 CHANNEL_TYPE_SAMPLE,
30
31 CHANNEL_TYPE_SQUARE,
32 CHANNEL_TYPE_TRIANGLE,
33 CHANNEL_TYPE_SAW,
34 CHANNEL_TYPE_OPERATOR,
35 CHANNEL_TYPE_DRUMS,
36 CHANNEL_TYPE_SLOPE,
37 CHANNEL_TYPE_WAVE,
38 CHANNEL_TYPE_PSG,
39 CHANNEL_TYPE_OTHER,
40
41 CHANNEL_TYPE_MAX
42 };
43
44 struct FurnaceGUIActionDef {
45 const char* name;
46 const char* friendlyName;
47 std::vector<int> defaultBind;
48 bool isNotABind() const { return defaultBind.size()==1 && defaultBind[0]==-1; }
49 FurnaceGUIActionDef(const char* n, const char* fn, int db) :
50 name(n), friendlyName(fn) {
51 if (db!=0) defaultBind.push_back(db);
52 }
53 FurnaceGUIActionDef(const char* n, const char* fn, int db, int db2):
54 name(n), friendlyName(fn) {
55 if (db!=0) defaultBind.push_back(db);
56 if (db2!=0) defaultBind.push_back(db);
57 }
58 };
59
60 struct FurnaceGUIColorDef {
61 const char* name;
62 const char* friendlyName;
63 unsigned int defaultColor;
64 FurnaceGUIColorDef(const char* n, const char* fn, unsigned int dc):
65 name(n), friendlyName(fn), defaultColor(dc) {}
66 };
67
68 extern const int opOrder[4];
69 extern const char* noteNames[180];
70 extern const char* noteNamesG[180];
71 extern const char* noteNamesF[180];
72 extern const char* noteNamesGF[180];
73 extern const char* pitchLabel[11];
74 extern const char* insTypes[][3];
75 extern const char* sampleLoopModes[];
76 extern const char* sampleDepths[];
77 extern const char* resampleStrats[];
78 extern const char* chipCategoryNames[];
79 extern const int availableSystems[];
80 extern const int chipsFM[];
81 extern const int chipsSquare[];
82 extern const int chipsWavetable[];
83 extern const int chipsSpecial[];
84 extern const int chipsSample[];
85 extern const int* chipCategories[];
86 extern const FurnaceGUIActionDef guiActions[];
87 extern const FurnaceGUIColorDef guiColors[];
88 extern const int altValues[24];
89 extern const int vgmVersions[7];
90 extern const FurnaceGUIColors fxColors[256];
91 extern const char* fxColorsNames[10];
92 extern const char* chanNames[];
93 extern unsigned char chanNamesHierarchy[];