16 #include "Riostream.h"
35 char s[3]; s[0] = 13; s[1] = 10; s[2]=0;
38 if (i<minuit->GetNumCommands()-1) cmds+=s;
40 CommandsEdit->setText(cmds);
41 }
else CommandsEdit->setText(
"");
48 if (minuit==0)
return;
52 QTextCursor curs(CommandsEdit->document());
53 while (!curs.atEnd()) {
54 curs.movePosition(QTextCursor::EndOfLine, QTextCursor::KeepAnchor);
55 minuit->
AddCommand(curs.selectedText().toLatin1().constData());
56 curs.movePosition(QTextCursor::NextWord, QTextCursor::MoveAnchor);
void AddCommand(const char *iCommand)
const char * GetCommand(Int_t n)