COPASI API  4.16.103
CCopasiSelectionWidget.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) 2004 - 2007 by Pedro Mendes, Virginia Tech Intellectual
12 // Properties, Inc. and EML Research, gGmbH.
13 // All rights reserved.
14 
15 #ifndef CCopasiSelectionWidget_H__
16 #define CCopasiSelectionWidget_H__
17 
18 #include <vector>
19 
20 #include <QtGui/QStackedWidget>
21 
23 
25 class CModel;
26 class CCopasiObject;
27 
28 class CCopasiSelectionWidget: public QStackedWidget
29 {
30  Q_OBJECT
31 
32 public:
33  CCopasiSelectionWidget(QWidget* parent = 0);
35 
36  void populateTree(const CModel * model,
37  const CQSimpleSelectionTree::ObjectClasses & classes);
38  void setOutputVector(std::vector< const CCopasiObject * > * outputVector);
39  void setSingleSelection(bool singleSelection);
40  bool isSingleSelection() const;
41  void setExpertMode(bool expertMode);
42  bool expertMode() const;
43  void commit();
44 
45 protected:
48  std::vector< const CCopasiObject * > * mpOutputVector;
51 };
52 
53 #endif
std::vector< const CCopasiObject * > * mpOutputVector
void setExpertMode(bool expertMode)
CQSimpleSelectionTree * mpSimpleTree
void setSingleSelection(bool singleSelection)
void populateTree(const CModel *model, const CQSimpleSelectionTree::ObjectClasses &classes)
void setOutputVector(std::vector< const CCopasiObject * > *outputVector)
ObjectBrowserWidget * mpObjectBrowser
Definition: CModel.h:50
CCopasiSelectionWidget(QWidget *parent=0)