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