COPASI API  4.16.103
SensWidgetComboBox.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/SensWidgetComboBox.h,v $
3 // $Revision: 1.3 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/12/22 19:51:58 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
16 // and The University of Manchester.
17 // All rights reserved.
18 
19 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
20 // Properties, Inc. and EML Research, gGmbH.
21 // All rights reserved.
22 
23 #ifndef SENSWIDGETCOMBOBOX_H
24 #define SENSWIDGETCOMBOBOX_H
25 
26 #include <QtGui/QComboBox>
27 
28 #include <vector>
29 
30 #include "copasi/copasi.h"
32 
33 /**
34  * This class handles a combobox to choose from lists of object lists
35  */
36 class SensWidgetComboBox : public QComboBox
37 {
38  Q_OBJECT
39 
40 public:
41 
42  SensWidgetComboBox(QWidget * parent = 0, const char * name = 0);
43 
44  /**
45  * this fills the combobox with a new list of entries. If the
46  * old current value is still allowed in the new list, it is set.
47  * Otherwise the box shows the first item.
48  */
49  void fillFromList(const std::vector<CObjectLists::ListType> & list);
50 
52 
53  /**
54  * set current selection (if possible). It returns true
55  * if the operation was successful.
56  */
58 
59 protected:
60 
61  std::vector<CObjectLists::ListType> mIndexTable;
62 };
63 
64 #endif // SENSWIDGETCOMBOBOX_H
std::vector< CObjectLists::ListType > mIndexTable
CObjectLists::ListType getCurrentObjectList() const
void fillFromList(const std::vector< CObjectLists::ListType > &list)
bool setCurrentObjectList(CObjectLists::ListType lt)
SensWidgetComboBox(QWidget *parent=0, const char *name=0)