COPASI API  4.16.103
Public Member Functions | Protected Slots | Private Attributes | List of all members
CQNameSelectionDialog Class Reference

#include <CQNameSelectionDialog.h>

Inheritance diagram for CQNameSelectionDialog:
Inheritance graph
[legend]
Collaboration diagram for CQNameSelectionDialog:
Collaboration graph
[legend]

Public Member Functions

 CQNameSelectionDialog (QWidget *parent=0, Qt::WindowFlags f=0)
 
const QString & getSelection () const
 
void setSelectionList (const QStringList &selectionList)
 
virtual ~CQNameSelectionDialog ()
 

Protected Slots

virtual void accept ()
 

Private Attributes

QString mSelection
 

Detailed Description

Definition at line 15 of file CQNameSelectionDialog.h.

Constructor & Destructor Documentation

CQNameSelectionDialog::CQNameSelectionDialog ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Definition at line 8 of file CQNameSelectionDialog.cpp.

8  :
9  QDialog(parent, f),
10  mSelection()
11 {
12  setupUi(this);
13 }
CQNameSelectionDialog::~CQNameSelectionDialog ( )
virtual

Definition at line 16 of file CQNameSelectionDialog.cpp.

17 {}

Member Function Documentation

void CQNameSelectionDialog::accept ( )
protectedvirtualslot

Definition at line 30 of file CQNameSelectionDialog.cpp.

References mSelection.

31 {
32  mSelection = mpSelectionBox->currentText();
33 
34  QDialog::accept();
35 }
const QString & CQNameSelectionDialog::getSelection ( ) const
void CQNameSelectionDialog::setSelectionList ( const QStringList &  selectionList)

Definition at line 19 of file CQNameSelectionDialog.cpp.

Referenced by CQSpeciesDetail::copy(), ReactionsWidget1::copy(), CQParameterOverviewWidget::slotBtnNew(), and CQParameterOverviewWidget::slotBtnSaveAs().

20 {
21  mpSelectionBox->addItems(selectionList);
22 }

Member Data Documentation

QString CQNameSelectionDialog::mSelection
private

Definition at line 30 of file CQNameSelectionDialog.h.

Referenced by accept(), and getSelection().


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