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 }
57  static gx_seq::SEQWindow *seqw = gx_seq::SEQWindow::create("seq", machine);
58  openHorizontalhideBox("");
59  closeBox();
60  openVerticalBox("");
61  {
62  openFrameBox("");
63  closeBox();
64  openHorizontalBox("");
65  {
66  openFrameBox("");
67  closeBox();
68  openFrameBox("");
69  addSeqButton(_("Setup"), seqw);
70  closeBox();
71  }
72  closeBox();
73  openFrameBox("");
74  closeBox();
75  }
76  closeBox();
77 }
78 
80  static gx_jconv::IRWindow *irw = gx_jconv::IRWindow::create("jconv_mono", window_icon, machine, accels, 1);
81  openHorizontalhideBox("");
82  create_master_slider("jconv_mono.wet_dry", _("Dry/Wet"));
83  openSpaceBox("");
84  closeBox();
85  openSpaceBox("");
86  closeBox();
87  addSmallJConvFavButton(C_("Setup", "S"), irw);
88  closeBox();
89  openVerticalBox("");
90  {
91  openSetMonoLabelBox();
92  closeBox();
93  openSpaceBox("");
94  closeBox();
95  openHorizontalBox("");
96  {
97  openSpaceBox("");
98  closeBox();
99  openSpaceBox("");
100  closeBox();
101  openSpaceBox("");
102  closeBox();
103  openSpaceBox("");
104  closeBox();
105  openSpaceBox("");
106  closeBox();
107  openSpaceBox("");
108  closeBox();
109  create_mid_rackknob("jconv_mono.gain", _("Gain"));
110  create_small_rackknobr("jconv_mono.wet_dry", _("Dry/Wet"));
111  openVerticalBox("");
112  openSpaceBox("");
113  closeBox();
114  openSpaceBox("");
115  closeBox();
116  addJConvButton(_("Setup"), irw);
117  openSpaceBox("");
118  closeBox();
119  closeBox();
120  openSpaceBox("");
121  closeBox();
122  openSpaceBox("");
123  closeBox();
124  openSpaceBox("");
125  closeBox();
126  openSpaceBox("");
127  closeBox();
128  openSpaceBox("");
129  closeBox();
130  openSpaceBox("");
131  closeBox();
132  }
133  closeBox();
134  }
135  closeBox();
136 }
137 
139  openVerticalMidiBox(_(" MIDI out "));
140  {
141  openHorizontalhideBox("");
142  closeBox();
143  openHorizontalBox("");
144  {
145  openVerticalBox(_(" MIDI out "));
146  {
147  create_switch_no_caption(sw_switchit, "midi_out.on_off");
148  openFrameBox("");
149  closeBox();
150  openHorizontalBox("");
151  {
152  openFrameBox("");
153  closeBox();
154  openPaintBox2("gree_box");
155  {
156  create_switch_no_caption(sw_led, "midi_out.midistat");
157  }
158  closeBox();
159  openFrameBox("");
160  closeBox();
161  }
162  closeBox();
163  openFrameBox("");
164  closeBox();
165  }
166  closeBox();
167  // ----- create the midi settings dialog
168  openVerticalBox("");
169  {
170  openTabBox("");
171  {
172  openVerticalBox(_("channel1"));
173  {
174  openpaintampBox("MIDI OUT");
175  {
176  openVerticalBox("");
177  {
178  openHorizontalBox("");
179  {
180  create_small_rackknob("midi_out.channel_1.velocity", _("velocity"));
181  openVerticalBox("");
182  {
183  openPaintBox2("dark_box");
184  {
185  create_small_rackknob("midi_out.channel_1.volume", _("volume"));
186  }
187  closeBox();
188  addCheckButton("midi_out.channel_1.autogain", _("autogain"));
189  }
190  closeBox();
191  openVerticalBox("");
192  {
193  addNumEntry("midi_out.channel_1.channel", _("channel"));
194  addNumEntry("midi_out.channel_1.program", _("program"));
195  }
196  closeBox();
197  create_small_rackknob("midi_out.channel_1.oktave", _("oktave"));
198  create_small_rackknob("midi_out.channel_1.sensity", _("sensity"));
199  }
200  closeBox();
201  openHorizontalBox("");
202  {
203  openHorizontalBox(" ");
204  closeBox();
205  openFrameBox("");
206  closeBox();
207  openVerticalBox("");
208  {
209  openFrameBox("");
210  closeBox();
211  openPaintBox2("darker_box");
212  {
213  create_switch_no_caption(sw_led, "midi_out.midistat1");
214  }
215  closeBox();
216  openFrameBox("");
217  closeBox();
218  }
219  closeBox();
220  openFrameBox("");
221  closeBox();
222  openHorizontalBox(" ");
223  {
224  addMToggleButton("midi_out.channel_1.auto_pitch", _("auto_pitch"));
225  }
226  closeBox();
227  }
228  closeBox();
229  }
230  closeBox();
231  }
232  closeBox();
233  }
234  closeBox();
235 
236  openVerticalBox(_("channel2"));
237  {
238  openpaintampBox("MIDI OUT");
239  {
240  openVerticalBox("");
241  {
242  openHorizontalBox("");
243  {
244  create_small_rackknob("midi_out.channel_2.velocity", _("velocity"));
245  openVerticalBox("");
246  {
247  openPaintBox2("dark_box");
248  {
249  create_small_rackknob("midi_out.channel_2.volume", _("volume"));
250  }
251  closeBox();
252  addCheckButton("midi_out.channel_2.autogain", _("autogain"));
253  }
254  closeBox();
255  openVerticalBox("");
256  {
257  addNumEntry("midi_out.channel_2.channel", _("channel"));
258  addNumEntry("midi_out.channel_2.program", _("program"));
259  }
260  closeBox();
261  create_small_rackknob("midi_out.channel_2.oktave", _("oktave"));
262  create_small_rackknob("midi_out.channel_2.sensity", _("sensity"));
263  }
264  closeBox();
265  openHorizontalBox("");
266  {
267  create_switch_no_caption(sw_switchit, "midi_out.channel_2.on_off");
268  openFrameBox("");
269  closeBox();
270  openVerticalBox("");
271  {
272  openFrameBox("");
273  closeBox();
274  openPaintBox2("darker_box");
275  {
276  create_switch_no_caption(sw_led, "midi_out.midistat2");
277  }
278  closeBox();
279  openFrameBox("");
280  closeBox();
281  }
282  closeBox();
283  openFrameBox("");
284  closeBox();
285 
286  openHorizontalBox(" ");
287  {
288  addMToggleButton("midi_out.channel_2.auto_pitch", _("auto_pitch"));
289  }
290  closeBox();
291  }
292  closeBox();
293  }
294  closeBox();
295  }
296  closeBox();
297  }
298  closeBox();
299 
300  openVerticalBox(_("channel3"));
301  {
302  openpaintampBox("MIDI OUT");
303  {
304  openVerticalBox("");
305  {
306  openHorizontalBox("");
307  {
308  create_small_rackknob("midi_out.channel_3.velocity", _("velocity"));
309  openVerticalBox("");
310  {
311  openPaintBox2("dark_box");
312  {
313  create_small_rackknob("midi_out.channel_3.volume", _("volume"));
314  }
315  closeBox();
316  addCheckButton("midi_out.channel_3.autogain", _("autogain"));
317  }
318  closeBox();
319  openVerticalBox("");
320  {
321  addNumEntry("midi_out.channel_3.channel", _("channel"));
322  addNumEntry("midi_out.channel_3.program", _("program"));
323  }
324  closeBox();
325  create_small_rackknob("midi_out.channel_3.oktave", _("oktave"));
326  create_small_rackknob("midi_out.channel_3.sensity", _("sensity"));
327  }
328  closeBox();
329  openHorizontalBox("");
330  {
331  create_switch_no_caption(sw_switchit, "midi_out.channel_3.on_off");
332  openFrameBox("");
333  closeBox();
334  openVerticalBox("");
335  {
336  openFrameBox("");
337  closeBox();
338  openPaintBox2("darker_box");
339  {
340  create_switch_no_caption(sw_led, "midi_out.midistat3");
341  }
342  closeBox();
343  openFrameBox("");
344  closeBox();
345  }
346  closeBox();
347 
348  openFrameBox("");
349  closeBox();
350  openHorizontalBox(" ");
351  {
352  addMToggleButton("midi_out.channel_3.auto_pitch", _("auto_pitch"));
353  }
354  closeBox();
355  }
356  closeBox();
357  }
358  closeBox();
359  }
360  closeBox();
361  }
362  closeBox();
363 
364  openVerticalBox(_("beat_detector"));
365  {
366  openpaintampBox("MIDI OUT");
367  {
368  openVerticalBox("");
369  {
370 
371  openHorizontalBox("");
372  {
373  create_small_rackknob("beat_detector.stepper", _("stepper"));
374  create_small_rackknob("beat_detector.note_off", _("note_off"));
375  create_small_rackknob("beat_detector.atack_gain", _("atack_gain"));
376  create_small_rackknob("beat_detector.beat_gain", _("beat_gain"));
377  }
378  closeBox();
379  openHorizontalBox("");
380  {
381  openFrameBox("");
382  closeBox();
383  openPaintBox2("darker_box");
384  {
385  create_switch_no_caption(sw_led, "midi_out.midistat1");
386  }
387  closeBox();
388  openFrameBox("");
389  closeBox();
390  openPaintBox2("darker_box");
391  {
392  create_switch_no_caption(sw_led, "midi_out.midistat2");
393  }
394  closeBox();
395  openFrameBox("");
396  closeBox();
397  openPaintBox2("darker_box");
398  {
399  create_switch_no_caption(sw_led, "midi_out.midistat3");
400  }
401  closeBox();
402  openFrameBox("");
403  closeBox();
404  }
405  closeBox();
406 
407  openVerticalBox(_("Midi gain"));
408  {
409  create_wheel("beat_detector.midi_gain");
410  }
411  closeBox();
412  }
413  closeBox();
414  }
415  closeBox();
416  }
417  closeBox();
418  }
419  closeBox();
420  }
421  closeBox();
422  }
423  closeBox();
424  }
425  closeBox();
426 }
427 
428 } // 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)
static SEQWindow * create(const std::string &unit_id, gx_engine::GxMachineBase &machine)
#define sw_led
Definition: gx_plugin.h:49