COPASI API  4.16.103
CQNameSelectionDialog.cpp
Go to the documentation of this file.
1 // Copyright (C) 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
7 
8 CQNameSelectionDialog::CQNameSelectionDialog(QWidget * parent, Qt::WindowFlags f):
9  QDialog(parent, f),
10  mSelection()
11 {
12  setupUi(this);
13 }
14 
15 // virtual
17 {}
18 
19 void CQNameSelectionDialog::setSelectionList(const QStringList & selectionList)
20 {
21  mpSelectionBox->addItems(selectionList);
22 }
23 
24 const QString & CQNameSelectionDialog::getSelection() const
25 {
26  return mSelection;
27 }
28 
29 // virtual
31 {
32  mSelection = mpSelectionBox->currentText();
33 
34  QDialog::accept();
35 }
void setSelectionList(const QStringList &selectionList)
const QString & getSelection() const
CQNameSelectionDialog(QWidget *parent=0, Qt::WindowFlags f=0)