Changeset 2069 for palm/trunk/UTIL/mrungui/mainwindow.cpp
- Timestamp:
- Nov 14, 2016 4:58:29 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/UTIL/mrungui/mainwindow.cpp
r2068 r2069 18 18 // Current revisions: 19 19 // ----------------- 20 // 20 // Bugfix: keep xterm alive for interactive runs 21 // Changed: some style improvements 21 22 // 22 23 // Former revisions: … … 221 222 QString mrunline = ui->commandline->text(); 222 223 QString userline = ui->line_user->text(); 223 224 QRect geomet; 225 QString posx; 226 QString posy; 227 224 228 // Check for empty line 225 229 mrunline_save = mrunline; … … 243 247 branch = branch.left(branch.length() - 14); 244 248 245 ui->commandline->setText("Executing MRUNin xterm...");249 ui->commandline->setText("Executing mrun in xterm..."); 246 250 247 251 // Wait until all commands have been executed (ugly) … … 254 258 mrun.setWorkingDirectory(branch); 255 259 256 mrunline = " -title \"Executing MRUN...\" -geometry \"100x55+970+0\" -e \""\ 260 geomet = frameGeometry(); 261 262 posx=QString::number(geomet.x()+geomet.width()); 263 posy=QString::number(geomet.y()); 264 265 mrunline = " -title \"Executing mrun...\" -fa \"Monospace\" -fs 11 -geometry \"80x38+"+posx+"+"+posy+"\" -e \""\ 257 266 +mrunline.replace("\"","\'")\ 258 +";echo -n '--> Press Enter to continue...';read yesno\"";267 +";echo -n '--> Press enter to continue...';read yesno\"</dev/stdin"; 259 268 260 269 mrun.start("xterm"+mrunline); … … 295 304 ui->button_start->setEnabled(true); 296 305 ui->action_save->setEnabled(true); 297 ui->button_start->setText(" MRUN Start");306 ui->button_start->setText("Start mrun"); 298 307 ui->commandline->setText(mrunline_save); 299 308 … … 577 586 if (usercode.exists() == true) 578 587 { 579 ui->label_usercode->setText(" User code found.");588 ui->label_usercode->setText("<font color='green'>User code found.</font>"); 580 589 } 581 590 else 582 591 { 583 ui->label_usercode->setText(" Warning: no user code found!");592 ui->label_usercode->setText("<font color='red'>Warning: no user code found!</font>"); 584 593 } 585 594 … … 595 604 else 596 605 { 597 ui->label_restart->setText(" Warning: No p3df file found!");606 ui->label_restart->setText("<font color='red'>Warning: No p3df file found!</font>"); 598 607 } 599 608 } … … 767 776 else 768 777 { 769 ui->label_restart->setText(" Warning: No p3df file found!");778 ui->label_restart->setText("<font color='red'>Warning: No p3df file found!</font>"); 770 779 } 771 780 } … … 1716 1725 else 1717 1726 { 1718 ui->label_restart->setText(" Warning: No p3df file \1719 found! ");1727 ui->label_restart->setText("<font color='red'>Warning: No p3df file \ 1728 found!</font>"); 1720 1729 } 1721 1730 }
Note: See TracChangeset
for help on using the changeset viewer.