COPASI API  4.16.103
CQStartValueReset.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQStartValueReset.cpp,v $
3 // $Revision: 1.7 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/09/30 16:39:42 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 #include "CQStartValueReset.h"
15 
16 #include <QtCore/QVariant>
17 
18 /*
19  * Constructs a CQStartValueReset as a child of 'parent', with the
20  * name 'name' and widget flags set to 'f'.
21  *
22  * The dialog will by default be modeless, unless you set 'modal' to
23  * true to construct a modal dialog.
24  */
25 CQStartValueReset::CQStartValueReset(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
26  : QDialog(parent, fl)
27 {
28  setObjectName(QString::fromUtf8(name));
29  setModal(modal);
30  setupUi(this);
31 }
32 
33 /*
34  * Destroys the object and frees any allocated resources
35  */
37 {
38  // no need to delete child widgets, Qt does it all for us
39 }
40 
42 {
43  done(MODEL);
44 }
45 
47 {
48  done(RANDOM);
49 }
50 
52 {
53  done(SOLUTION);
54 }
CQStartValueReset(QWidget *parent=0, const char *name=0, bool modal=false, Qt::WindowFlags fl=0)
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)