Changeset 2069 for palm


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

mrungui improvements

Location:
palm/trunk/UTIL/mrungui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/UTIL/mrungui/about.ui

    r798 r2069  
    77    <x>0</x>
    88    <y>0</y>
    9     <width>280</width>
    10     <height>129</height>
     9    <width>300</width>
     10    <height>127</height>
    1111   </rect>
    1212  </property>
    1313  <property name="windowTitle">
    14    <string>About MRUN gui</string>
     14   <string>About mrungui</string>
    1515  </property>
    1616  <widget class="QPushButton" name="button_ok">
    1717   <property name="geometry">
    1818    <rect>
    19      <x>180</x>
     19     <x>195</x>
    2020     <y>95</y>
    2121     <width>91</width>
     
    2525   <property name="text">
    2626    <string>Close</string>
    27    </property>
    28   </widget>
    29   <widget class="QLabel" name="label_3">
    30    <property name="geometry">
    31     <rect>
    32      <x>10</x>
    33      <y>100</y>
    34      <width>141</width>
    35      <height>21</height>
    36     </rect>
    37    </property>
    38    <property name="text">
    39     <string>Based on Qt 4.7.4</string>
    40    </property>
    41    <property name="alignment">
    42     <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
    43    </property>
    44    <property name="wordWrap">
    45     <bool>true</bool>
    4627   </property>
    4728  </widget>
     
    6344   </property>
    6445   <property name="text">
    65     <string>MRUN gui $Rev$</string>
     46    <string>mrungui</string>
    6647   </property>
    6748  </widget>
    68   <widget class="QLabel" name="label_4">
     49  <widget class="QLabel" name="label_5">
    6950   <property name="geometry">
    7051    <rect>
    7152     <x>10</x>
    72      <y>75</y>
    73      <width>211</width>
    74      <height>31</height>
     53     <y>60</y>
     54     <width>261</width>
     55     <height>36</height>
    7556    </rect>
    7657   </property>
    7758   <property name="text">
    78     <string>$LastChangedBy$</string>
     59    <string>http://palm.muk.uni-hannover.de/</string>
    7960   </property>
    8061   <property name="alignment">
     
    8566   </property>
    8667  </widget>
    87   <widget class="QLabel" name="label_5">
     68  <widget class="QLabel" name="label_3">
    8869   <property name="geometry">
    8970    <rect>
    9071     <x>10</x>
    91      <y>40</y>
    92      <width>261</width>
    93      <height>31</height>
     72     <y>25</y>
     73     <width>274</width>
     74     <height>41</height>
    9475    </rect>
    9576   </property>
     77   <property name="font">
     78    <font>
     79     <pointsize>12</pointsize>
     80     <weight>75</weight>
     81     <bold>true</bold>
     82    </font>
     83   </property>
    9684   <property name="text">
    97     <string>Written by the PALM group. Visit us at                                    http://palm.muk.uni-hannover.de/</string>
    98    </property>
    99    <property name="alignment">
    100     <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
    101    </property>
    102    <property name="wordWrap">
    103     <bool>true</bool>
     85    <string>A graphical user interface for PALM</string>
    10486   </property>
    10587  </widget>
  • 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                   }
  • palm/trunk/UTIL/mrungui/mainwindow.ui

    r2067 r2069  
    2424  </property>
    2525  <property name="windowTitle">
    26    <string>MRUN gui</string>
     26   <string>mrungui</string>
    2727  </property>
    2828  <property name="iconSize">
     
    5757     <property name="geometry">
    5858      <rect>
    59        <x>120</x>
     59       <x>140</x>
    6060       <y>10</y>
    61        <width>100</width>
     61       <width>90</width>
    6262       <height>24</height>
    6363      </rect>
     
    7575       <x>10</x>
    7676       <y>10</y>
    77        <width>100</width>
     77       <width>120</width>
    7878       <height>24</height>
    7979      </rect>
    8080     </property>
    8181     <property name="text">
    82       <string>MRUN Start</string>
     82      <string>Start mrun</string>
    8383     </property>
    8484    </widget>
     
    111111     <property name="geometry">
    112112      <rect>
    113        <x>230</x>
     113       <x>240</x>
    114114       <y>10</y>
    115        <width>100</width>
     115       <width>90</width>
    116116       <height>24</height>
    117117      </rect>
     
    13531353     <y>0</y>
    13541354     <width>917</width>
    1355      <height>20</height>
     1355     <height>21</height>
    13561356    </rect>
    13571357   </property>
     
    13611361      <x>4137</x>
    13621362      <y>194</y>
    1363       <width>159</width>
    1364       <height>163</height>
     1363      <width>133</width>
     1364      <height>182</height>
    13651365     </rect>
    13661366    </property>
     
    14261426  <action name="action_about">
    14271427   <property name="text">
    1428     <string>About MRUN gui</string>
     1428    <string>About mrungui</string>
    14291429   </property>
    14301430  </action>
Note: See TracChangeset for help on using the changeset viewer.