From 05e87e51886d9e0c7bd6706a3c49f7d0a97c222e Mon Sep 17 00:00:00 2001 From: Samuel Jones <samjones714@gmail.com> Date: Mon, 24 Sep 2018 16:25:56 +0100 Subject: [PATCH] Re #23494 Clang-format --- MantidPlot/src/ProjectRecovery.cpp | 2 +- .../src/RecoveryGUIs/ProjectRecoveryWidget.ui | 182 ++++++++++++++++++ 2 files changed, 183 insertions(+), 1 deletion(-) create mode 100644 MantidPlot/src/RecoveryGUIs/ProjectRecoveryWidget.ui diff --git a/MantidPlot/src/ProjectRecovery.cpp b/MantidPlot/src/ProjectRecovery.cpp index 33617967acd..98a1f8c54e4 100644 --- a/MantidPlot/src/ProjectRecovery.cpp +++ b/MantidPlot/src/ProjectRecovery.cpp @@ -716,7 +716,7 @@ void ProjectRecovery::saveAll(bool autoSave) { g_log.debug("Project Recovery: Saving finished"); } -std::string ProjectRecovery::getRecoveryFolderOutputPR(){ +std::string ProjectRecovery::getRecoveryFolderOutputPR() { return getRecoveryFolderOutput(); } } // namespace MantidQt diff --git a/MantidPlot/src/RecoveryGUIs/ProjectRecoveryWidget.ui b/MantidPlot/src/RecoveryGUIs/ProjectRecoveryWidget.ui new file mode 100644 index 00000000000..5a8cef06c7d --- /dev/null +++ b/MantidPlot/src/RecoveryGUIs/ProjectRecoveryWidget.ui @@ -0,0 +1,182 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>Widget</class> + <widget class="QWidget" name="Widget"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>465</width> + <height>196</height> + </rect> + </property> + <property name="windowTitle"> + <string>Widget</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>It looks like Mantid has crashed recently. There is a recovery checkpoint available would you like to try it?</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + <item alignment="Qt::AlignVCenter"> + <widget class="QTableWidget" name="tableWidget"> + <property name="wordWrap"> + <bool>true</bool> + </property> + <column> + <property name="text"> + <string>Checkpoint Time and Date</string> + </property> + </column> + <column> + <property name="text"> + <string>Length of Recovery Script</string> + </property> + </column> + </widget> + </item> + <item> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="yesButton"> + <property name="text"> + <string>Yes</string> + </property> + <attribute name="buttonGroup"> + <string notr="true">buttonGroup</string> + </attribute> + </widget> + </item> + <item> + <widget class="QPushButton" name="scriptWindowButton"> + <property name="text"> + <string>Just open in script window</string> + </property> + <attribute name="buttonGroup"> + <string notr="true">buttonGroup</string> + </attribute> + </widget> + </item> + <item> + <widget class="QPushButton" name="startmantidButton"> + <property name="text"> + <string>Start mantid normally</string> + </property> + <attribute name="buttonGroup"> + <string notr="true">buttonGroup</string> + </attribute> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <layoutdefault spacing="6" margin="11"/> + <resources/> + <connections> + <connection> + <sender>yesButton</sender> + <signal>clicked()</signal> + <receiver>Widget</receiver> + <slot>onClickLastCheckpoint()</slot> + <hints> + <hint type="sourcelabel"> + <x>51</x> + <y>185</y> + </hint> + <hint type="destinationlabel"> + <x>11</x> + <y>161</y> + </hint> + </hints> + </connection> + <connection> + <sender>scriptWindowButton</sender> + <signal>clicked()</signal> + <receiver>Widget</receiver> + <slot>onClickOpenLastInScriptWindow()</slot> + <hints> + <hint type="sourcelabel"> + <x>204</x> + <y>185</y> + </hint> + <hint type="destinationlabel"> + <x>165</x> + <y>195</y> + </hint> + </hints> + </connection> + <connection> + <sender>startmantidButton</sender> + <signal>clicked()</signal> + <receiver>Widget</receiver> + <slot>onClickStartMantidNormally()</slot> + <hints> + <hint type="sourcelabel"> + <x>335</x> + <y>185</y> + </hint> + <hint type="destinationlabel"> + <x>291</x> + <y>195</y> + </hint> + </hints> + </connection> + </connections> + <slots> + <slot>onClickLastCheckpoint()</slot> + <slot>onClickOpenLastInScriptWindow()</slot> + <slot>onClickStartMantidNormally()</slot> + </slots> + <buttongroups> + <buttongroup name="buttonGroup"/> + </buttongroups> +</ui> -- GitLab