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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1261 - (show annotations) (download) (as text)
Thu Jul 5 17:12:20 2007 UTC (12 years, 1 month ago) by persson
File MIME type: text/x-c++hdr
File size: 6245 byte(s)
* a changed file is now marked with an asterisk in the window title
* added close confirmation dialog, shown if file is changed
* "save" means "save as" for new files
* enabled acceleration keys
* add .gig to filename in "save as" if it's not already there
* filename character encodings other than utf-8 supported

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

  ViewVC Help
Powered by ViewVC