void TabbedFolderNodeSamplingCorrelations::CheckRestrictions() { EnableTab(SCMN_Parameter, SampVar::CorrGroupOK(0)); EnableTab(SCMN_Sequence_flow_rate, SampVar::CorrGroupOK(1)); EnableTab(SCMN_Sequence_pressure, SampVar::CorrGroupOK(2)); EnableTab(SCMN_Superposition_radii, SampVar::CorrGroupOK(3)); Invalidate(); UpdateWindow(); }
void TabbedFolderNodeSampling::CheckRestrictions() { bool corrOK = SampVar::CorrGroupOK(0) || SampVar::CorrGroupOK(1) || SampVar::CorrGroupOK(2) || SampVar::CorrGroupOK(3); EnableTab(SMPN_CorrelationMatrix, SampleControlStatics::specifyCorrelations && corrOK); EnableTab(SMPN_SamplingResults, sample.SampleOK()); Invalidate(); UpdateWindow(); }
void TabbedFolderNodeOptimization::CheckRestrictions() { EnableTab(OPTN_LevMarAlg, OptimizationControlStatics::UseLevMar()); // || OptimizationControlStatics::UseLevMarMINPACK()); EnableTab(OPTN_SimplexAlg, OptimizationControlStatics::UseSimplex()); EnableTab(OPTN_SimAnnealAlg, OptimizationControlStatics::UseSimAnneal()); EnableTab(OPTN_SCEMAlg, OptimizationControlStatics::UseSCEM()); // EnableTab(OPTN_Perturbation, !control.IsRange()); Invalidate(); UpdateWindow(); }
void TabbedFolderNodeOutputFileSetup::CheckRestrictions() { EnableTab(OFSN_Standard, !control.IsRange()); EnableTab(OFSN_Profile, control.IsForward() && control.IsNormal()); EnableTab(OFSN_Range, control.IsRange()); EnableTab(OFSN_Optimization, control.IsOptimization() && !control.IsRange()); EnableTab(OFSN_mView, control.IsLayered() && control.IsForward() && control.IsNormal()); SelectFirstEnabledTab(); Invalidate(); UpdateWindow(); }
//================================================================================================================ //================================================================================================================ ToolWindow2DEditorTab::ToolWindow2DEditorTab(HWND hwnd, EngineOptions* eo, D3D* d3d) : ToolWindow2DTab(hwnd, eo, d3d) , m_GameDirectoryCreated(false) { BuildTab(); EnableTab(); }
void TabbedFolderNodeFitSpecification::CheckRestrictions() { bool tabOK = ControlStaticSupport::IsOptimization() || ControlStaticSupport::IsRange(); EnableTab(FIT_Select, tabOK); Invalidate(); UpdateWindow(); }
void TabbedFolderNodeSequence::CheckRestrictions() { bool seqOK = true; if (control.IsLayered()) { seqOK = false; if (useCommonHistory) seqOK = true; for (int i = 0; i < wellBoreZones.Size(); i++) { int seqIndx = wellBoreZones[i].seqIndex; if (seqIndx >= 0) seqOK = true; } } EnableTab(SEQ_Sequences, seqOK); EnableTab(SEQ_Dynamic_Time_Step, control.IsNotLayered()); EnableTab(SEQ_Partial_Run, control.IsNotLayered()); Invalidate(); UpdateWindow(); }
void TabbedFolderPlotSetup::CheckRestrictions() { bool fitOK = ControlStaticSupport::IsOptimization() || ControlStaticSupport::IsRange(); EnableTab(PS_Fit, fitOK); }
void TabbedFolderNodeVary::CheckRestrictions() { EnableTab(VARN_Main, VaryVar::GetnActive() > 0); }