COPASI API  4.16.103
Public Slots | Public Member Functions | Private Slots | List of all members
CQParaPanel Class Reference

#include <ParaPanel.h>

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

Public Slots

void disableModeChoice ()
 
void disableParameterChoice ()
 
void disableStepNumberChoice ()
 
void enableModeChoice ()
 
void enableParameterChoice ()
 
void enableStepNumberChoice ()
 
void setStepNumber (int i)
 

Public Member Functions

 CQParaPanel (QWidget *parent=0)
 

Private Slots

void changeFrameRate ()
 
void setColorMode ()
 
void setGlobalScaling ()
 
void setIndividualScaling ()
 
void setSizeMode ()
 
void stepEdit_returnPressed ()
 

Detailed Description

Definition at line 22 of file ParaPanel.h.

Constructor & Destructor Documentation

CQParaPanel::CQParaPanel ( QWidget *  parent = 0)

Definition at line 23 of file ParaPanel.cpp.

23  :
24  QWidget(parent)
25 {
26  setupUi(this);
27 }

Member Function Documentation

void CQParaPanel::changeFrameRate ( )
privateslot

Definition at line 61 of file ParaPanel.cpp.

62 {
63  CQLayoutMainWindow * tmp = dynamic_cast<CQLayoutMainWindow *>(parentWidget()->parentWidget()->parentWidget()->parentWidget());
64  assert(tmp);
65 
66  if (tmp) tmp -> setStepsPerSecond(mpSpinBox1->value());
67 }
void CQParaPanel::disableModeChoice ( )
slot

Definition at line 34 of file ParaPanel.cpp.

35 {
36  mpScalingButtonGroup_2->setEnabled(false);
37 }
void CQParaPanel::disableParameterChoice ( )
slot

Definition at line 45 of file ParaPanel.cpp.

46 {
47  mpSpinBox1->setEnabled(false);
48  mpScalingButtonGroup->setEnabled(false);
49 }
void CQParaPanel::disableStepNumberChoice ( )
slot

Definition at line 56 of file ParaPanel.cpp.

57 {
58  mpStepEdit->setEnabled(false);
59 }
void CQParaPanel::enableModeChoice ( )
slot

Definition at line 29 of file ParaPanel.cpp.

30 {
31  mpScalingButtonGroup_2->setEnabled(true);
32 }
void CQParaPanel::enableParameterChoice ( )
slot

Definition at line 39 of file ParaPanel.cpp.

40 {
41  mpSpinBox1->setEnabled(true);
42  mpScalingButtonGroup->setEnabled(true);
43 }
void CQParaPanel::enableStepNumberChoice ( )
slot

Definition at line 51 of file ParaPanel.cpp.

52 {
53  mpStepEdit->setEnabled(true);
54 }
void CQParaPanel::setColorMode ( )
privateslot

Definition at line 117 of file ParaPanel.cpp.

118 {
119  CQLayoutMainWindow * tmp = dynamic_cast<CQLayoutMainWindow *>(parentWidget()->parentWidget()->parentWidget()->parentWidget());
120  assert(tmp);
121 
122  if (tmp) tmp -> setColorMode();
123 }
void setColorMode()
Definition: ParaPanel.cpp:117
void CQParaPanel::setGlobalScaling ( )
privateslot

Definition at line 69 of file ParaPanel.cpp.

70 {
71  CQLayoutMainWindow * tmp = dynamic_cast<CQLayoutMainWindow *>(parentWidget()->parentWidget()->parentWidget()->parentWidget());
72  assert(tmp);
73 
74  if (tmp) tmp -> setGlobalScaling();
75 }
void setGlobalScaling()
Definition: ParaPanel.cpp:69
void CQParaPanel::setIndividualScaling ( )
privateslot

Definition at line 77 of file ParaPanel.cpp.

78 {
79  CQLayoutMainWindow * tmp = dynamic_cast<CQLayoutMainWindow *>(parentWidget()->parentWidget()->parentWidget()->parentWidget());
80  assert(tmp);
81 
82  if (tmp) tmp -> setIndividualScaling();
83 }
void setIndividualScaling()
Definition: ParaPanel.cpp:77
void CQParaPanel::setSizeMode ( )
privateslot

Definition at line 109 of file ParaPanel.cpp.

110 {
111  CQLayoutMainWindow * tmp = dynamic_cast<CQLayoutMainWindow *>(parentWidget()->parentWidget()->parentWidget()->parentWidget());
112  assert(tmp);
113 
114  if (tmp) tmp -> setSizeMode();
115 }
void setSizeMode()
Definition: ParaPanel.cpp:109
void CQParaPanel::setStepNumber ( int  i)
slot

Definition at line 85 of file ParaPanel.cpp.

86 {
87  QString s = QString::number(i, 10);
88  mpStepEdit->setText(s);
89 }
void CQParaPanel::stepEdit_returnPressed ( )
privateslot

Definition at line 91 of file ParaPanel.cpp.

92 {
93  QValidator* pValidator = new QIntValidator(0, INT_MAX, this);
94  mpStepEdit->setValidator(pValidator);
95 
96  QString line = mpStepEdit->text();
97  bool ok;
98  int val = line.toInt(&ok, 10);
99 
100  if (ok)
101  {
102  CQLayoutMainWindow * tmp = dynamic_cast<CQLayoutMainWindow *>(parentWidget()->parentWidget()->parentWidget()->parentWidget());
103  assert(tmp);
104 
105  if (tmp) tmp -> setValueOnSlider(val);
106  }
107 }

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