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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1118 - (show annotations) (download) (as text)
Sat Mar 24 13:48:16 2007 UTC (17 years, 1 month ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 5817 byte(s)
- just added a tooltip to the sample entry field

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 typedef BoolEntry<gig::DimensionRegion> DimregBoolEntry;
34
35 class DimRegionEdit : public Gtk::Notebook
36 {
37 public:
38 DimRegionEdit();
39 virtual ~DimRegionEdit();
40 void set_dim_region(gig::DimensionRegion* d);
41 Gtk::Entry* wSample;
42
43 protected:
44 Gtk::Tooltips tooltips;
45
46 Gtk::Table* table[5];
47
48 Gtk::Label* lSample;
49
50 NumEntryPermille eEG1PreAttack;
51 NumEntryTemp<double> eEG1Attack;
52 NumEntryTemp<double> eEG1Decay1;
53 NumEntryTemp<double> eEG1Decay2;
54 DimregBoolEntry eEG1InfiniteSustain;
55 NumEntryPermille eEG1Sustain;
56 NumEntryTemp<double> eEG1Release;
57 DimregBoolEntry eEG1Hold;
58 ChoiceEntryLeverageCtrl eEG1Controller;
59 DimregBoolEntry eEG1ControllerInvert;
60 NumEntryTemp<uint8_t> eEG1ControllerAttackInfluence;
61 NumEntryTemp<uint8_t> eEG1ControllerDecayInfluence;
62 NumEntryTemp<uint8_t> eEG1ControllerReleaseInfluence;
63 NumEntryTemp<double> eLFO1Frequency;
64 NumEntryTemp<uint16_t> eLFO1InternalDepth;
65 NumEntryTemp<uint16_t> eLFO1ControlDepth;
66 ChoiceEntry<gig::lfo1_ctrl_t> eLFO1Controller;
67 DimregBoolEntry eLFO1FlipPhase;
68 DimregBoolEntry eLFO1Sync;
69 NumEntryPermille eEG2PreAttack;
70 NumEntryTemp<double> eEG2Attack;
71 NumEntryTemp<double> eEG2Decay1;
72 NumEntryTemp<double> eEG2Decay2;
73 DimregBoolEntry eEG2InfiniteSustain;
74 NumEntryPermille eEG2Sustain;
75 NumEntryTemp<double> eEG2Release;
76 ChoiceEntryLeverageCtrl eEG2Controller;
77 DimregBoolEntry eEG2ControllerInvert;
78 NumEntryTemp<uint8_t> eEG2ControllerAttackInfluence;
79 NumEntryTemp<uint8_t> eEG2ControllerDecayInfluence;
80 NumEntryTemp<uint8_t> eEG2ControllerReleaseInfluence;
81 NumEntryTemp<double> eLFO2Frequency;
82 NumEntryTemp<uint16_t> eLFO2InternalDepth;
83 NumEntryTemp<uint16_t> eLFO2ControlDepth;
84 ChoiceEntry<gig::lfo2_ctrl_t> eLFO2Controller;
85 DimregBoolEntry eLFO2FlipPhase;
86 DimregBoolEntry eLFO2Sync;
87 NumEntryTemp<double> eEG3Attack;
88 NumEntryTemp<int16_t> eEG3Depth;
89 NumEntryTemp<double> eLFO3Frequency;
90 NumEntryTemp<int16_t> eLFO3InternalDepth;
91 NumEntryTemp<int16_t> eLFO3ControlDepth;
92 ChoiceEntry<gig::lfo3_ctrl_t> eLFO3Controller;
93 DimregBoolEntry eLFO3Sync;
94 DimregBoolEntry eVCFEnabled;
95 ChoiceEntry<gig::vcf_type_t> eVCFType;
96 ChoiceEntry<gig::vcf_cutoff_ctrl_t> eVCFCutoffController;
97 DimregBoolEntry eVCFCutoffControllerInvert;
98 NumEntryTemp<uint8_t> eVCFCutoff;
99 ChoiceEntry<gig::curve_type_t> eVCFVelocityCurve;
100 NumEntryTemp<uint8_t> eVCFVelocityScale;
101 NumEntryTemp<uint8_t> eVCFVelocityDynamicRange;
102 NumEntryTemp<uint8_t> eVCFResonance;
103 DimregBoolEntry eVCFResonanceDynamic;
104 ChoiceEntry<gig::vcf_res_ctrl_t> eVCFResonanceController;
105 DimregBoolEntry eVCFKeyboardTracking;
106 NumEntryTemp<uint8_t> eVCFKeyboardTrackingBreakpoint;
107 ChoiceEntry<gig::curve_type_t> eVelocityResponseCurve;
108 NumEntryTemp<uint8_t> eVelocityResponseDepth;
109 NumEntryTemp<uint8_t> eVelocityResponseCurveScaling;
110 ChoiceEntry<gig::curve_type_t> eReleaseVelocityResponseCurve;
111 NumEntryTemp<uint8_t> eReleaseVelocityResponseDepth;
112 NumEntryTemp<uint8_t> eReleaseTriggerDecay;
113 NumEntryX<uint8_t> eCrossfade_in_start;
114 NumEntryX<uint8_t> eCrossfade_in_end;
115 NumEntryX<uint8_t> eCrossfade_out_start;
116 NumEntryX<uint8_t> eCrossfade_out_end;
117 DimregBoolEntry ePitchTrack;
118 ChoiceEntry<gig::dim_bypass_ctrl_t> eDimensionBypass;
119 NumEntryTemp<int8_t> ePan;
120 DimregBoolEntry eSelfMask;
121 ChoiceEntryLeverageCtrl eAttenuationController;
122 DimregBoolEntry eInvertAttenuationController;
123 NumEntryTemp<uint8_t> eAttenuationControllerThreshold;
124 NumEntryTemp<uint8_t> eChannelOffset;
125 DimregBoolEntry eSustainDefeat;
126 DimregBoolEntry eMSDecode;
127 NumEntryTemp<uint16_t> eSampleStartOffset;
128 NoteEntry eUnityNote;
129 NumEntryX<int16_t> eFineTune;
130 NumEntryGain eGain;
131 BoolEntryPlus6 eGainPlus6;
132 NumEntryX<uint32_t> eSampleLoops;
133
134 int rowno;
135 int pageno;
136 int firstRowInBlock;
137
138
139 void addProp(LabelWidget& labelwidget);
140 void addString(char* labelText, Gtk::Label*& label,
141 Gtk::Entry*& widget);
142 void addHeader(char* text);
143 void nextPage();
144
145 void VCFEnabled_toggled();
146 void VCFCutoffController_changed();
147 void VCFResonanceController_changed();
148 void EG1InfiniteSustain_toggled();
149 void EG2InfiniteSustain_toggled();
150 void EG1Controller_changed();
151 void EG2Controller_changed();
152 void AttenuationController_changed();
153 void LFO1Controller_changed();
154 void LFO2Controller_changed();
155 void LFO3Controller_changed();
156 void crossfade1_changed();
157 void crossfade2_changed();
158 void crossfade3_changed();
159 void crossfade4_changed();
160
161 };
162
163 #endif

  ViewVC Help
Powered by ViewVC