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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1138 - (hide annotations) (download) (as text)
Sat Mar 31 09:33:40 2007 UTC (17 years ago) by persson
File MIME type: text/x-c++hdr
File size: 5663 byte(s)
* reworked instrument properties dialog - properties can now be edited
* code cleanup: removed the pointer to member usage in paramedit as it
  just made things more complicated

1 persson 1100 /* -*- 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 schoenebeck 1118 #include <gtkmm/tooltips.h>
30 persson 1100
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 schoenebeck 1118 Gtk::Tooltips tooltips;
43    
44 persson 1100 Gtk::Table* table[5];
45    
46     Gtk::Label* lSample;
47    
48     NumEntryPermille eEG1PreAttack;
49     NumEntryTemp<double> eEG1Attack;
50     NumEntryTemp<double> eEG1Decay1;
51     NumEntryTemp<double> eEG1Decay2;
52 persson 1138 BoolEntry eEG1InfiniteSustain;
53 persson 1100 NumEntryPermille eEG1Sustain;
54     NumEntryTemp<double> eEG1Release;
55 persson 1138 BoolEntry eEG1Hold;
56 persson 1100 ChoiceEntryLeverageCtrl eEG1Controller;
57 persson 1138 BoolEntry eEG1ControllerInvert;
58 persson 1100 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 persson 1138 BoolEntry eLFO1FlipPhase;
66     BoolEntry eLFO1Sync;
67 persson 1100 NumEntryPermille eEG2PreAttack;
68     NumEntryTemp<double> eEG2Attack;
69     NumEntryTemp<double> eEG2Decay1;
70     NumEntryTemp<double> eEG2Decay2;
71 persson 1138 BoolEntry eEG2InfiniteSustain;
72 persson 1100 NumEntryPermille eEG2Sustain;
73     NumEntryTemp<double> eEG2Release;
74     ChoiceEntryLeverageCtrl eEG2Controller;
75 persson 1138 BoolEntry eEG2ControllerInvert;
76 persson 1100 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 persson 1138 BoolEntry eLFO2FlipPhase;
84     BoolEntry eLFO2Sync;
85 persson 1100 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 persson 1138 BoolEntry eLFO3Sync;
92     BoolEntry eVCFEnabled;
93 persson 1100 ChoiceEntry<gig::vcf_type_t> eVCFType;
94     ChoiceEntry<gig::vcf_cutoff_ctrl_t> eVCFCutoffController;
95 persson 1138 BoolEntry eVCFCutoffControllerInvert;
96 persson 1100 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 persson 1138 BoolEntry eVCFResonanceDynamic;
102 persson 1100 ChoiceEntry<gig::vcf_res_ctrl_t> eVCFResonanceController;
103 persson 1138 BoolEntry eVCFKeyboardTracking;
104 persson 1100 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 persson 1138 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 persson 1100 ChoiceEntry<gig::dim_bypass_ctrl_t> eDimensionBypass;
117     NumEntryTemp<int8_t> ePan;
118 persson 1138 BoolEntry eSelfMask;
119 persson 1100 ChoiceEntryLeverageCtrl eAttenuationController;
120 persson 1138 BoolEntry eInvertAttenuationController;
121 persson 1100 NumEntryTemp<uint8_t> eAttenuationControllerThreshold;
122     NumEntryTemp<uint8_t> eChannelOffset;
123 persson 1138 BoolEntry eSustainDefeat;
124     BoolEntry eMSDecode;
125 persson 1100 NumEntryTemp<uint16_t> eSampleStartOffset;
126     NoteEntry eUnityNote;
127 persson 1138 NumEntryTemp<int16_t> eFineTune;
128 persson 1100 NumEntryGain eGain;
129 persson 1117 BoolEntryPlus6 eGainPlus6;
130 persson 1138 NumEntryTemp<uint32_t> eSampleLoops;
131 persson 1100
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