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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1100 - (hide annotations) (download) (as text)
Sat Mar 17 09:20:19 2007 UTC (17 years, 1 month ago) by persson
File MIME type: text/x-c++hdr
File size: 5557 byte(s)
* code refactoring: dimregion editor and parameter editors extracted
  to separate files.
* loading progress dialog now also shown when filename is given as
  argument

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

  ViewVC Help
Powered by ViewVC