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

#include <CQLayoutsWidget.h>

Inheritance diagram for CQLayoutsWidget:
CopasiTableWidget CopasiWidget

List of all members.

Public Member Functions

 CQLayoutsWidget (QWidget *parent, const char *name=0, Qt::WFlags f=0)
void deleteLayoutWindows ()

Protected Slots

void slotDoubleClicked (int row, int col, int m, const QPoint &n)
void slot_show (int row)

Protected Member Functions

virtual void updateHeaderUnits ()
virtual void init ()
virtual std::vector< const
CCopasiObject * > 
getObjects () const
virtual void tableLineFromObject (const CCopasiObject *obj, unsigned C_INT32 row)
virtual void tableLineToObject (unsigned C_INT32 row, CCopasiObject *obj)
virtual CCopasiObjectcreateNewObject (const std::string &name)
virtual void deleteObjects (const std::vector< std::string > &keys)
virtual void defaultTableLineContent (unsigned C_INT32 row, unsigned C_INT32 exc)
virtual QString defaultObjectName () const
virtual void valueChanged (unsigned C_INT32 row, unsigned C_INT32 col)

Protected Attributes

std::map< std::string,
CQLayoutMainWindow * > 
mLayoutWindowMap

Constructor & Destructor Documentation

CQLayoutsWidget::CQLayoutsWidget ( QWidget *  parent,
const char *  name = 0,
Qt::WFlags  f = 0 
) [inline]

Member Function Documentation

CCopasiObject * CQLayoutsWidget::createNewObject ( const std::string &  name) [protected, virtual]

creates a new object

Implements CopasiTableWidget.

QString CQLayoutsWidget::defaultObjectName ( ) const [protected, virtual]

the prefix that is used to construct new object names

Implements CopasiTableWidget.

void CQLayoutsWidget::defaultTableLineContent ( unsigned C_INT32  row,
unsigned C_INT32  exc 
) [protected, virtual]

this is used to fill a row of the table when a new object is added to the table. it fills only the data columns, not the name. It should not fill column exc.

Implements CopasiTableWidget.

void CQLayoutsWidget::deleteLayoutWindows ( )
void CQLayoutsWidget::deleteObjects ( const std::vector< std::string > &  keys) [protected, virtual]

deletes objects. Performs all additional tasks, like asking the user, ...

Implements CopasiTableWidget.

std::vector< const CCopasiObject * > CQLayoutsWidget::getObjects ( ) const [protected, virtual]

returns a list of objects that should be displayed

Implements CopasiTableWidget.

void CQLayoutsWidget::init ( ) [protected, virtual]

This initializes the widget

Implements CopasiTableWidget.

void CQLayoutsWidget::slot_show ( int  row) [protected, slot]
void CQLayoutsWidget::slotDoubleClicked ( int  row,
int  col,
int  m,
const QPoint &  n 
) [protected, virtual, slot]

Reimplemented from CopasiTableWidget.

void CQLayoutsWidget::tableLineFromObject ( const CCopasiObject obj,
unsigned C_INT32  row 
) [protected, virtual]

fills one table row with the data from one object

Implements CopasiTableWidget.

void CQLayoutsWidget::tableLineToObject ( unsigned C_INT32  row,
CCopasiObject obj 
) [protected, virtual]

reads the contents of one row of the table and writes it to the object

Implements CopasiTableWidget.

void CQLayoutsWidget::updateHeaderUnits ( ) [protected, virtual]

shows units for the quantities

Reimplemented from CopasiTableWidget.

void CQLayoutsWidget::valueChanged ( unsigned C_INT32  row,
unsigned C_INT32  col 
) [protected, virtual]

This method provides a hook for derived classes to act on changes in the table.

Parameters:
unsignedC_INT32 row
unsignedC_INT32 col

Reimplemented from CopasiTableWidget.


Member Data Documentation

std::map<std::string, CQLayoutMainWindow*> CQLayoutsWidget::mLayoutWindowMap [protected]

map that stores the layout windows for each layout.


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