Skip to content

Commit

Permalink
FEM: Rename pushButton_generate to pb_run_ccx
Browse files Browse the repository at this point in the history
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF authored and wwmayer committed Oct 19, 2015
1 parent 14740f9 commit 6116231
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Fem/MechanicalAnalysis.ui
Expand Up @@ -56,7 +56,7 @@
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_generate">
<widget class="QPushButton" name="pb_run_ccx">
<property name="enabled">
<bool>false</bool>
</property>
Expand Down
8 changes: 4 additions & 4 deletions src/Mod/Fem/_JobControlTaskPanel.py
Expand Up @@ -68,7 +68,7 @@ def __init__(self, analysis_object):
QtCore.QObject.connect(self.form.tb_choose_working_dir, QtCore.SIGNAL("clicked()"), self.choose_working_dir)
QtCore.QObject.connect(self.form.pb_write_inp, QtCore.SIGNAL("clicked()"), self.write_input_file_handler)
QtCore.QObject.connect(self.form.pb_edit_inp, QtCore.SIGNAL("clicked()"), self.editCalculixInputFile)
QtCore.QObject.connect(self.form.pushButton_generate, QtCore.SIGNAL("clicked()"), self.runCalculix)
QtCore.QObject.connect(self.form.pb_run_ccx, QtCore.SIGNAL("clicked()"), self.runCalculix)

QtCore.QObject.connect(self.Calculix, QtCore.SIGNAL("started()"), self.calculixStarted)
QtCore.QObject.connect(self.Calculix, QtCore.SIGNAL("stateChanged(QProcess::ProcessState)"), self.calculixStateChanged)
Expand Down Expand Up @@ -113,7 +113,7 @@ def calculixError(self, error):
self.femConsoleMessage("CalculiX execute error: {}".format(error), "#FF0000")

def calculixStarted(self):
self.form.pushButton_generate.setText("Break Calculix")
self.form.pb_run_ccx.setText("Break Calculix")
print ("calculixStarted()")
print (self.Calculix.state())

Expand All @@ -137,7 +137,7 @@ def calculixFinished(self, exitCode):

self.femConsoleMessage("Calculix done!", "#00AA00")

self.form.pushButton_generate.setText("Re-run Calculix")
self.form.pb_run_ccx.setText("Re-run Calculix")
self.femConsoleMessage("Loading result sets...")
self.form.l_time.setText('Time: {0:4.1f}: '.format(time.time() - self.Start))
fea = FemTools()
Expand Down Expand Up @@ -187,7 +187,7 @@ def write_input_file_handler(self):
self.inp_file_name = fea.inp_file_name
self.femConsoleMessage("Write completed.")
self.form.pb_edit_inp.setEnabled(True)
self.form.pushButton_generate.setEnabled(True)
self.form.pb_run_ccx.setEnabled(True)
else:
self.femConsoleMessage("Write .inp file failed!", "#FF0000")
QApplication.restoreOverrideCursor()
Expand Down

0 comments on commit 6116231

Please sign in to comment.