本文整理汇总了C++中gdk::Color::set_rgb方法的典型用法代码示例。如果您正苦于以下问题:C++ Color::set_rgb方法的具体用法?C++ Color::set_rgb怎么用?C++ Color::set_rgb使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gdk::Color
的用法示例。
在下文中一共展示了Color::set_rgb方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: memset
ScreenArea::ScreenArea(int _iWidth, int _iHeight, int _iScale) :
m_iFilterScale(1),
m_vFilter2x(NULL),
m_vFilterIB(NULL),
m_puiPixels(NULL),
m_puiDelta(NULL),
m_iScaledWidth(_iWidth),
m_iScaledHeight(_iHeight),
m_bEnableRender(true),
m_bShowCursor(true)
{
g_assert(_iWidth >= 1 && _iHeight >= 1 && _iScale >= 1);
m_iWidth = _iWidth;
m_iHeight = _iHeight;
m_iScale = _iScale;
set_events(Gdk::EXPOSURE_MASK
| Gdk::POINTER_MOTION_MASK
| Gdk::ENTER_NOTIFY_MASK
| Gdk::LEAVE_NOTIFY_MASK);
char aiEmptyData[8];
memset(aiEmptyData, 0, sizeof(aiEmptyData));
Glib::RefPtr<Gdk::Bitmap> poSource = Gdk::Bitmap::create(aiEmptyData, 8, 8);
Glib::RefPtr<Gdk::Bitmap> poMask = Gdk::Bitmap::create(aiEmptyData, 8, 8);
Gdk::Color oFg;
Gdk::Color oBg;
oFg.set_rgb(0, 0, 0);
oBg.set_rgb(0, 0, 0);
m_poEmptyCursor = new Gdk::Cursor(poSource, poMask, oFg, oBg, 0, 0);
}
示例2: borraDatosForm
/**
Borra todos los datos de un formulario al cambiar de pagina.
@param bloc, GtkNotebookPage.
@param guint, pag contiene el numero de pagina.
*/
void Preferencias::borraDatosForm(GtkNotebookPage* bloc,guint pag)
{
Gdk::Color col;
Glib::RefPtr<Gtk::TextBuffer> buf;
Gtk::TreeModel::iterator it;
col.set_rgb(0,0,0);
clasesG->set_text("");
nomClasesG->set_text("");
buf = descripClasesG->get_buffer();
buf->set_text("");
//claseLinea.set_active_text("");
estadosG->set_text("");
nomEstadosG->set_text("");
buf = descripEstadosG->get_buffer();
buf->set_text("");
colorEstadosG->set_color(col);
separPuntosGPD->set_value(0);
numColumnsG->set_value(0);
numFilasG->set_value(0);
colorEstadosG->set_sensitive(false);
claseLinea->set_sensitive(false);
iter = it;
}
示例3: manage
AnalogMemoryGUI::AnalogMemoryGUI(const std::string& URI)
{
EventBox *p_background = manage (new EventBox());
Gdk::Color* color = new Gdk::Color();
color->set_rgb(7710, 8738, 9252);
p_background->modify_bg(Gtk::STATE_NORMAL, *color);
VBox *p_mainWidget = manage(new VBox(false));
MyBox *p_writeAddressingModeBox = manage (new MyBox("Write Addressing Mode", Gtk::Orientation::ORIENTATION_VERTICAL));
m_comboWriteAddressForm = manage (new ComboBoxText());
m_comboWriteAddressForm->append_text("Direct (no fill)");
m_comboWriteAddressForm->append_text("Linear up only, no fill");
m_comboWriteAddressForm->append_text("Linear up only, fill");
m_comboWriteAddressForm->append_text("Linear down only, no fill");
m_comboWriteAddressForm->append_text("Linear down only, fill");
m_comboWriteAddressForm->append_text("Reflected");
m_comboWriteAddressForm->signal_changed().connect(compose(bind<0> (mem_fun(*this, &AnalogMemoryGUI::write_control), p_write_addressing_mode), mem_fun(*m_comboWriteAddressForm, &ComboBoxText::get_active_row_number)));
p_writeAddressingModeBox->pack_start(*m_comboWriteAddressForm);
p_mainWidget->pack_start(*p_writeAddressingModeBox);
p_mainWidget->pack_start(*(m_dialN = CreateDial("N (for 2^N memory cells)", p_n, NORMAL, 1)));
p_mainWidget->pack_start(*(m_dialWriteThresh = CreateDial("Write Threshold", p_write_tresh, NORMAL, 0.01)));
p_background->add(*p_mainWidget);
add(*p_background);
Gtk::manage(p_background);
}
示例4: manage
VCAExpAudioGUI::VCAExpAudioGUI(const std::string& URI)
{
EventBox *p_background = manage(new EventBox());
Gdk::Color* color = new Gdk::Color();
color->set_rgb(7710, 8738, 9252);
p_background->modify_bg(Gtk::STATE_NORMAL, *color);
VBox *p_mainWidget = manage(new VBox(false, 5));
Frame *p_gainFrame = manage(new Frame("Gain"));
//p_gainFrame->set_shadow_type(Gtk::SHADOW_NONE);
HBox *p_gainBox = manage(new HBox(true));
slot<void> p_slotGain1 = compose(bind<0>(mem_fun(*this, &VCAExpAudioGUI::write_control), p_gain1), mem_fun(*this, &VCAExpAudioGUI::get_gain1));
m_dialGain1 = new LabeledDial("Gain Offset", p_slotGain1, p_gain1, 0, 1, NORMAL, 0.01, 2);
p_gainBox->pack_start(*m_dialGain1);
slot<void> p_slotGain2 = compose(bind<0>(mem_fun(*this, &VCAExpAudioGUI::write_control), p_gain2), mem_fun(*this, &VCAExpAudioGUI::get_gain2));
m_dialGain2 = new LabeledDial("2nd Gain Boost", p_slotGain2, p_gain2, 0, 1, NORMAL, 0.01, 2);
p_gainBox->pack_start(*m_dialGain2);
p_gainFrame->add(*p_gainBox);
p_mainWidget->pack_start(*p_gainFrame);
Frame *p_inFrame = manage(new Frame("In"));
//p_gainFrame->set_shadow_type(Gtk::SHADOW_NONE);
HBox *p_volumeBox = manage(new HBox(true));
slot<void> p_slotIn1 = compose(bind<0>(mem_fun(*this, &VCAExpAudioGUI::write_control), p_in1), mem_fun(*this, &VCAExpAudioGUI::get_in1));
m_dialIn1 = new LabeledDial("In 1", p_slotIn1, p_in1, 0, 2, NORMAL, 0.01, 2);
p_volumeBox->pack_start(*m_dialIn1);
slot<void> p_slotIn2 = compose(bind<0>(mem_fun(*this, &VCAExpAudioGUI::write_control), p_in2), mem_fun(*this, &VCAExpAudioGUI::get_in2));
m_dialIn2 = new LabeledDial("In 2", p_slotIn2, p_in2, 0, 2, NORMAL, 0.01, 2);
p_volumeBox->pack_start(*m_dialIn2);
p_inFrame->add(*p_volumeBox);
p_mainWidget->pack_start(*p_inFrame);
slot<void> p_slotOutputLevel = compose(bind<0>(mem_fun(*this, &VCAExpAudioGUI::write_control), p_outputLevel), mem_fun(*this, &VCAExpAudioGUI::get_outputLevel));
m_dialOutputLevel = new LabeledDial("Output Level", p_slotOutputLevel, p_outputLevel, 0, 2, NORMAL, 0.01, 2);
p_mainWidget->pack_start(*m_dialOutputLevel);
p_mainWidget->set_size_request(150, 300);
p_background->add(*p_mainWidget);
add(*p_background);
Gtk::manage(p_mainWidget);
}
示例5: getARandColor
Gdk::Color WidgetExpanderBase::getARandColor()
{
Gdk::Color RandColor;
RandColor.set_rgb(Glib::Rand().get_int_range(0, 65535),
Glib::Rand().get_int_range(0, 65535),
Glib::Rand().get_int_range(0, 65535));
return RandColor;
}
示例6: manage
BeatRepeaterMonoGUI::BeatRepeaterMonoGUI(const std::string& URI)
{
EventBox *p_background = manage (new EventBox());
Gdk::Color* color = new Gdk::Color();
color->set_rgb(7710, 8738, 9252);
p_background->modify_bg(Gtk::STATE_NORMAL, *color);
VBox *p_mainWidget = manage (new VBox(false));
MyBox *p_beatBox = manage (new MyBox("Beat", Gtk::Orientation::ORIENTATION_VERTICAL));
HBox *p_beatDials = manage(new HBox(false));
m_dialTempo = new LabeledDial("Tempo", p_tempo, 40, 320, NORMAL, 1, 0);
m_dialTempo->signal_value_changed().connect(compose(bind<0>(mem_fun(*this, &BeatRepeaterMonoGUI::write_control), p_tempo), mem_fun(*m_dialTempo, &LabeledDial::get_value)));
p_beatDials->pack_start(*m_dialTempo, Gtk::PACK_EXPAND_PADDING, 0);
m_dialBeatSize = new LabeledDial("Beat Size", p_beatSize, 0.0078125, 128, MULTIPLIER, 0.0078125, 7);
m_dialBeatSize->signal_value_changed().connect(compose(bind<0>(mem_fun(*this, &BeatRepeaterMonoGUI::write_control), p_beatSize), mem_fun(*m_dialBeatSize, &LabeledDial::get_value)));
p_beatDials->pack_start(*m_dialBeatSize, Gtk::PACK_EXPAND_PADDING, 0);
p_beatBox->pack_start(*p_beatDials);
Alignment* p_align = new Alignment(0.5, 0.5, 0, 0);
m_checkReverse = manage(new CheckButton("Reverse"));
m_checkReverse->signal_toggled().connect(compose(bind<0>(mem_fun(*this, &BeatRepeaterMonoGUI::write_control), p_reverse), mem_fun(*m_checkReverse, &CheckButton::get_active)));
p_align->add(*m_checkReverse);
p_beatBox->pack_start(*p_align);
p_mainWidget->pack_start(*p_beatBox);
MyBox *p_envelopeFrame = manage(new MyBox("Envelope", Gtk::Orientation::ORIENTATION_HORIZONTAL));
m_dialAttack = new LabeledDial("Attack", p_attack, 3, 25, NORMAL, 1, 0);
m_dialAttack->signal_value_changed().connect(compose(bind<0>(mem_fun(*this, &BeatRepeaterMonoGUI::write_control), p_attack), mem_fun(*m_dialAttack, &LabeledDial::get_value)));
p_envelopeFrame->pack_start(*m_dialAttack);
m_dialRelease = new LabeledDial("Release", p_release, 3, 25, NORMAL, 1, 0);
m_dialRelease->signal_value_changed().connect(compose(bind<0>(mem_fun(*this, &BeatRepeaterMonoGUI::write_control), p_release), mem_fun(*m_dialRelease, &LabeledDial::get_value)));
p_envelopeFrame->pack_start(*m_dialRelease);
p_mainWidget->pack_start(*p_envelopeFrame);
p_background->add(*p_mainWidget);
add(*p_background);
Gtk::manage(p_mainWidget);
}
示例7: w
bool
RedBlueLevelSelector::redraw(GdkEventExpose */*bleh*/)
{
//!Check if the window we want draw is ready
Glib::RefPtr<Gdk::Window> window = get_window();
if(!window) return true;
const int w(get_width()),h(get_height());
Gdk::Color color;
Glib::RefPtr<Gdk::GC> gc(Gdk::GC::create(window));
int i;
// Draw the gradient
for(i=0;i<w;i++)
{
float red_blue(((float(i)/float(w)+0.5f)-1.0f)/2.0f+1.0f);
float blue_red(2.0f-(red_blue));
if(red_blue>1.0f)red_blue=1.0f;
if(blue_red>1.0f)blue_red=1.0f;
color.set_rgb(
round_to_int(min(red_blue,1.0f)*65535),
round_to_int(sqrt(min(red_blue,blue_red))*65535),
round_to_int(min(blue_red,1.0f)*65535)
);
gc->set_rgb_fg_color(color);
window->draw_rectangle(gc, true, i, 0, 1, h);
}
// Draw a frame
gc->set_rgb_fg_color(Gdk::Color("#000000"));
window->draw_rectangle(gc, false, 0, 0, w-1, h-1);
// Draw the position of the current value
i=(int)(((level-1.0f)*2.0f+1.0f-0.5f)*w+0.5);
gc->set_rgb_fg_color(Gdk::Color("#00ff00"));
window->draw_rectangle(gc, true, i, 1, 1, h-1);
// Print out the value
Glib::RefPtr<Pango::Layout> layout(Pango::Layout::create(get_pango_context()));
layout->set_text(etl::strprintf("%0.02f",level));
layout->set_alignment(Pango::ALIGN_CENTER);
gc->set_rgb_fg_color(Gdk::Color("#a00000"));
window->draw_layout(gc, w/2, 4, layout);
return true;
}
示例8: manage
LfoTempoGUI::LfoTempoGUI(const std::string& URI)
{
EventBox *p_background = manage (new EventBox());
Gdk::Color* color = new Gdk::Color();
color->set_rgb(7710, 8738, 9252);
p_background->modify_bg(Gtk::STATE_NORMAL, *color);
VBox *p_mainWidget = manage (new VBox(false, 5));
Label *p_labelWaveForm = manage (new Label("Wave Form"));
p_mainWidget->pack_start(*p_labelWaveForm);
m_comboWaveForm = manage (new ComboBoxText());
m_comboWaveForm->append_text("Sine");
m_comboWaveForm->append_text("Triangle");
m_comboWaveForm->append_text("Sawtooth Up");
m_comboWaveForm->append_text("Sawtooth Down");
m_comboWaveForm->append_text("Rectangle");
m_comboWaveForm->append_text("S & H");
slot<void> p_slotWaveForm = compose(bind<0> (mem_fun(*this, &LfoTempoGUI::write_control), p_waveForm), mem_fun(*m_comboWaveForm, &ComboBoxText::get_active_row_number));
m_comboWaveForm->signal_changed().connect(p_slotWaveForm);
p_mainWidget->pack_start(*m_comboWaveForm);
Frame *p_freqFrame = manage(new Frame("Tempo"));
HBox *p_freqBox = manage(new HBox(true));
slot<void> p_slotTempo = compose(bind<0>(mem_fun(*this, &LfoTempoGUI::write_control), p_tempo), mem_fun(*this, &LfoTempoGUI::get_tempo));
m_dialTempo = new LabeledDial("Tempo", p_slotTempo, p_tempo, 1, 320, NORMAL, 1, 0);
p_freqBox->pack_start(*m_dialTempo);
slot<void> p_slotTempoMultiplier = compose(bind<0>(mem_fun(*this, &LfoTempoGUI::write_control), p_tempoMultiplier), mem_fun(*this, &LfoTempoGUI::get_tempoMultiplier));
m_dialTempoMultiplier = new LabeledDial("Tempo Multiplier", p_slotTempoMultiplier, p_tempoMultiplier, 0.0078125, 32, DIVIDER, 1, 7);
p_freqBox->pack_start(*m_dialTempoMultiplier);
p_freqFrame->add(*p_freqBox);
p_mainWidget->pack_start(*p_freqFrame);
slot<void> p_slotPhi0 = compose(bind<0> (mem_fun(*this, &LfoTempoGUI::write_control), p_phi0), mem_fun(*this, &LfoTempoGUI::get_phi0));
m_dialPhi0 = new LabeledDial("Phi0", p_slotPhi0, p_phi0, 0, 6.28, NORMAL, 0.01, 2);
p_mainWidget->pack_start(*m_dialPhi0);
p_mainWidget->set_size_request(160, 260);
p_background->add(*p_mainWidget);
add(*p_background);
Gtk::manage(p_mainWidget);
}
示例9: manage
RindModulatorCVGUI::RindModulatorCVGUI(const std::string& URI)
{
EventBox *p_background = manage (new EventBox());
Gdk::Color* color = new Gdk::Color();
color->set_rgb(7710, 8738, 9252);
p_background->modify_bg(Gtk::STATE_NORMAL, *color);
slot<void> p_slotGain = compose(bind<0>(mem_fun(*this, &RindModulatorCVGUI::write_control), p_gain), mem_fun(*this, &RindModulatorCVGUI::get_gain));
m_dialGain = new LabeledDial("Gain", p_slotGain, p_gain, -10, 10, NORMAL, 0.01, 2);
p_background->add(*m_dialGain);
p_background->set_size_request(100, 80);
add(*p_background);
Gtk::manage(p_background);
}
示例10: manage
HaasGUI::HaasGUI(const std::string& URI)
{
EventBox *p_background = manage (new EventBox());
Gdk::Color* color = new Gdk::Color();
color->set_rgb(7710, 8738, 9252);
p_background->modify_bg(Gtk::STATE_NORMAL, *color);
HBox *p_mainWidget = manage (new HBox(true));
p_mainWidget->pack_start(*(m_dialDelay = CreateDial("Delay (ms)", p_delay, NORMAL, 1)));
p_mainWidget->pack_start(*(m_dialMix = CreateDial("Dry/Wet (%)", p_dry_wet, NORMAL, 1)));
p_background->add(*p_mainWidget);
add(*p_background);
Gtk::manage(p_background);
}
示例11: seleccionaEstado
/**
Rellena los datos en el formulario correspondientes a la clase o el estado
seleccionado por el usuario.
*/
void Preferencias::seleccionaEstado()
{
Glib::RefPtr<Gtk::TreeSelection> filaSeleccionada;
Gtk::TreeModel::iterator it;
string etiquetaClase;
Glib::RefPtr<Gtk::TextBuffer> buf;
Gdk::Color col;
int i;
iter = it;
i = 0;
filaSeleccionada = treeviewEstadosG->get_selection();
iter = filaSeleccionada->get_selected();
if(iter)
{
int numCopClaseEst = copiaEstadoCelula.size();
Gtk::TreeModel::Row row = *iter;
etiquetaClase = row[columModel.nomCol];
while(i < numCopClaseEst && etiquetaClase != copiaEstadoCelula[i].getEtiquetaClasificacion())
{
i++;
}
if(etiquetaClase == copiaEstadoCelula[i].getEtiquetaClasificacion())
{
col.set_rgb(copiaEstadoCelula[i].getColorEstadoR(),
copiaEstadoCelula[i].getColorEstadoG(),
copiaEstadoCelula[i].getColorEstadoB());
indiceClassEstado = i;
estadosG->set_text(copiaEstadoCelula[i].getEtiquetaClasificacion());
nomEstadosG->set_text(copiaEstadoCelula[i].getNombreClasificacion());
buf = descripEstadosG->get_buffer();
buf->set_text(copiaEstadoCelula[i].getDescripcionClasificacion());
colorEstadosG->set_sensitive(true);
colorEstadosG->set_color(col);
}
}
}
示例12: InitGtkmm
void
DoTextWidget()
{
InitGtkmm();
Gtk::Window win;
TextWidget t_wdg;
Gdk::Color white;
white.set_rgb(0x0, 0x0, 0xffff);
win.set_title("TextWidget");
t_wdg.modify_bg(Gtk::STATE_NORMAL, white);
win.set_default_size(300, 300);
win.add(t_wdg);
RunWindow(win);
}
示例13: manage
HysteresisGUI::HysteresisGUI(const std::string& URI)
{
EventBox *p_background = manage (new EventBox());
Gdk::Color* color = new Gdk::Color();
color->set_rgb(7710, 8738, 9252);
p_background->modify_bg(Gtk::STATE_NORMAL, *color);
VBox *p_mainWidget = manage (new VBox(false));
p_mainWidget->pack_start(*(m_dialCenter = CreateDial("Center", p_center, NORMAL, 0.01)));
p_mainWidget->pack_start(*(m_dialOverlap = CreateDial("Overlap", p_overlap, NORMAL, 0.01)));
p_mainWidget->pack_start(*(m_dialLowSlope = CreateDial("Low Slope", p_lowSlope, NORMAL, 0.01)));
//p_mainWidget->pack_start(*(m_dialLowOffset = CreateDial("Low Offset", p_lowOffset, NORMAL, 0.01)));
p_mainWidget->pack_start(*(m_dialHighSlope = CreateDial("High Slope", p_highSlope, NORMAL, 0.01)));
//p_mainWidget->pack_start(*(m_dialHighOffset = CreateDial("High Offset", p_highOffset, NORMAL, 0.01)));
p_background->add(*p_mainWidget);
add(*p_background);
Gtk::manage(p_mainWidget);
}
示例14: manage
Noise2CVGUI::Noise2CVGUI(const std::string& URI)
{
EventBox *p_background = manage (new EventBox());
Gdk::Color* color = new Gdk::Color();
color->set_rgb(7710, 8738, 9252);
p_background->modify_bg(Gtk::STATE_NORMAL, *color);
VBox *p_mainWidget = manage (new VBox(false, 5));
Label *p_labelWaveForm = manage (new Label("Noise Type"));
p_mainWidget->pack_start(*p_labelWaveForm);
m_comboNoiseForm = manage (new ComboBoxText());
m_comboNoiseForm->append_text("White");
m_comboNoiseForm->append_text("Random");
m_comboNoiseForm->append_text("Pink");
slot<void> p_slotNoiseForm = compose(bind<0> (mem_fun(*this, &Noise2CVGUI::write_control), p_noiseType), mem_fun(*m_comboNoiseForm, &ComboBoxText::get_active_row_number));
m_comboNoiseForm->signal_changed().connect(p_slotNoiseForm);
p_mainWidget->pack_start(*m_comboNoiseForm);
slot<void> p_slotRandomRate = compose(bind<0>(mem_fun(*this, &Noise2CVGUI::write_control), p_rate), mem_fun(*this, &Noise2CVGUI::get_randomRate));
m_dialRandomRate = new LabeledDial("Random Rate", p_slotRandomRate, p_rate, 0, 10, NORMAL, 0.01, 2);
p_mainWidget->pack_start(*m_dialRandomRate);
slot<void> p_slotRandomLevel = compose(bind<0>(mem_fun(*this, &Noise2CVGUI::write_control), p_level), mem_fun(*this, &Noise2CVGUI::get_randomLevel));
m_dialRandomLevel = new LabeledDial("Random Level", p_slotRandomLevel, p_level, 0, 1, LOG, 0.0001, 4);
p_mainWidget->pack_start(*m_dialRandomLevel);
p_mainWidget->set_size_request(150, 200);
p_background->add(*p_mainWidget);
add(*p_background);
Gtk::manage(p_mainWidget);
}
示例15: manage
EnvGUI::EnvGUI(const std::string& URI)
{
EventBox *p_background = manage (new EventBox());
Gdk::Color* color = new Gdk::Color();
color->set_rgb(7710, 8738, 9252);
p_background->modify_bg(Gtk::STATE_NORMAL, *color);
VBox *p_mainWidget = manage (new VBox(false, 5));
m_envScope = new EnvGUIScope();
p_mainWidget->pack_start(*m_envScope);
Frame *p_adsrFrame = manage (new Frame("ADSR"));
p_adsrFrame->set_shadow_type(Gtk::SHADOW_NONE);
HBox *p_adsrWidget = manage (new HBox(false));
slot<void> p_slotAttack = compose(bind<0>(mem_fun(*this, &EnvGUI::write_control), p_attack), mem_fun(*this, &EnvGUI::get_attack));
m_scaleAttack = new LabeledDial("Attack", p_slotAttack, p_attack, 0, 1, NORMAL, 0.01, 2);
p_adsrWidget->pack_start(*m_scaleAttack);
slot<void> p_slotDecay = compose(bind<0> (mem_fun(*this, &EnvGUI::write_control), p_decay), mem_fun(*this, &EnvGUI::get_decay));
m_scaleDecay = new LabeledDial("Decay", p_slotDecay, p_decay, 0, 1, NORMAL, 0.01, 2);
p_adsrWidget->pack_start(*m_scaleDecay);
slot<void> p_slotSustain = compose(bind<0> (mem_fun(*this, &EnvGUI::write_control), p_sustain), mem_fun(*this, &EnvGUI::get_sustain));
m_scaleSustain = new LabeledDial("Sustain", p_slotSustain, p_delay, 0, 1, NORMAL, 0.01, 2);
p_adsrWidget->pack_start(*m_scaleSustain);
slot<void> p_slotRelease = compose(bind<0> (mem_fun(*this, &EnvGUI::write_control), p_release), mem_fun(*this, &EnvGUI::get_release));
m_scaleRelease = new LabeledDial("Release", p_slotRelease, p_release, 0, 1, NORMAL, 0.01, 2);
p_adsrWidget->pack_start(*m_scaleRelease);
p_adsrFrame->add(*p_adsrWidget);
p_mainWidget->pack_start(*p_adsrFrame);
p_mainWidget->pack_start(*(new HSeparator()));
Frame *p_dhtFrame = manage (new Frame("Delay / Hold / Time Scale"));
p_dhtFrame->set_shadow_type(Gtk::SHADOW_NONE);
HBox *p_dhtWidget = manage (new HBox(false));
slot<void> p_slotDelay = compose(bind<0>(mem_fun(*this, &EnvGUI::write_control), p_delay), mem_fun(*this, &EnvGUI::get_delay));
m_scaleDelay = new LabeledDial("Delay", p_slotDelay, p_delay, 0, 1, NORMAL, 0.01, 2);
p_dhtWidget->pack_start(*m_scaleDelay);
slot<void> p_slotHold = compose(bind<0> (mem_fun(*this, &EnvGUI::write_control), p_hold), mem_fun(*this, &EnvGUI::get_hold));
m_scaleHold = new LabeledDial("Hold", p_slotHold, p_hold, 0, 1, NORMAL, 0.01, 2);
p_dhtWidget->pack_start(*m_scaleHold);
slot<void> p_slotTimescale = compose(bind<0> (mem_fun(*this, &EnvGUI::write_control), p_timeScale), mem_fun(*this, &EnvGUI::get_timescale));
m_scaleTimeScale = new LabeledDial("Time Scale", p_slotTimescale, p_timeScale, 0, 10, NORMAL, 0.01, 2);
p_dhtWidget->pack_start(*m_scaleTimeScale);
p_dhtFrame->add(*p_dhtWidget);
p_mainWidget->pack_start(*p_dhtFrame);
m_envScope->m_attackValue = m_scaleAttack->get_value();
m_envScope->m_decayValue = m_scaleDecay->get_value();
m_envScope->m_sustainValue = m_scaleSustain->get_value();
m_envScope->m_releaseValue = m_scaleRelease->get_value();
m_envScope->m_delayValue = m_scaleDelay->get_value();
m_envScope->m_holdValue = m_scaleHold->get_value();
m_envScope->Redraw();
p_mainWidget->set_size_request(200, 320);
p_background->add(*p_mainWidget);
add(*p_background);
Gtk::manage(p_mainWidget);
}