Ignore:
Timestamp:
Nov 14, 2016 4:58:29 PM (8 years ago)
Author:
maronga
Message:

mrungui improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/UTIL/mrungui/mainwindow.cpp

    r2068 r2069  
    1818// Current revisions:
    1919// -----------------
    20 //
     20// Bugfix: keep xterm alive for interactive runs
     21// Changed: some style improvements
    2122//
    2223// Former revisions:
     
    221222    QString mrunline = ui->commandline->text();
    222223    QString userline = ui->line_user->text();
    223 
     224    QRect   geomet;
     225    QString posx;
     226    QString posy;
     227   
    224228//  Check for empty line
    225229    mrunline_save = mrunline;
     
    243247    branch = branch.left(branch.length() - 14);
    244248
    245     ui->commandline->setText("Executing MRUN in xterm...");
     249    ui->commandline->setText("Executing mrun in xterm...");
    246250
    247251//  Wait until all commands have been executed (ugly)
     
    254258    mrun.setWorkingDirectory(branch);
    255259
    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 \""\
    257266          +mrunline.replace("\"","\'")\
    258           +";echo -n '--> Press Enter to continue...';read yesno\"";
     267          +";echo -n '--> Press enter to continue...';read yesno\"</dev/stdin";
    259268
    260269    mrun.start("xterm"+mrunline);
     
    295304    ui->button_start->setEnabled(true);
    296305    ui->action_save->setEnabled(true);
    297     ui->button_start->setText("MRUN Start");
     306    ui->button_start->setText("Start mrun");
    298307    ui->commandline->setText(mrunline_save);
    299308
     
    577586           if (usercode.exists() == true)
    578587           {
    579                ui->label_usercode->setText("User code found.");
     588               ui->label_usercode->setText("<font color='green'>User code found.</font>");
    580589           }
    581590           else
    582591           {
    583                ui->label_usercode->setText("Warning: no user code found!");
     592               ui->label_usercode->setText("<font color='red'>Warning: no user code found!</font>");
    584593           }
    585594
     
    595604              else
    596605              {
    597                  ui->label_restart->setText("Warning: No p3df file found!");
     606                 ui->label_restart->setText("<font color='red'>Warning: No p3df file found!</font>");
    598607              }
    599608           }
     
    767776               else
    768777               {
    769                   ui->label_restart->setText("Warning: No p3df file found!");
     778                  ui->label_restart->setText("<font color='red'>Warning: No p3df file found!</font>");
    770779               }
    771780            }
     
    17161725                      else
    17171726                      {
    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>");
    17201729                      }
    17211730                   }
Note: See TracChangeset for help on using the changeset viewer.