COPASI API  4.16.103
CopasiFileDialog.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 // Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
7 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
8 // and The University of Manchester.
9 // All rights reserved.
10 
11 // Copyright (C) 2005 - 2007 by Pedro Mendes, Virginia Tech Intellectual
12 // Properties, Inc. and EML Research, gGmbH.
13 // All rights reserved.
14 
15 #ifndef COPASI_FILE_DIALOG
16 #define COPASI_FILE_DIALOG
17 
18 #include <QtGui/QFileDialog>
19 #include <QtCore/QString>
20 #include <QtCore/QDir>
21 
23 {
24 public:
25  static void openExampleDir();
26 
27  static QString getOpenFileName(QWidget * parent = 0,
28  const char * name = 0,
29  const QString & startWith = QString::null,
30  const QString & filter = QString::null,
31  const QString & caption = QString::null,
32  QString * pSelectedFilter = NULL,
33  QFileDialog::Options options = 0);
34 
35  static QString getSaveFileName(QWidget * parent = 0,
36  const char * name = 0,
37  const QString & startWith = QString::null,
38  const QString & filter = QString::null,
39  const QString & caption = QString::null,
40  QString * pSelectedFilter = NULL,
41  QFileDialog::Options options = 0);
42 private:
43  static QString StartWith(const QString & startWith);
44 };
45 
46 #endif
static void openExampleDir()
static QString StartWith(const QString &startWith)
static QString getOpenFileName(QWidget *parent=0, const char *name=0, const QString &startWith=QString::null, const QString &filter=QString::null, const QString &caption=QString::null, QString *pSelectedFilter=NULL, QFileDialog::Options options=0)
static QString getSaveFileName(QWidget *parent=0, const char *name=0, const QString &startWith=QString::null, const QString &filter=QString::null, const QString &caption=QString::null, QString *pSelectedFilter=NULL, QFileDialog::Options options=0)