本文整理汇总了C++中Fl_Box::deactivate方法的典型用法代码示例。如果您正苦于以下问题:C++ Fl_Box::deactivate方法的具体用法?C++ Fl_Box::deactivate怎么用?C++ Fl_Box::deactivate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fl_Box
的用法示例。
在下文中一共展示了Fl_Box::deactivate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: initParamWindow
//.........这里部分代码省略.........
o->box(inputStyle);
o->minimum(10);
o->maximum(100);
o->value(glito->framesPerCycle);
o->step(1);
o->callback( (Fl_Callback*)framesPerCycle_param, glito );
}
y += heightInput + Ybetween + YbetweenMore;
{
Fl_Box* o = new Fl_Box( x, y, wideLabel, heightInput, _("Motion detection (ms):") );
o->align( alignStyle );
}
{
Fl_Value_Slider* o = new Fl_Value_Slider( x+wideLabel+between, y, wideInput, heightInput );
o->box(inputStyle);
o->type(FL_HORIZONTAL);
o->minimum(1);
o->maximum(200);
o->value(glito->intervalMotionDetection);
o->step(1);
o->callback( (Fl_Callback*)intervalMotionDetection_param, glito );
}
y += heightInput + Ybetween + YbetweenMore;
{
{
Fl_Button* o = new Fl_Button( x, y, 70, heightInput, _("Density") );
o->box(FL_PLASTIC_UP_BOX);
o->value( glito->trueDensity );
o->callback( (Fl_Callback*)trueDensity_param, glito );
}
{
Fl_Box* o = new Fl_Box( x, y, wideLabel+30, heightInput, _("or pseudo-density:") );
o->align( alignStyle );
if ( glito->trueDensity ) o->deactivate();
}
{
Fl_Value_Slider* o = new Fl_Value_Slider( x+wideLabel+30+between, y,
100, heightInput );
o->box(inputStyle);
if ( glito->trueDensity ) o->deactivate();
o->type(FL_HORIZONTAL);
o->minimum(0);
o->maximum(1);
o->value( ImagePseudoDensity::pseudoDensity.getProba() );
o->step(0.01);
o->callback( (Fl_Callback*)logProbaHitMax_param );
}
}
y += heightInput + Ybetween + YbetweenMore;
{
Fl_Box* o = new Fl_Box( x, y, wideInput, heightInput, _("Points for framing:") );
o->align( FL_ALIGN_INSIDE | FL_ALIGN_LEFT );
}
y += heightInput;
{
int xLine = 0;
{
Fl_Int_Input* o = new Fl_Int_Input( x+xLine, y, 80, heightInput );
o->box(inputStyle);
o->value(IS::translate(glito->pointsForFraming).c_str());
o->callback( (Fl_Callback*)pointsForFraming_param, glito );
}
xLine += 80;
{
Fl_Box* o = new Fl_Box( x+xLine, y, 20, heightInput, " (x " );
o->align( FL_ALIGN_INSIDE | FL_ALIGN_CENTER );