copasi API
0.1
|
00001 // Begin CVS Header 00002 // $Source: /fs/turing/cvs/copasi_dev/copasi/UI/qtUtilities.h,v $ 00003 // $Revision: 1.11 $ 00004 // $Name: Build-33 $ 00005 // $Author: shoops $ 00006 // $Date: 2009/01/08 16:07:44 $ 00007 // End CVS Header 00008 00009 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual 00010 // Properties, Inc., EML Research, gGmbH, University of Heidelberg, 00011 // and The University of Manchester. 00012 // All rights reserved. 00013 00014 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual 00015 // Properties, Inc. and EML Research, gGmbH. 00016 // All rights reserved. 00017 00018 #ifndef COPASI_qtUtilities 00019 #define COPASI_qtUtilities 00020 00021 #include <qstring.h> 00022 #include "utilities/CCopasiParameter.h" 00023 00024 class QStringList; 00025 class CCopasiParameterGroup; 00026 00034 QString getParameterValue(const CCopasiParameterGroup * group, 00035 const unsigned C_INT32 & index, 00036 CCopasiParameter::Type * type = NULL); 00044 QString getParameterValue(const CCopasiParameterGroup * group, 00045 const std::string & name, 00046 CCopasiParameter::Type * type = NULL); 00056 bool setParameterValue(CCopasiParameterGroup * group, 00057 const unsigned C_INT32 & index, 00058 const QString & value); 00059 00069 bool setParameterValue(CCopasiParameterGroup * group, 00070 const std::string & name, 00071 const QString & value); 00072 00076 #define FROM_UTF8(__x) QString::fromUtf8((__x).c_str()) 00077 #define TO_UTF8(__x) (__x).toUtf8().data() 00078 00087 C_INT32 checkSelection(const QString & file); 00088 00092 void vectorOfStrings2QStringList(std::vector<std::string> vs, QStringList & qsl); 00093 00094 #endif // COPASI_qtUtilities