copasi API
0.1
|
#include <SensWidgetComboBox.h>
Public Member Functions | |
SensWidgetComboBox (QWidget *parent=0, const char *name=0) | |
void | fillFromList (const std::vector< CObjectLists::ListType > &list) |
CObjectLists::ListType | getCurrentObjectList () const |
bool | setCurrentObjectList (CObjectLists::ListType lt) |
Protected Attributes | |
std::vector < CObjectLists::ListType > | mIndexTable |
This class handles a combo box to choose from lists of object lists
SensWidgetComboBox::SensWidgetComboBox | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
void SensWidgetComboBox::fillFromList | ( | const std::vector< CObjectLists::ListType > & | list | ) |
this fills the combobox with a new list of entries. If the old current value is still allowed in the new list, it is set. Otherwise the box shows the first item.
CObjectLists::ListType SensWidgetComboBox::getCurrentObjectList | ( | ) | const |
bool SensWidgetComboBox::setCurrentObjectList | ( | CObjectLists::ListType | lt | ) |
set current selection (if possible). It returns true if the operation was succesful.
std::vector<CObjectLists::ListType> SensWidgetComboBox::mIndexTable [protected] |