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

Diff of /gigedit/trunk/src/dimregionedit.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1223 by persson, Fri May 18 16:07:18 2007 UTC revision 1224 by persson, Sun Jun 10 09:26:36 2007 UTC
# Line 169  DimRegionEdit::DimRegionEdit() : Line 169  DimRegionEdit::DimRegionEdit() :
169      addProp(eSampleLoopStart);      addProp(eSampleLoopStart);
170      addProp(eSampleLoopLength);      addProp(eSampleLoopLength);
171      {      {
172          char* choices[] = { "normal", "bidirectional", "backward", 0 };          const char* choices[] = { "normal", "bidirectional", "backward", 0 };
173          static const uint32_t values[] = {          static const uint32_t values[] = {
174              gig::loop_type_normal,              gig::loop_type_normal,
175              gig::loop_type_bidirectional,              gig::loop_type_bidirectional,
# Line 209  DimRegionEdit::DimRegionEdit() : Line 209  DimRegionEdit::DimRegionEdit() :
209      addProp(eLFO1InternalDepth);      addProp(eLFO1InternalDepth);
210      addProp(eLFO1ControlDepth);      addProp(eLFO1ControlDepth);
211      {      {
212          char* choices[] = { "internal", "modwheel", "breath",          const char* choices[] = { "internal", "modwheel", "breath",
213                              "internal+modwheel", "internal+breath", 0 };                                    "internal+modwheel", "internal+breath", 0 };
214          static const gig::lfo1_ctrl_t values[] = {          static const gig::lfo1_ctrl_t values[] = {
215              gig::lfo1_ctrl_internal,              gig::lfo1_ctrl_internal,
216              gig::lfo1_ctrl_modwheel,              gig::lfo1_ctrl_modwheel,
# Line 237  DimRegionEdit::DimRegionEdit() : Line 237  DimRegionEdit::DimRegionEdit() :
237      addHeader(_("General Filter Settings"));      addHeader(_("General Filter Settings"));
238      addProp(eVCFEnabled);      addProp(eVCFEnabled);
239      {      {
240          char* choices[] = { "lowpass", "lowpassturbo", "bandpass",          const char* choices[] = { "lowpass", "lowpassturbo", "bandpass",
241                              "highpass", "bandreject", 0 };                                    "highpass", "bandreject", 0 };
242          static const gig::vcf_type_t values[] = {          static const gig::vcf_type_t values[] = {
243              gig::vcf_type_lowpass,              gig::vcf_type_lowpass,
244              gig::vcf_type_lowpassturbo,              gig::vcf_type_lowpassturbo,
# Line 250  DimRegionEdit::DimRegionEdit() : Line 250  DimRegionEdit::DimRegionEdit() :
250      }      }
251      addProp(eVCFType);      addProp(eVCFType);
252      {      {
253          char* choices[] = { "none", "none2", "modwheel", "effect1", "effect2",          const char* choices[] = { "none", "none2", "modwheel", "effect1", "effect2",
254                              "breath", "foot", "sustainpedal", "softpedal",                                    "breath", "foot", "sustainpedal", "softpedal",
255                              "genpurpose7", "genpurpose8", "aftertouch", 0 };                                    "genpurpose7", "genpurpose8", "aftertouch", 0 };
256          static const gig::vcf_cutoff_ctrl_t values[] = {          static const gig::vcf_cutoff_ctrl_t values[] = {
257              gig::vcf_cutoff_ctrl_none,              gig::vcf_cutoff_ctrl_none,
258              gig::vcf_cutoff_ctrl_none2,              gig::vcf_cutoff_ctrl_none2,
# Line 272  DimRegionEdit::DimRegionEdit() : Line 272  DimRegionEdit::DimRegionEdit() :
272      addProp(eVCFCutoffController);      addProp(eVCFCutoffController);
273      addProp(eVCFCutoffControllerInvert);      addProp(eVCFCutoffControllerInvert);
274      addProp(eVCFCutoff);      addProp(eVCFCutoff);
275      char* curve_type_texts[] = { "nonlinear", "linear", "special", 0 };      const char* curve_type_texts[] = { "nonlinear", "linear", "special", 0 };
276      static const gig::curve_type_t curve_type_values[] = {      static const gig::curve_type_t curve_type_values[] = {
277          gig::curve_type_nonlinear,          gig::curve_type_nonlinear,
278          gig::curve_type_linear,          gig::curve_type_linear,
# Line 285  DimRegionEdit::DimRegionEdit() : Line 285  DimRegionEdit::DimRegionEdit() :
285      addProp(eVCFResonance);      addProp(eVCFResonance);
286      addProp(eVCFResonanceDynamic);      addProp(eVCFResonanceDynamic);
287      {      {
288          char* choices[] = { "none", "genpurpose3", "genpurpose4",          const char* choices[] = { "none", "genpurpose3", "genpurpose4",
289                              "genpurpose5", "genpurpose6", 0 };                                    "genpurpose5", "genpurpose6", 0 };
290          static const gig::vcf_res_ctrl_t values[] = {          static const gig::vcf_res_ctrl_t values[] = {
291              gig::vcf_res_ctrl_none,              gig::vcf_res_ctrl_none,
292              gig::vcf_res_ctrl_genpurpose3,              gig::vcf_res_ctrl_genpurpose3,
# Line 320  DimRegionEdit::DimRegionEdit() : Line 320  DimRegionEdit::DimRegionEdit() :
320      addProp(eLFO2InternalDepth);      addProp(eLFO2InternalDepth);
321      addProp(eLFO2ControlDepth);      addProp(eLFO2ControlDepth);
322      {      {
323          char* choices[] = { "internal", "modwheel", "foot",          const char* choices[] = { "internal", "modwheel", "foot",
324                              "internal+modwheel", "internal+foot", 0 };                                    "internal+modwheel", "internal+foot", 0 };
325          static const gig::lfo2_ctrl_t values[] = {          static const gig::lfo2_ctrl_t values[] = {
326              gig::lfo2_ctrl_internal,              gig::lfo2_ctrl_internal,
327              gig::lfo2_ctrl_modwheel,              gig::lfo2_ctrl_modwheel,
# Line 348  DimRegionEdit::DimRegionEdit() : Line 348  DimRegionEdit::DimRegionEdit() :
348      addProp(eLFO3InternalDepth);      addProp(eLFO3InternalDepth);
349      addProp(eLFO3ControlDepth);      addProp(eLFO3ControlDepth);
350      {      {
351          char* choices[] = { "internal", "modwheel", "aftertouch",          const char* choices[] = { "internal", "modwheel", "aftertouch",
352                              "internal+modwheel", "internal+aftertouch", 0 };                                    "internal+modwheel", "internal+aftertouch", 0 };
353          static const gig::lfo3_ctrl_t values[] = {          static const gig::lfo3_ctrl_t values[] = {
354              gig::lfo3_ctrl_internal,              gig::lfo3_ctrl_internal,
355              gig::lfo3_ctrl_modwheel,              gig::lfo3_ctrl_modwheel,
# Line 374  DimRegionEdit::DimRegionEdit() : Line 374  DimRegionEdit::DimRegionEdit() :
374      addProp(eReleaseVelocityResponseDepth);      addProp(eReleaseVelocityResponseDepth);
375      addProp(eReleaseTriggerDecay);      addProp(eReleaseTriggerDecay);
376      {      {
377          char* choices[] = { "none", "effect4depth", "effect5depth", 0 };          const char* choices[] = { "none", "effect4depth", "effect5depth", 0 };
378          static const gig::dim_bypass_ctrl_t values[] = {          static const gig::dim_bypass_ctrl_t values[] = {
379              gig::dim_bypass_ctrl_none,              gig::dim_bypass_ctrl_none,
380              gig::dim_bypass_ctrl_94,              gig::dim_bypass_ctrl_94,
# Line 444  DimRegionEdit::~DimRegionEdit() Line 444  DimRegionEdit::~DimRegionEdit()
444  {  {
445  }  }
446    
447  void DimRegionEdit::addString(char* labelText, Gtk::Label*& label,  void DimRegionEdit::addString(const char* labelText, Gtk::Label*& label,
448                             Gtk::Entry*& widget)                                Gtk::Entry*& widget)
449  {  {
450      label = new Gtk::Label(Glib::ustring(labelText) + ":");      label = new Gtk::Label(Glib::ustring(labelText) + ":");
451      label->set_alignment(Gtk::ALIGN_LEFT);      label->set_alignment(Gtk::ALIGN_LEFT);
# Line 461  void DimRegionEdit::addString(char* labe Line 461  void DimRegionEdit::addString(char* labe
461      rowno++;      rowno++;
462  }  }
463    
464  void DimRegionEdit::addHeader(char* text)  void DimRegionEdit::addHeader(const char* text)
465  {  {
466      if (firstRowInBlock < rowno - 1)      if (firstRowInBlock < rowno - 1)
467      {      {

Legend:
Removed from v.1223  
changed lines
  Added in v.1224

  ViewVC Help
Powered by ViewVC