copasi API  0.1
Public Member Functions | Static Public Member Functions | Protected Slots | Protected Attributes
CCopasiSelectionDialog Class Reference

#include <CCopasiSelectionDialog.h>

List of all members.

Public Member Functions

 CCopasiSelectionDialog (QWidget *parent=0, const char *name=0, bool modal=false)
 ~CCopasiSelectionDialog ()
void setOutputVector (std::vector< const CCopasiObject * > *outputVector)
void setModel (const CModel *model, const CCopasiSimpleSelectionTree::ObjectClasses &classes)
void setSingleSelection (bool singleSelectionMode)
void enableExpertMode (bool enable)

Static Public Member Functions

static const CCopasiObjectgetObjectSingle (QWidget *pParent, const CCopasiSimpleSelectionTree::ObjectClasses &classes, const CCopasiObject *pCurrentObject=NULL)
static std::vector< const
CCopasiObject * > 
getObjectVector (QWidget *pParent, const CCopasiSimpleSelectionTree::ObjectClasses &classes, const std::vector< const CCopasiObject * > *pCurrentSelection=NULL)
static std::vector< const
CCopasiObject * > 
chooseCellMatrix (const CArrayAnnotation *pArrayAnnotation, bool single, bool value, std::string caption="")

Protected Slots

void okButton_clicked ()
void cancelButton_clicked ()
void modeButton_toggled (bool checked)

Protected Attributes

QPushButton * mpOKButton
QPushButton * mpCancelButton
QCheckBox * mpModeCheckBox
Q3HBoxLayout * mpButtonBox
QWidget * mpMainWidget
CCopasiSelectionWidgetmpSelectionWidget
Q3VBoxLayout * mpMainLayout
std::vector< const
CCopasiObject * > * 
mpTmpVector
std::vector< const
CCopasiObject * > * 
mpOutputVector
bool mExpertMode
bool mExpertModeEnabled

Constructor & Destructor Documentation

CCopasiSelectionDialog::CCopasiSelectionDialog ( QWidget *  parent = 0,
const char *  name = 0,
bool  modal = false 
)
CCopasiSelectionDialog::~CCopasiSelectionDialog ( )

Member Function Documentation

void CCopasiSelectionDialog::cancelButton_clicked ( ) [protected, slot]
std::vector< const CCopasiObject * > CCopasiSelectionDialog::chooseCellMatrix ( const CArrayAnnotation pArrayAnnotation,
bool  single,
bool  value,
std::string  caption = "" 
) [static]

single=true means only one object can be returned (in the first element of the return vector) when single=true and the dialog is canceled the return vector will have size=1 and contain the NULL pointer. when single=false and the dialog is canceled the return vector will be empty. value=true means only objects that have a value (i.e. arrayElementReferences) are allowed. otherwise also the whole array annotation may be returned.

void CCopasiSelectionDialog::enableExpertMode ( bool  enable)
const CCopasiObject * CCopasiSelectionDialog::getObjectSingle ( QWidget *  pParent,
const CCopasiSimpleSelectionTree::ObjectClasses classes,
const CCopasiObject pCurrentObject = NULL 
) [static]
std::vector< const CCopasiObject * > CCopasiSelectionDialog::getObjectVector ( QWidget *  pParent,
const CCopasiSimpleSelectionTree::ObjectClasses classes,
const std::vector< const CCopasiObject * > *  pCurrentSelection = NULL 
) [static]
void CCopasiSelectionDialog::modeButton_toggled ( bool  checked) [protected, slot]
void CCopasiSelectionDialog::okButton_clicked ( ) [protected, slot]
void CCopasiSelectionDialog::setModel ( const CModel model,
const CCopasiSimpleSelectionTree::ObjectClasses classes 
)
void CCopasiSelectionDialog::setOutputVector ( std::vector< const CCopasiObject * > *  outputVector)
void CCopasiSelectionDialog::setSingleSelection ( bool  singleSelectionMode)

Member Data Documentation

Q3HBoxLayout* CCopasiSelectionDialog::mpButtonBox [protected]
QPushButton* CCopasiSelectionDialog::mpCancelButton [protected]
Q3VBoxLayout* CCopasiSelectionDialog::mpMainLayout [protected]
QPushButton* CCopasiSelectionDialog::mpOKButton [protected]
std::vector<const CCopasiObject * >* CCopasiSelectionDialog::mpOutputVector [protected]
std::vector<const CCopasiObject * >* CCopasiSelectionDialog::mpTmpVector [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines