COPASI API
4.16.103
Main Page
Namespaces
Classes
Files
File List
File Members
copasi
UI
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
"
31
#include "
copasi/sensitivities/CSensProblem.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
51
CObjectLists::ListType
getCurrentObjectList
()
const
;
52
53
/**
54
* set current selection (if possible). It returns true
55
* if the operation was successful.
56
*/
57
bool
setCurrentObjectList
(
CObjectLists::ListType
lt);
58
59
protected
:
60
61
std::vector<CObjectLists::ListType>
mIndexTable
;
62
};
63
64
#endif // SENSWIDGETCOMBOBOX_H
SensWidgetComboBox::mIndexTable
std::vector< CObjectLists::ListType > mIndexTable
Definition:
SensWidgetComboBox.h:61
SensWidgetComboBox
Definition:
SensWidgetComboBox.h:36
SensWidgetComboBox::getCurrentObjectList
CObjectLists::ListType getCurrentObjectList() const
Definition:
SensWidgetComboBox.cpp:58
copasi.h
CObjectLists::ListType
ListType
Definition:
CObjectLists.h:38
SensWidgetComboBox::fillFromList
void fillFromList(const std::vector< CObjectLists::ListType > &list)
Definition:
SensWidgetComboBox.cpp:39
SensWidgetComboBox::setCurrentObjectList
bool setCurrentObjectList(CObjectLists::ListType lt)
Definition:
SensWidgetComboBox.cpp:68
SensWidgetComboBox::SensWidgetComboBox
SensWidgetComboBox(QWidget *parent=0, const char *name=0)
Definition:
SensWidgetComboBox.cpp:33
CSensProblem.h
Generated on Thu Jul 2 2015 14:50:46 for COPASI API by
1.8.6