void Print<S>::inspect(const Space& node) { init(); addHtml("<pre>\n"); dynamic_cast<const S&>(node).print(getStream()); flush(); addHtml("</pre><hr />"); }
void VarComparator<S>::compare(const Space& s0, const Space& s1) { std::ostringstream result; dynamic_cast<const S&>(s0).compare(s1,result); if (result.str() != "") { init(); addHtml("<pre>\n"); getStream() << result.str() << std::endl; addHtml("</pre><hr />"); } }
ChecklistGuidePageIntro::ChecklistGuidePageIntro() : ChecklistGuidePage ("Introduction") { LOG4CPP_INFO_S ((*mainCat)) << "ChecklistGuidePageIntro::ChecklistGuidePageIntro"; addHtml (tr ("<p>Engauge converts an image of a graph or map into numbers, as long as the image has axes and/or grid lines " "to define the coordinates.</p>" "<p>This wizard creates a checklist of steps that can serve as a helpful guide. By following those steps, you " "can obtain digitized data points in an exported file.</p>")); }
ChecklistGuidePageCurves::ChecklistGuidePageCurves(const QString &title) : ChecklistGuidePage (title) { LOG4CPP_INFO_S ((*mainCat)) << "ChecklistGuidePageCurves::ChecklistGuidePageCurves"; const QString WHATS_THIS_CURVE (tr ("Curve name. Empty if unused.")); const QString WHATS_THIS_LINES (tr ("Draw lines between points in each curve.")); const QString WHATS_THIS_POINTS (tr ("Draw points in each curve, without lines between the points.")); addHtml (QString ("<p>%1</p>") .arg (tr ("What are the names of the curves that are to be digitized? At least one entry is required."))); m_edit = new ChecklistLineEdit* [NUM_CURVE_NAMES()]; for (int i = 0; i < NUM_CURVE_NAMES(); i++) { m_edit [i] = new ChecklistLineEdit; connect (m_edit [i], SIGNAL (signalKeyRelease()), this, SLOT (slotTableChanged())); addLineEdit (m_edit [i], WHATS_THIS_CURVE); } SettingsForGraph settingsForGraph; QString curveName = settingsForGraph.defaultCurveName (1, DEFAULT_GRAPH_CURVE_NAME); m_edit [0]->setText (curveName); addHtml ("<p> </p>"); addHtml (QString ("<p>%1</p>") .arg (tr ("How are those curves drawn?"))); m_btnLines = addLabelAndRadioButton (tr ("With lines (with or without points)"), WHATS_THIS_LINES); m_btnPoints = addLabelAndRadioButton (tr ("With points only (no lines between points)"), WHATS_THIS_POINTS); m_btnLines->setChecked (true); // Default encourages digitizing using the lines, since that is easier }