30 browser->setLineWrapMode(QTextEdit::NoWrap);
31 browser->setReadOnly(1);
32 connect(pushButton,SIGNAL(clicked()),
this, SLOT(close()));
41 string atext = _label +
"\n\n" + text;
42 browser->setText(atext.c_str());
47 std::ifstream
f(fileName.c_str());
48 std::stringstream hfile;
50 string atext = _label +
"\n" + fileName +
"\n\n";
51 QString qtext = atext.c_str();
52 browser->setText(qtext + hfile.str().c_str());
58 gridLayout->removeWidget(browser);
59 gridLayout->addWidget(browser, 0, 0, 1, 3);
61 QPushButton* next =
new QPushButton(
"next execution",
this);
62 gridLayout->addWidget(next, 1, 1, 1, 1);
63 connect(next,SIGNAL(clicked()),
this, SLOT(
onNext()));
64 QPushButton* previous =
new QPushButton(
"previous execution",
this);
65 gridLayout->addWidget(previous, 1, 2, 1, 1);
66 connect(previous,SIGNAL(clicked()),
this, SLOT(
onPrevious()));
73 QTextCursor cursor=browser->textCursor();
74 cursor.movePosition(QTextCursor::End, QTextCursor::MoveAnchor);
75 browser->setTextCursor(cursor);
81 QTextCursor orig = browser->textCursor();
82 QTextCursor find_result = browser->document()->find(
"**************************Begin schema execution", orig);
84 if(find_result.isNull())
87 find_result = browser->document()->find(
"**************************Begin schema execution",0);
90 if(!find_result.isNull())
91 browser->setTextCursor(find_result);
97 QTextCursor orig = browser->textCursor();
98 QTextCursor find_result = browser->document()->find(
"**************************Begin schema execution",
99 orig, QTextDocument::FindBackward);
100 if(find_result.isNull())
103 find_result = browser->document()->find(
"**************************Begin schema execution",
104 browser->document()->characterCount()-1, QTextDocument::FindBackward);
107 if(!find_result.isNull())
108 browser->setTextCursor(find_result);