コード例 #1
0
void TransformationStateDefined::startTimer (const DocumentModelAxesChecker &modelAxesChecker)
{
  LOG4CPP_INFO_S ((*mainCat)) << "TransformationStateDefined::startTimer";

  m_axesChecker->setVisible (modelAxesChecker.checkerMode () != CHECKER_MODE_NEVER);

  if (modelAxesChecker.checkerMode () == CHECKER_MODE_N_SECONDS) {

    // Start timer
    int milliseconds = modelAxesChecker.checkerSeconds() * SECONDS_TO_MILLISECONDS;
    m_timer->start (milliseconds);
  }
}
コード例 #2
0
void Checker::updateModelAxesChecker (const DocumentModelAxesChecker &modelAxesChecker)
{
    QColor color = ColorPaletteToQColor (modelAxesChecker.lineColor());
    QPen pen (QBrush (color), CHECKER_POINTS_WIDTH);

    m_gridLines.setPen (pen);
}
コード例 #3
0
ファイル: Checker.cpp プロジェクト: thurberdog/engauge6
void Checker::updateModelAxesChecker (const DocumentModelAxesChecker &modelAxesChecker)
{
  QColor color = ColorPaletteToQColor (modelAxesChecker.lineColor());
  QPen pen (QBrush (color), CHECKER_POINTS_WIDTH);

  setLineColor (m_sideLeft, pen);
  setLineColor (m_sideTop, pen);
  setLineColor (m_sideRight, pen);
  setLineColor (m_sideBottom, pen);
}