BioFunctional Designer
 All Classes Files Functions
Signals | Public Member Functions | Protected Member Functions | List of all members
DesignPanel Class Reference

the DesignPanel class, customed QListWidget More...

#include <designpanel.h>

Inheritance diagram for DesignPanel:

Signals

void relevantActived (QStringList *)
 
void infoActived (QString)
 

Public Member Functions

 DesignPanel (QWidget *parent=0)
 construction function More...
 
const QStringList & getBioBrickNames () const
 get all the biobricks More...
 
void insertBioBrick (int index, const QString &name)
 insert a BioBrick in certain position More...
 
void clean ()
 clean the design panel
 
void setRecommendBioBrick (QStringList biobricks)
 set the reommend biobricks More...
 
QImage * getResultImage (const QString &function)
 get the design result image More...
 
void rePaintPanel ()
 repaint the panel
 

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *event)
 
void dragMoveEvent (QDragMoveEvent *e)
 
void dropEvent (QDropEvent *event)
 
void mouseMoveEvent (QMouseEvent *e)
 
void mousePressEvent (QMouseEvent *event)
 
void keyPressEvent (QKeyEvent *event)
 

Detailed Description

the DesignPanel class, customed QListWidget

the design panel is where the user do the design

Constructor & Destructor Documentation

DesignPanel::DesignPanel ( QWidget *  parent = 0)
explicit

construction function

Parameters
parentthe parent widget

Member Function Documentation

const QStringList & DesignPanel::getBioBrickNames ( ) const

get all the biobricks

Returns
all the biobricks in the design panel
QImage * DesignPanel::getResultImage ( const QString &  function)

get the design result image

Parameters
functionthe function about the design
Returns
the result image
void DesignPanel::insertBioBrick ( int  index,
const QString &  name 
)

insert a BioBrick in certain position

Parameters
indexposition to insert
nameinformaiton for the biobrick to be inserted
void DesignPanel::setRecommendBioBrick ( QStringList  biobricks)

set the reommend biobricks

Parameters
biobricksthe recommend biobrick list

The documentation for this class was generated from the following files: