Esempio n. 1
0
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();
}
Esempio n. 2
0
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();
}
Esempio n. 3
0
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();
}
Esempio n. 4
0
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();
}
Esempio n. 6
0
void TabbedFolderNodeFitSpecification::CheckRestrictions()
{
  bool tabOK = ControlStaticSupport::IsOptimization() || ControlStaticSupport::IsRange();
  EnableTab(FIT_Select, tabOK);

  Invalidate();
  UpdateWindow();
}
Esempio n. 7
0
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();
}
Esempio n. 8
0
void TabbedFolderPlotSetup::CheckRestrictions()
{
  bool fitOK = ControlStaticSupport::IsOptimization() || ControlStaticSupport::IsRange();
  EnableTab(PS_Fit, fitOK);
}
Esempio n. 9
0
void TabbedFolderNodeVary::CheckRestrictions()
{
  EnableTab(VARN_Main, VaryVar::GetnActive() > 0);
}