| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<ui version="4.0"> |
| 3 |
<class>MainWindow</class> |
| 4 |
<widget class="QMainWindow" name="MainWindow"> |
| 5 |
<property name="geometry"> |
| 6 |
<rect> |
| 7 |
<x>0</x> |
| 8 |
<y>0</y> |
| 9 |
<width>800</width> |
| 10 |
<height>643</height> |
| 11 |
</rect> |
| 12 |
</property> |
| 13 |
<property name="windowTitle"> |
| 14 |
<string>MPSolve</string> |
| 15 |
</property> |
| 16 |
<property name="windowIcon"> |
| 17 |
<iconset resource="resources.qrc"> |
| 18 |
<normaloff>:/images/xmpsolve.png</normaloff>:/images/xmpsolve.png</iconset> |
| 19 |
</property> |
| 20 |
<widget class="QWidget" name="centralWidget"> |
| 21 |
<layout class="QVBoxLayout" name="verticalLayout_9"> |
| 22 |
<item> |
| 23 |
<layout class="QVBoxLayout" name="verticalLayout_7"/> |
| 24 |
</item> |
| 25 |
<item> |
| 26 |
<widget class="QTabWidget" name="tabWidget"> |
| 27 |
<property name="sizePolicy"> |
| 28 |
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"> |
| 29 |
<horstretch>0</horstretch> |
| 30 |
<verstretch>0</verstretch> |
| 31 |
</sizepolicy> |
| 32 |
</property> |
| 33 |
<property name="currentIndex"> |
| 34 |
<number>0</number> |
| 35 |
</property> |
| 36 |
<widget class="QWidget" name="tab"> |
| 37 |
<attribute name="title"> |
| 38 |
<string>Manual input</string> |
| 39 |
</attribute> |
| 40 |
<layout class="QVBoxLayout" name="verticalLayout"> |
| 41 |
<item> |
| 42 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
| 43 |
<item> |
| 44 |
<widget class="QLabel" name="label"> |
| 45 |
<property name="sizePolicy"> |
| 46 |
<sizepolicy hsizetype="Preferred" vsizetype="Minimum"> |
| 47 |
<horstretch>0</horstretch> |
| 48 |
<verstretch>0</verstretch> |
| 49 |
</sizepolicy> |
| 50 |
</property> |
| 51 |
<property name="text"> |
| 52 |
<string><html><head/><body><p>Insert polynomial here:</p><p><span style=" font-size:8pt; font-weight:600;">Note:</span><span style=" font-size:8pt;"> use 'x' as indeterminate, <br/>and (a +yi) for complex numbers.</span></p><p><span style=" font-size:8pt;">Example: -2*x + (1 + 3/2i)*x^2 +1.6e2</span></p></body></html></string> |
| 53 |
</property> |
| 54 |
<property name="alignment"> |
| 55 |
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> |
| 56 |
</property> |
| 57 |
</widget> |
| 58 |
</item> |
| 59 |
<item> |
| 60 |
<widget class="QPlainTextEdit" name="polyLineEdit"> |
| 61 |
<property name="sizePolicy"> |
| 62 |
<sizepolicy hsizetype="Expanding" vsizetype="Minimum"> |
| 63 |
<horstretch>0</horstretch> |
| 64 |
<verstretch>0</verstretch> |
| 65 |
</sizepolicy> |
| 66 |
</property> |
| 67 |
</widget> |
| 68 |
</item> |
| 69 |
</layout> |
| 70 |
</item> |
| 71 |
<item> |
| 72 |
<layout class="QHBoxLayout" name="horizontalLayout_3"> |
| 73 |
<item> |
| 74 |
<widget class="QPushButton" name="openPolFileButton"> |
| 75 |
<property name="sizePolicy"> |
| 76 |
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> |
| 77 |
<horstretch>0</horstretch> |
| 78 |
<verstretch>0</verstretch> |
| 79 |
</sizepolicy> |
| 80 |
</property> |
| 81 |
<property name="text"> |
| 82 |
<string>Open .pol file</string> |
| 83 |
</property> |
| 84 |
</widget> |
| 85 |
</item> |
| 86 |
<item> |
| 87 |
<widget class="QPushButton" name="solveButton"> |
| 88 |
<property name="sizePolicy"> |
| 89 |
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> |
| 90 |
<horstretch>0</horstretch> |
| 91 |
<verstretch>0</verstretch> |
| 92 |
</sizepolicy> |
| 93 |
</property> |
| 94 |
<property name="text"> |
| 95 |
<string>Solve</string> |
| 96 |
</property> |
| 97 |
</widget> |
| 98 |
</item> |
| 99 |
</layout> |
| 100 |
</item> |
| 101 |
</layout> |
| 102 |
</widget> |
| 103 |
<widget class="QWidget" name="tab_3"> |
| 104 |
<attribute name="title"> |
| 105 |
<string>Advanced options</string> |
| 106 |
</attribute> |
| 107 |
<layout class="QHBoxLayout" name="horizontalLayout_4"> |
| 108 |
<item> |
| 109 |
<layout class="QGridLayout" name="gridLayout"> |
| 110 |
<item row="0" column="0"> |
| 111 |
<widget class="QLabel" name="label_2"> |
| 112 |
<property name="text"> |
| 113 |
<string>Required digits:</string> |
| 114 |
</property> |
| 115 |
</widget> |
| 116 |
</item> |
| 117 |
<item row="0" column="1"> |
| 118 |
<widget class="QSpinBox" name="digitsSpinBox"> |
| 119 |
<property name="minimum"> |
| 120 |
<number>1</number> |
| 121 |
</property> |
| 122 |
<property name="maximum"> |
| 123 |
<number>99999</number> |
| 124 |
</property> |
| 125 |
<property name="value"> |
| 126 |
<number>10</number> |
| 127 |
</property> |
| 128 |
</widget> |
| 129 |
</item> |
| 130 |
<item row="1" column="1"> |
| 131 |
<widget class="QComboBox" name="algorithmComboBox"> |
| 132 |
<item> |
| 133 |
<property name="text"> |
| 134 |
<string notr="true">Secsolve</string> |
| 135 |
</property> |
| 136 |
</item> |
| 137 |
<item> |
| 138 |
<property name="text"> |
| 139 |
<string notr="true">Unisolve</string> |
| 140 |
</property> |
| 141 |
</item> |
| 142 |
</widget> |
| 143 |
</item> |
| 144 |
<item row="1" column="0"> |
| 145 |
<widget class="QLabel" name="label_3"> |
| 146 |
<property name="text"> |
| 147 |
<string>Algorithm:</string> |
| 148 |
</property> |
| 149 |
</widget> |
| 150 |
</item> |
| 151 |
<item row="4" column="0"> |
| 152 |
<spacer name="verticalSpacer"> |
| 153 |
<property name="orientation"> |
| 154 |
<enum>Qt::Vertical</enum> |
| 155 |
</property> |
| 156 |
<property name="sizeHint" stdset="0"> |
| 157 |
<size> |
| 158 |
<width>20</width> |
| 159 |
<height>40</height> |
| 160 |
</size> |
| 161 |
</property> |
| 162 |
</spacer> |
| 163 |
</item> |
| 164 |
<item row="2" column="0"> |
| 165 |
<widget class="QLabel" name="label_5"> |
| 166 |
<property name="text"> |
| 167 |
<string>Polynomial basis</string> |
| 168 |
</property> |
| 169 |
</widget> |
| 170 |
</item> |
| 171 |
<item row="2" column="1"> |
| 172 |
<widget class="QComboBox" name="basisComboBox"> |
| 173 |
<property name="currentIndex"> |
| 174 |
<number>0</number> |
| 175 |
</property> |
| 176 |
<item> |
| 177 |
<property name="text"> |
| 178 |
<string>Monomial</string> |
| 179 |
</property> |
| 180 |
</item> |
| 181 |
<item> |
| 182 |
<property name="text"> |
| 183 |
<string>Chebyshev</string> |
| 184 |
</property> |
| 185 |
</item> |
| 186 |
</widget> |
| 187 |
</item> |
| 188 |
<item row="3" column="0"> |
| 189 |
<widget class="QLabel" name="label_4"> |
| 190 |
<property name="text"> |
| 191 |
<string>Approximation goal</string> |
| 192 |
</property> |
| 193 |
</widget> |
| 194 |
</item> |
| 195 |
<item row="3" column="1"> |
| 196 |
<widget class="QComboBox" name="goalComboBox"> |
| 197 |
<item> |
| 198 |
<property name="text"> |
| 199 |
<string>Isolate</string> |
| 200 |
</property> |
| 201 |
</item> |
| 202 |
<item> |
| 203 |
<property name="text"> |
| 204 |
<string>Approximate</string> |
| 205 |
</property> |
| 206 |
</item> |
| 207 |
</widget> |
| 208 |
</item> |
| 209 |
</layout> |
| 210 |
</item> |
| 211 |
</layout> |
| 212 |
</widget> |
| 213 |
</widget> |
| 214 |
</item> |
| 215 |
<item> |
| 216 |
<widget class="QSplitter" name="splitter"> |
| 217 |
<property name="orientation"> |
| 218 |
<enum>Qt::Horizontal</enum> |
| 219 |
</property> |
| 220 |
<widget class="QWidget" name="verticalLayoutWidget_2"> |
| 221 |
<layout class="QVBoxLayout" name="verticalLayout_2"> |
| 222 |
<item> |
| 223 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
| 224 |
<item> |
| 225 |
<widget class="QPushButton" name="zoomInButton"> |
| 226 |
<property name="text"> |
| 227 |
<string>Zoom In</string> |
| 228 |
</property> |
| 229 |
</widget> |
| 230 |
</item> |
| 231 |
<item> |
| 232 |
<widget class="QPushButton" name="zoomOutButton"> |
| 233 |
<property name="text"> |
| 234 |
<string>Zoom Out</string> |
| 235 |
</property> |
| 236 |
</widget> |
| 237 |
</item> |
| 238 |
<item> |
| 239 |
<spacer name="horizontalSpacer"> |
| 240 |
<property name="orientation"> |
| 241 |
<enum>Qt::Horizontal</enum> |
| 242 |
</property> |
| 243 |
<property name="sizeHint" stdset="0"> |
| 244 |
<size> |
| 245 |
<width>40</width> |
| 246 |
<height>20</height> |
| 247 |
</size> |
| 248 |
</property> |
| 249 |
</spacer> |
| 250 |
</item> |
| 251 |
</layout> |
| 252 |
</item> |
| 253 |
<item> |
| 254 |
<widget class="xmpsolve::QRootsRenderer" name="graphicsView" native="true"> |
| 255 |
<property name="sizePolicy"> |
| 256 |
<sizepolicy hsizetype="Preferred" vsizetype="Expanding"> |
| 257 |
<horstretch>0</horstretch> |
| 258 |
<verstretch>0</verstretch> |
| 259 |
</sizepolicy> |
| 260 |
</property> |
| 261 |
</widget> |
| 262 |
</item> |
| 263 |
</layout> |
| 264 |
</widget> |
| 265 |
<widget class="QWidget" name="layoutWidget"> |
| 266 |
<layout class="QVBoxLayout" name="verticalLayout_4"> |
| 267 |
<item> |
| 268 |
<widget class="QListView" name="listRootsView"> |
| 269 |
<property name="sizePolicy"> |
| 270 |
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> |
| 271 |
<horstretch>0</horstretch> |
| 272 |
<verstretch>0</verstretch> |
| 273 |
</sizepolicy> |
| 274 |
</property> |
| 275 |
<property name="minimumSize"> |
| 276 |
<size> |
| 277 |
<width>350</width> |
| 278 |
<height>0</height> |
| 279 |
</size> |
| 280 |
</property> |
| 281 |
</widget> |
| 282 |
</item> |
| 283 |
<item> |
| 284 |
<layout class="QGridLayout" name="gridLayout_3"> |
| 285 |
<item row="0" column="0"> |
| 286 |
<widget class="QLabel" name="label_7"> |
| 287 |
<property name="text"> |
| 288 |
<string>Approximation:</string> |
| 289 |
</property> |
| 290 |
</widget> |
| 291 |
</item> |
| 292 |
<item row="0" column="1"> |
| 293 |
<widget class="QLabel" name="approximationDetailLabel"> |
| 294 |
<property name="text"> |
| 295 |
<string>0.0</string> |
| 296 |
</property> |
| 297 |
</widget> |
| 298 |
</item> |
| 299 |
<item row="1" column="0"> |
| 300 |
<widget class="QLabel" name="label_8"> |
| 301 |
<property name="text"> |
| 302 |
<string>Radius:</string> |
| 303 |
</property> |
| 304 |
</widget> |
| 305 |
</item> |
| 306 |
<item row="1" column="1"> |
| 307 |
<widget class="QLabel" name="approximationRadiusLabel"> |
| 308 |
<property name="text"> |
| 309 |
<string>0.0</string> |
| 310 |
</property> |
| 311 |
</widget> |
| 312 |
</item> |
| 313 |
<item row="2" column="0"> |
| 314 |
<widget class="QLabel" name="label_9"> |
| 315 |
<property name="text"> |
| 316 |
<string>Status:</string> |
| 317 |
</property> |
| 318 |
</widget> |
| 319 |
</item> |
| 320 |
<item row="2" column="1"> |
| 321 |
<widget class="QLabel" name="approximationStatusLabel"> |
| 322 |
<property name="text"> |
| 323 |
<string>Unknown</string> |
| 324 |
</property> |
| 325 |
</widget> |
| 326 |
</item> |
| 327 |
</layout> |
| 328 |
</item> |
| 329 |
</layout> |
| 330 |
</widget> |
| 331 |
</widget> |
| 332 |
</item> |
| 333 |
</layout> |
| 334 |
</widget> |
| 335 |
<widget class="QMenuBar" name="menuBar"> |
| 336 |
<property name="geometry"> |
| 337 |
<rect> |
| 338 |
<x>0</x> |
| 339 |
<y>0</y> |
| 340 |
<width>800</width> |
| 341 |
<height>26</height> |
| 342 |
</rect> |
| 343 |
</property> |
| 344 |
<widget class="QMenu" name="menuFile"> |
| 345 |
<property name="title"> |
| 346 |
<string>&File</string> |
| 347 |
</property> |
| 348 |
<addaction name="actionOpen_pol_file"/> |
| 349 |
<addaction name="actionOpen_editor"/> |
| 350 |
<addaction name="actionAbort_computations"/> |
| 351 |
<addaction name="separator"/> |
| 352 |
<addaction name="actionQuit"/> |
| 353 |
</widget> |
| 354 |
<widget class="QMenu" name="menuHelp"> |
| 355 |
<property name="title"> |
| 356 |
<string>&Help</string> |
| 357 |
</property> |
| 358 |
<addaction name="actionAbout_MPSolve"/> |
| 359 |
</widget> |
| 360 |
<addaction name="menuFile"/> |
| 361 |
<addaction name="menuHelp"/> |
| 362 |
</widget> |
| 363 |
<widget class="QStatusBar" name="statusBar"/> |
| 364 |
<action name="actionOpen_pol_file"> |
| 365 |
<property name="text"> |
| 366 |
<string>&Open .pol file</string> |
| 367 |
</property> |
| 368 |
</action> |
| 369 |
<action name="actionQuit"> |
| 370 |
<property name="text"> |
| 371 |
<string>&Quit</string> |
| 372 |
</property> |
| 373 |
</action> |
| 374 |
<action name="actionAbout_MPSolve"> |
| 375 |
<property name="text"> |
| 376 |
<string>&About MPSolve</string> |
| 377 |
</property> |
| 378 |
</action> |
| 379 |
<action name="actionOpen_editor"> |
| 380 |
<property name="text"> |
| 381 |
<string>Open &editor</string> |
| 382 |
</property> |
| 383 |
</action> |
| 384 |
<action name="actionAbort_computations"> |
| 385 |
<property name="text"> |
| 386 |
<string>&Abort current computations</string> |
| 387 |
</property> |
| 388 |
</action> |
| 389 |
</widget> |
| 390 |
<layoutdefault spacing="6" margin="11"/> |
| 391 |
<customwidgets> |
| 392 |
<customwidget> |
| 393 |
<class>xmpsolve::QRootsRenderer</class> |
| 394 |
<extends>QWidget</extends> |
| 395 |
<header location="global">qrootsrenderer.h</header> |
| 396 |
<container>1</container> |
| 397 |
</customwidget> |
| 398 |
</customwidgets> |
| 399 |
<resources> |
| 400 |
<include location="resources.qrc"/> |
| 401 |
</resources> |
| 402 |
<connections/> |
| 403 |
</ui> |