/[svn]/gigedit/trunk/src/dimregionedit.h
ViewVC logotype

Contents of /gigedit/trunk/src/dimregionedit.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1151 - (show annotations) (download) (as text)
Sun Apr 8 13:45:45 2007 UTC (14 years, 6 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 5663 byte(s)
* splitted "Amplitude" and "Filter" tabs each into two tabs, so the GUI
  fits into smaller screens (like 800x600) as well

1 /* -*- c++ -*-
2 * Copyright (C) 2006, 2007 Andreas Persson
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2, or (at
7 * your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with program; see the file COPYING. If not, write to the Free
16 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17 * 02110-1301 USA.
18 */
19
20 #ifndef GIGEDIT_DIMREGIONEDIT_H
21 #define GIGEDIT_DIMREGIONEDIT_H
22
23 #include <gig.h>
24
25 #include <gtkmm/entry.h>
26 #include <gtkmm/label.h>
27 #include <gtkmm/notebook.h>
28 #include <gtkmm/table.h>
29 #include <gtkmm/tooltips.h>
30
31 #include "paramedit.h"
32
33 class DimRegionEdit : public Gtk::Notebook
34 {
35 public:
36 DimRegionEdit();
37 virtual ~DimRegionEdit();
38 void set_dim_region(gig::DimensionRegion* d);
39 Gtk::Entry* wSample;
40
41 protected:
42 Gtk::Tooltips tooltips;
43
44 Gtk::Table* table[7];
45
46 Gtk::Label* lSample;
47
48 NumEntryPermille eEG1PreAttack;
49 NumEntryTemp<double> eEG1Attack;
50 NumEntryTemp<double> eEG1Decay1;
51 NumEntryTemp<double> eEG1Decay2;
52 BoolEntry eEG1InfiniteSustain;
53 NumEntryPermille eEG1Sustain;
54 NumEntryTemp<double> eEG1Release;
55 BoolEntry eEG1Hold;
56 ChoiceEntryLeverageCtrl eEG1Controller;
57 BoolEntry eEG1ControllerInvert;
58 NumEntryTemp<uint8_t> eEG1ControllerAttackInfluence;
59 NumEntryTemp<uint8_t> eEG1ControllerDecayInfluence;
60 NumEntryTemp<uint8_t> eEG1ControllerReleaseInfluence;
61 NumEntryTemp<double> eLFO1Frequency;
62 NumEntryTemp<uint16_t> eLFO1InternalDepth;
63 NumEntryTemp<uint16_t> eLFO1ControlDepth;
64 ChoiceEntry<gig::lfo1_ctrl_t> eLFO1Controller;
65 BoolEntry eLFO1FlipPhase;
66 BoolEntry eLFO1Sync;
67 NumEntryPermille eEG2PreAttack;
68 NumEntryTemp<double> eEG2Attack;
69 NumEntryTemp<double> eEG2Decay1;
70 NumEntryTemp<double> eEG2Decay2;
71 BoolEntry eEG2InfiniteSustain;
72 NumEntryPermille eEG2Sustain;
73 NumEntryTemp<double> eEG2Release;
74 ChoiceEntryLeverageCtrl eEG2Controller;
75 BoolEntry eEG2ControllerInvert;
76 NumEntryTemp<uint8_t> eEG2ControllerAttackInfluence;
77 NumEntryTemp<uint8_t> eEG2ControllerDecayInfluence;
78 NumEntryTemp<uint8_t> eEG2ControllerReleaseInfluence;
79 NumEntryTemp<double> eLFO2Frequency;
80 NumEntryTemp<uint16_t> eLFO2InternalDepth;
81 NumEntryTemp<uint16_t> eLFO2ControlDepth;
82 ChoiceEntry<gig::lfo2_ctrl_t> eLFO2Controller;
83 BoolEntry eLFO2FlipPhase;
84 BoolEntry eLFO2Sync;
85 NumEntryTemp<double> eEG3Attack;
86 NumEntryTemp<int16_t> eEG3Depth;
87 NumEntryTemp<double> eLFO3Frequency;
88 NumEntryTemp<int16_t> eLFO3InternalDepth;
89 NumEntryTemp<int16_t> eLFO3ControlDepth;
90 ChoiceEntry<gig::lfo3_ctrl_t> eLFO3Controller;
91 BoolEntry eLFO3Sync;
92 BoolEntry eVCFEnabled;
93 ChoiceEntry<gig::vcf_type_t> eVCFType;
94 ChoiceEntry<gig::vcf_cutoff_ctrl_t> eVCFCutoffController;
95 BoolEntry eVCFCutoffControllerInvert;
96 NumEntryTemp<uint8_t> eVCFCutoff;
97 ChoiceEntry<gig::curve_type_t> eVCFVelocityCurve;
98 NumEntryTemp<uint8_t> eVCFVelocityScale;
99 NumEntryTemp<uint8_t> eVCFVelocityDynamicRange;
100 NumEntryTemp<uint8_t> eVCFResonance;
101 BoolEntry eVCFResonanceDynamic;
102 ChoiceEntry<gig::vcf_res_ctrl_t> eVCFResonanceController;
103 BoolEntry eVCFKeyboardTracking;
104 NumEntryTemp<uint8_t> eVCFKeyboardTrackingBreakpoint;
105 ChoiceEntry<gig::curve_type_t> eVelocityResponseCurve;
106 NumEntryTemp<uint8_t> eVelocityResponseDepth;
107 NumEntryTemp<uint8_t> eVelocityResponseCurveScaling;
108 ChoiceEntry<gig::curve_type_t> eReleaseVelocityResponseCurve;
109 NumEntryTemp<uint8_t> eReleaseVelocityResponseDepth;
110 NumEntryTemp<uint8_t> eReleaseTriggerDecay;
111 NumEntryTemp<uint8_t> eCrossfade_in_start;
112 NumEntryTemp<uint8_t> eCrossfade_in_end;
113 NumEntryTemp<uint8_t> eCrossfade_out_start;
114 NumEntryTemp<uint8_t> eCrossfade_out_end;
115 BoolEntry ePitchTrack;
116 ChoiceEntry<gig::dim_bypass_ctrl_t> eDimensionBypass;
117 NumEntryTemp<int8_t> ePan;
118 BoolEntry eSelfMask;
119 ChoiceEntryLeverageCtrl eAttenuationController;
120 BoolEntry eInvertAttenuationController;
121 NumEntryTemp<uint8_t> eAttenuationControllerThreshold;
122 NumEntryTemp<uint8_t> eChannelOffset;
123 BoolEntry eSustainDefeat;
124 BoolEntry eMSDecode;
125 NumEntryTemp<uint16_t> eSampleStartOffset;
126 NoteEntry eUnityNote;
127 NumEntryTemp<int16_t> eFineTune;
128 NumEntryGain eGain;
129 BoolEntryPlus6 eGainPlus6;
130 NumEntryTemp<uint32_t> eSampleLoops;
131
132 int rowno;
133 int pageno;
134 int firstRowInBlock;
135
136
137 void addProp(LabelWidget& labelwidget);
138 void addString(char* labelText, Gtk::Label*& label,
139 Gtk::Entry*& widget);
140 void addHeader(char* text);
141 void nextPage();
142
143 void VCFEnabled_toggled();
144 void VCFCutoffController_changed();
145 void VCFResonanceController_changed();
146 void EG1InfiniteSustain_toggled();
147 void EG2InfiniteSustain_toggled();
148 void EG1Controller_changed();
149 void EG2Controller_changed();
150 void AttenuationController_changed();
151 void LFO1Controller_changed();
152 void LFO2Controller_changed();
153 void LFO3Controller_changed();
154 void crossfade1_changed();
155 void crossfade2_changed();
156 void crossfade3_changed();
157 void crossfade4_changed();
158
159 };
160
161 #endif

  ViewVC Help
Powered by ViewVC