1 /* Copyright (c) 2015 Gerald Knizia 2 * 3 * This file is part of the IboView program (see: http://www.iboview.org) 4 * 5 * IboView is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, version 3. 8 * 9 * IboView is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with bfint (LICENSE). If not, see http://www.gnu.org/licenses/ 16 * 17 * Please see IboView documentation in README.txt for: 18 * -- A list of included external software and their licenses. The included 19 * external software's copyright is not touched by this agreement. 20 * -- Notes on re-distribution and contributions to/further development of 21 * the IboView software 22 */ 23 24 #ifndef IV_COMPUTE_WF_FORM 25 #define IV_COMPUTE_WF_FORM 26 27 #include <QDialog> 28 #include <QCloseEvent> 29 #include "IvStatusBar.h" 30 31 namespace Ui{ 32 class ComputeWfForm; 33 } 34 35 class FDocument; 36 37 class FComputeWfForm : public QDialog 38 { 39 Q_OBJECT 40 41 Ui::ComputeWfForm *ui; 42 FDocument 43 *m_pDocument; 44 public: 45 explicit FComputeWfForm(FDocument *document, QWidget *parent=0); 46 ~FComputeWfForm(); 47 48 bool GetRunScf() const; 49 bool GetRunIbba() const; 50 bool IsMemoryOkay() const; 51 public slots: 52 void ToggleScfPage(bool Checked); 53 void ToggleIbbaPage(bool Checked); 54 void RecomputeMemory(); 55 // protected: 56 // void closeEvent(QCloseEvent *event); // override 57 protected: 58 void CheckEcps(); 59 void SetMemoryText(QString s, FStatusClass Class); 60 bool 61 m_bMemoryOkay, 62 m_bOtherError; 63 }; 64 65 66 #endif // IV_COMPUTE_WF_FORM 67