Guitarix
gx_mono_rack_builder.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert
3  * Copyright (C) 2011 Pete Shorthose
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
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 * ---------------------------------------------------------------------------
19 *
20 * This file is a part ofthe gx_head interface builder
21 * and build the mono effect rack,
22 *
23 * ----------------------------------------------------------------------------
24 */
25 
26 #include "guitarix.h" // NOLINT
27 
28 #include <glibmm/i18n.h> // NOLINT
29 
30 // -------- the gx_head user interface build instruktions
31 
32 namespace gx_gui {
33 
35  // -----osc
36  openHorizontalhideBox("");
37  closeBox();
38  openVerticalBox("");
39  {
40  openFrameBox("");
41  closeBox();
42  openHorizontalBox("");
43  {
44  openFrameBox("");
45  closeBox();
46  addLiveWaveDisplay(" ");
47  openFrameBox("");
48  closeBox();
49  }
50  closeBox();
51  openFrameBox("");
52  closeBox();
53  }
54  closeBox();
55 }
56 
58  static gx_jconv::IRWindow *irw = gx_jconv::IRWindow::create("jconv_mono", window_icon, machine, accels, 1);
59  openHorizontalhideBox("");
60  create_master_slider("jconv_mono.wet_dry", _("Dry/Wet"));
61  openSpaceBox("");
62  closeBox();
63  openSpaceBox("");
64  closeBox();
65  addSmallJConvFavButton(C_("Setup", "S"), irw);
66  closeBox();
67  openVerticalBox("");
68  {
69  openSetMonoLabelBox();
70  closeBox();
71  openSpaceBox("");
72  closeBox();
73  openHorizontalBox("");
74  {
75  openSpaceBox("");
76  closeBox();
77  openSpaceBox("");
78  closeBox();
79  openSpaceBox("");
80  closeBox();
81  openSpaceBox("");
82  closeBox();
83  openSpaceBox("");
84  closeBox();
85  openSpaceBox("");
86  closeBox();
87  create_mid_rackknob("jconv_mono.gain", _("Gain"));
88  create_small_rackknobr("jconv_mono.wet_dry", _("Dry/Wet"));
89  openVerticalBox("");
90  openSpaceBox("");
91  closeBox();
92  openSpaceBox("");
93  closeBox();
94  addJConvButton(_("Setup"), irw);
95  openSpaceBox("");
96  closeBox();
97  closeBox();
98  openSpaceBox("");
99  closeBox();
100  openSpaceBox("");
101  closeBox();
102  openSpaceBox("");
103  closeBox();
104  openSpaceBox("");
105  closeBox();
106  openSpaceBox("");
107  closeBox();
108  openSpaceBox("");
109  closeBox();
110  }
111  closeBox();
112  }
113  closeBox();
114 }
115 
117  openVerticalMidiBox(_(" MIDI out "));
118  {
119  openHorizontalhideBox("");
120  closeBox();
121  openHorizontalBox("");
122  {
123  openVerticalBox(_(" MIDI out "));
124  {
125  create_switch_no_caption(sw_switchit, "midi_out.on_off");
126  openFrameBox("");
127  closeBox();
128  openHorizontalBox("");
129  {
130  openFrameBox("");
131  closeBox();
132  openPaintBox2("gree_box");
133  {
134  create_switch_no_caption(sw_led, "midi_out.midistat");
135  }
136  closeBox();
137  openFrameBox("");
138  closeBox();
139  }
140  closeBox();
141  openFrameBox("");
142  closeBox();
143  }
144  closeBox();
145  // ----- create the midi settings dialog
146  openVerticalBox("");
147  {
148  openTabBox("");
149  {
150  openVerticalBox(_("channel1"));
151  {
152  openpaintampBox("MIDI OUT");
153  {
154  openVerticalBox("");
155  {
156  openHorizontalBox("");
157  {
158  create_small_rackknob("midi_out.channel_1.velocity", _("velocity"));
159  openVerticalBox("");
160  {
161  openPaintBox2("dark_box");
162  {
163  create_small_rackknob("midi_out.channel_1.volume", _("volume"));
164  }
165  closeBox();
166  addCheckButton("midi_out.channel_1.autogain", _("autogain"));
167  }
168  closeBox();
169  openVerticalBox("");
170  {
171  addNumEntry("midi_out.channel_1.channel", _("channel"));
172  addNumEntry("midi_out.channel_1.program", _("program"));
173  }
174  closeBox();
175  create_small_rackknob("midi_out.channel_1.oktave", _("oktave"));
176  create_small_rackknob("midi_out.channel_1.sensity", _("sensity"));
177  }
178  closeBox();
179  openHorizontalBox("");
180  {
181  openHorizontalBox(" ");
182  closeBox();
183  openFrameBox("");
184  closeBox();
185  openVerticalBox("");
186  {
187  openFrameBox("");
188  closeBox();
189  openPaintBox2("darker_box");
190  {
191  create_switch_no_caption(sw_led, "midi_out.midistat1");
192  }
193  closeBox();
194  openFrameBox("");
195  closeBox();
196  }
197  closeBox();
198  openFrameBox("");
199  closeBox();
200  openHorizontalBox(" ");
201  {
202  addMToggleButton("midi_out.channel_1.auto_pitch", _("auto_pitch"));
203  }
204  closeBox();
205  }
206  closeBox();
207  }
208  closeBox();
209  }
210  closeBox();
211  }
212  closeBox();
213 
214  openVerticalBox(_("channel2"));
215  {
216  openpaintampBox("MIDI OUT");
217  {
218  openVerticalBox("");
219  {
220  openHorizontalBox("");
221  {
222  create_small_rackknob("midi_out.channel_2.velocity", _("velocity"));
223  openVerticalBox("");
224  {
225  openPaintBox2("dark_box");
226  {
227  create_small_rackknob("midi_out.channel_2.volume", _("volume"));
228  }
229  closeBox();
230  addCheckButton("midi_out.channel_2.autogain", _("autogain"));
231  }
232  closeBox();
233  openVerticalBox("");
234  {
235  addNumEntry("midi_out.channel_2.channel", _("channel"));
236  addNumEntry("midi_out.channel_2.program", _("program"));
237  }
238  closeBox();
239  create_small_rackknob("midi_out.channel_2.oktave", _("oktave"));
240  create_small_rackknob("midi_out.channel_2.sensity", _("sensity"));
241  }
242  closeBox();
243  openHorizontalBox("");
244  {
245  create_switch_no_caption(sw_switchit, "midi_out.channel_2.on_off");
246  openFrameBox("");
247  closeBox();
248  openVerticalBox("");
249  {
250  openFrameBox("");
251  closeBox();
252  openPaintBox2("darker_box");
253  {
254  create_switch_no_caption(sw_led, "midi_out.midistat2");
255  }
256  closeBox();
257  openFrameBox("");
258  closeBox();
259  }
260  closeBox();
261  openFrameBox("");
262  closeBox();
263 
264  openHorizontalBox(" ");
265  {
266  addMToggleButton("midi_out.channel_2.auto_pitch", _("auto_pitch"));
267  }
268  closeBox();
269  }
270  closeBox();
271  }
272  closeBox();
273  }
274  closeBox();
275  }
276  closeBox();
277 
278  openVerticalBox(_("channel3"));
279  {
280  openpaintampBox("MIDI OUT");
281  {
282  openVerticalBox("");
283  {
284  openHorizontalBox("");
285  {
286  create_small_rackknob("midi_out.channel_3.velocity", _("velocity"));
287  openVerticalBox("");
288  {
289  openPaintBox2("dark_box");
290  {
291  create_small_rackknob("midi_out.channel_3.volume", _("volume"));
292  }
293  closeBox();
294  addCheckButton("midi_out.channel_3.autogain", _("autogain"));
295  }
296  closeBox();
297  openVerticalBox("");
298  {
299  addNumEntry("midi_out.channel_3.channel", _("channel"));
300  addNumEntry("midi_out.channel_3.program", _("program"));
301  }
302  closeBox();
303  create_small_rackknob("midi_out.channel_3.oktave", _("oktave"));
304  create_small_rackknob("midi_out.channel_3.sensity", _("sensity"));
305  }
306  closeBox();
307  openHorizontalBox("");
308  {
309  create_switch_no_caption(sw_switchit, "midi_out.channel_3.on_off");
310  openFrameBox("");
311  closeBox();
312  openVerticalBox("");
313  {
314  openFrameBox("");
315  closeBox();
316  openPaintBox2("darker_box");
317  {
318  create_switch_no_caption(sw_led, "midi_out.midistat3");
319  }
320  closeBox();
321  openFrameBox("");
322  closeBox();
323  }
324  closeBox();
325 
326  openFrameBox("");
327  closeBox();
328  openHorizontalBox(" ");
329  {
330  addMToggleButton("midi_out.channel_3.auto_pitch", _("auto_pitch"));
331  }
332  closeBox();
333  }
334  closeBox();
335  }
336  closeBox();
337  }
338  closeBox();
339  }
340  closeBox();
341 
342  openVerticalBox(_("beat_detector"));
343  {
344  openpaintampBox("MIDI OUT");
345  {
346  openVerticalBox("");
347  {
348 
349  openHorizontalBox("");
350  {
351  create_small_rackknob("beat_detector.stepper", _("stepper"));
352  create_small_rackknob("beat_detector.note_off", _("note_off"));
353  create_small_rackknob("beat_detector.atack_gain", _("atack_gain"));
354  create_small_rackknob("beat_detector.beat_gain", _("beat_gain"));
355  }
356  closeBox();
357  openHorizontalBox("");
358  {
359  openFrameBox("");
360  closeBox();
361  openPaintBox2("darker_box");
362  {
363  create_switch_no_caption(sw_led, "midi_out.midistat1");
364  }
365  closeBox();
366  openFrameBox("");
367  closeBox();
368  openPaintBox2("darker_box");
369  {
370  create_switch_no_caption(sw_led, "midi_out.midistat2");
371  }
372  closeBox();
373  openFrameBox("");
374  closeBox();
375  openPaintBox2("darker_box");
376  {
377  create_switch_no_caption(sw_led, "midi_out.midistat3");
378  }
379  closeBox();
380  openFrameBox("");
381  closeBox();
382  }
383  closeBox();
384 
385  openVerticalBox(_("Midi gain"));
386  {
387  create_wheel("beat_detector.midi_gain");
388  }
389  closeBox();
390  }
391  closeBox();
392  }
393  closeBox();
394  }
395  closeBox();
396  }
397  closeBox();
398  }
399  closeBox();
400  }
401  closeBox();
402  }
403  closeBox();
404 }
405 
406 } // end namespace gx_gui
#define sw_switchit
Definition: gx_plugin.h:51
static IRWindow * create(const std::string &unit_id, Glib::RefPtr< Gdk::Pixbuf > icon, gx_engine::GxMachineBase &machine, Glib::RefPtr< Gtk::AccelGroup > accels, int nchan)
#define sw_led
Definition: gx_plugin.h:49