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

#include <CQPlayerControlWidget.h>

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

Signals

void backward ()
 
void forward ()
 
void pause ()
 
void play ()
 
void step_backward ()
 
void step_forward ()
 
void stop ()
 

Public Member Functions

 CQPlayerControlWidget (QWidget *pParent=NULL)
 
QAction * getBackwardAction ()
 
QAction * getForwardAction ()
 
QAction * getPauseAction ()
 
QAction * getPlayAction ()
 
QAction * getStepBackwardAction ()
 
QAction * getStepForwardAction ()
 
QAction * getStopAction ()
 
bool isPlaying () const
 
void setCurrentStep (size_t currentStep)
 
void setNumSteps (size_t numSteps)
 

Protected Member Functions

void createActions ()
 
void updateActions ()
 
void updateButtons ()
 

Protected Attributes

size_t mCurrentStep
 
size_t mNumSteps
 
QAction * mpBackwardAction
 
QPushButton * mpBackwardButton
 
QAction * mpForwardAction
 
QPushButton * mpForwardButton
 
bool mPlaying
 
QAction * mpPauseAction
 
QAction * mpPlayAction
 
QPushButton * mpPlayButton
 
QAction * mpStepBackwardAction
 
QPushButton * mpStepBackwardButton
 
QAction * mpStepForwardAction
 
QPushButton * mpStepForwardButton
 
QAction * mpStopAction
 
QPushButton * mpStopButton
 

Private Slots

void slot_backward_clicked ()
 
void slot_forward_clicked ()
 
void slot_pause_clicked ()
 
void slot_play_clicked ()
 
void slot_step_backward_clicked ()
 
void slot_step_forward_clicked ()
 
void slot_stop_clicked ()
 

Detailed Description

Definition at line 19 of file CQPlayerControlWidget.h.

Constructor & Destructor Documentation

CQPlayerControlWidget::CQPlayerControlWidget ( QWidget *  pParent = NULL)

Definition at line 35 of file CQPlayerControlWidget.cpp.

References CQIconResource::backward, createActions(), createControl(), CQIconResource::forward, mpBackwardButton, mpForwardButton, mpPlayButton, mpStepBackwardButton, mpStepForwardButton, mpStopButton, CQIconResource::play, CQIconResource::skipBackward, CQIconResource::skipForward, slot_backward_clicked(), slot_forward_clicked(), slot_play_clicked(), slot_step_backward_clicked(), slot_step_forward_clicked(), slot_stop_clicked(), CQIconResource::stop, updateActions(), and updateButtons().

35  :
36  QWidget(pParent),
37  mNumSteps(0),
38  mCurrentStep(0),
39  mPlaying(false),
40  mpPlayButton(NULL),
41  mpStopButton(NULL),
42  mpForwardButton(NULL),
43  mpBackwardButton(NULL),
44  mpStepForwardButton(NULL),
46  mpPlayAction(NULL),
47  mpPauseAction(NULL),
48  mpStopAction(NULL),
49  mpForwardAction(NULL),
50  mpBackwardAction(NULL),
51  mpStepForwardAction(NULL),
53 {
54  QGridLayout* pLayout = new QGridLayout;
55 
57  pLayout->addWidget(this->mpStepBackwardButton, 0, 0, 1, 1);
58 
60  pLayout->addWidget(this->mpPlayButton, 0, 1, 1, 1);
61 
63  pLayout->addWidget(this->mpStepForwardButton, 0, 2, 1, 1);
64 
66  pLayout->addWidget(this->mpBackwardButton, 1, 0, 1, 1);
67 
69  pLayout->addWidget(this->mpStopButton, 1, 1, 1, 1);
70 
72  pLayout->addWidget(this->mpForwardButton, 1, 2, 1, 1);
73 
74  this->setLayout(pLayout);
75 
76  pLayout->setSizeConstraint(QLayout::SetFixedSize);
77 
78  this->createActions();
79 
80  this->updateButtons();
81  this->updateActions();
82  this->setTabOrder(this->mpPlayButton, this->mpStopButton);
83  this->setTabOrder(this->mpStopButton, this->mpStepForwardButton);
84  this->setTabOrder(this->mpStepForwardButton, this->mpStepBackwardButton);
85  this->setTabOrder(this->mpStepBackwardButton, this->mpForwardButton);
86  this->setTabOrder(this->mpForwardButton, this->mpBackwardButton);
87  connect(this->mpPlayButton, SIGNAL(clicked()), this, SLOT(slot_play_clicked()));
88  connect(this->mpStopButton, SIGNAL(clicked()), this, SLOT(slot_stop_clicked()));
89  connect(this->mpForwardButton, SIGNAL(clicked()), this, SLOT(slot_forward_clicked()));
90  connect(this->mpBackwardButton, SIGNAL(clicked()), this, SLOT(slot_backward_clicked()));
91  connect(this->mpStepForwardButton, SIGNAL(clicked()), this, SLOT(slot_step_forward_clicked()));
92  connect(this->mpStepBackwardButton, SIGNAL(clicked()), this, SLOT(slot_step_backward_clicked()));
93 }
QPushButton * createControl(const CQIconResource::IconID &iconId, int size=32)
QPushButton * mpStepBackwardButton

Member Function Documentation

void CQPlayerControlWidget::backward ( )
signal

Referenced by slot_backward_clicked().

void CQPlayerControlWidget::createActions ( )
protected

Definition at line 95 of file CQPlayerControlWidget.cpp.

References CQIconResource::backward, CQIconResource::forward, CQIconResource::icon(), mpBackwardAction, mpForwardAction, mpPauseAction, mpPlayAction, mpStepBackwardAction, mpStepForwardAction, mpStopAction, CQIconResource::pause, CQIconResource::play, CQIconResource::skipBackward, CQIconResource::skipForward, slot_backward_clicked(), slot_forward_clicked(), slot_pause_clicked(), slot_play_clicked(), slot_step_backward_clicked(), slot_step_forward_clicked(), slot_stop_clicked(), and CQIconResource::stop.

Referenced by CQPlayerControlWidget().

96 {
97  this->mpPlayAction = new QAction(CQIconResource::icon(CQIconResource::play), "Play", this);
98  connect(this->mpPlayAction, SIGNAL(triggered()), this, SLOT(slot_play_clicked()));
99  this->mpPauseAction = new QAction(CQIconResource::icon(CQIconResource::pause), "Pause", this);
100  connect(this->mpPauseAction, SIGNAL(triggered()), this, SLOT(slot_pause_clicked()));
101  this->mpStopAction = new QAction(CQIconResource::icon(CQIconResource::stop), "Stop", this);
102  connect(this->mpStopAction, SIGNAL(triggered()), this, SLOT(slot_stop_clicked()));
103  this->mpForwardAction = new QAction(CQIconResource::icon(CQIconResource::skipForward), "Forward", this);
104  connect(this->mpForwardAction, SIGNAL(triggered()), this, SLOT(slot_forward_clicked()));
105  this->mpBackwardAction = new QAction(CQIconResource::icon(CQIconResource::skipBackward), "Backward", this);
106  connect(this->mpBackwardAction, SIGNAL(triggered()), this, SLOT(slot_backward_clicked()));
107  this->mpStepForwardAction = new QAction(CQIconResource::icon(CQIconResource::forward), "Step Forward", this);
108  connect(this->mpStepForwardAction, SIGNAL(triggered()), this, SLOT(slot_step_forward_clicked()));
109  this->mpStepBackwardAction = new QAction(CQIconResource::icon(CQIconResource::backward), "Step Backward", this);
110  connect(this->mpStepBackwardAction, SIGNAL(triggered()), this, SLOT(slot_step_backward_clicked()));
111 }
static const QIcon & icon(const IconID &id)
void CQPlayerControlWidget::forward ( )
signal

Referenced by slot_forward_clicked().

QAction * CQPlayerControlWidget::getBackwardAction ( )

Definition at line 551 of file CQPlayerControlWidget.cpp.

References mpBackwardAction.

Referenced by CQNewMainWindow::createMenus(), and CQLayoutMainWindow::endOfAnimationReached().

552 {
553  return this->mpBackwardAction;
554 }
QAction * CQPlayerControlWidget::getForwardAction ( )

Definition at line 546 of file CQPlayerControlWidget.cpp.

References mpForwardAction.

Referenced by CQNewMainWindow::createMenus().

547 {
548  return this->mpForwardAction;
549 }
QAction * CQPlayerControlWidget::getPauseAction ( )

Definition at line 536 of file CQPlayerControlWidget.cpp.

References mpPauseAction.

Referenced by CQNewMainWindow::createMenus(), and CQLayoutMainWindow::endOfAnimationReached().

537 {
538  return this->mpPauseAction;
539 }
QAction * CQPlayerControlWidget::getPlayAction ( )

Definition at line 531 of file CQPlayerControlWidget.cpp.

References mpPlayAction.

Referenced by CQNewMainWindow::createMenus().

532 {
533  return this->mpPlayAction;
534 }
QAction * CQPlayerControlWidget::getStepBackwardAction ( )

Definition at line 561 of file CQPlayerControlWidget.cpp.

References mpStepBackwardAction.

Referenced by CQNewMainWindow::createMenus().

562 {
563  return this->mpStepBackwardAction;
564 }
QAction * CQPlayerControlWidget::getStepForwardAction ( )

Definition at line 556 of file CQPlayerControlWidget.cpp.

References mpStepForwardAction.

Referenced by CQNewMainWindow::createMenus().

557 {
558  return this->mpStepForwardAction;
559 }
QAction * CQPlayerControlWidget::getStopAction ( )

Definition at line 541 of file CQPlayerControlWidget.cpp.

References mpStopAction.

Referenced by CQNewMainWindow::createMenus().

542 {
543  return this->mpStopAction;
544 }
bool CQPlayerControlWidget::isPlaying ( ) const

Definition at line 526 of file CQPlayerControlWidget.cpp.

References mPlaying.

Referenced by CQLayoutMainWindow::backwardAnimation().

527 {
528  return this->mPlaying;
529 }
void CQPlayerControlWidget::pause ( )
signal

Referenced by slot_pause_clicked().

void CQPlayerControlWidget::play ( )
signal

Referenced by slot_play_clicked().

void CQPlayerControlWidget::setCurrentStep ( size_t  currentStep)

Definition at line 120 of file CQPlayerControlWidget.cpp.

References mCurrentStep, mNumSteps, updateActions(), and updateButtons().

Referenced by CQLayoutMainWindow::loadData(), and CQLayoutMainWindow::showStep().

121 {
122  if (currentStep < this->mNumSteps)
123  {
124  this->mCurrentStep = currentStep;
125  }
126  else
127  {
128  this->mCurrentStep = this->mNumSteps - 1;
129  }
130 
131  this->updateButtons();
132  this->updateActions();
133 }
void CQPlayerControlWidget::setNumSteps ( size_t  numSteps)

Definition at line 113 of file CQPlayerControlWidget.cpp.

References mNumSteps, updateActions(), and updateButtons().

Referenced by CQLayoutMainWindow::loadData(), and CQLayoutMainWindow::startAnimation().

114 {
115  this->mNumSteps = numSteps;
116  this->updateButtons();
117  this->updateActions();
118 }
void CQPlayerControlWidget::slot_backward_clicked ( )
privateslot

Definition at line 494 of file CQPlayerControlWidget.cpp.

References backward(), mCurrentStep, updateActions(), and updateButtons().

Referenced by CQPlayerControlWidget(), and createActions().

495 {
496  this->mCurrentStep = 0;
497  this->updateButtons();
498  this->updateActions();
499  emit backward();
500 }
void CQPlayerControlWidget::slot_forward_clicked ( )
privateslot

Definition at line 167 of file CQPlayerControlWidget.cpp.

References forward(), mCurrentStep, mNumSteps, updateActions(), and updateButtons().

Referenced by CQPlayerControlWidget(), and createActions().

168 {
169  this->mCurrentStep = this->mNumSteps - 1;
170  this->updateButtons();
171  this->updateActions();
172  emit forward();
173 }
void CQPlayerControlWidget::slot_pause_clicked ( )
privateslot

Definition at line 135 of file CQPlayerControlWidget.cpp.

References FALSE, CQIconResource::icon(), mPlaying, mpPauseAction, mpPlayButton, pause(), and CQIconResource::play.

Referenced by createActions(), and slot_play_clicked().

136 {
138  this->mPlaying = !this->mPlaying;
139  this->mpPauseAction->setEnabled(FALSE);
140  emit pause();
141 }
#define FALSE
Definition: CGA.h:26
static const QIcon & icon(const IconID &id)
void CQPlayerControlWidget::slot_play_clicked ( )
privateslot

Definition at line 143 of file CQPlayerControlWidget.cpp.

References CQIconResource::icon(), mPlaying, mpPauseAction, mpPlayButton, CQIconResource::pause, play(), slot_pause_clicked(), and TRUE.

Referenced by CQPlayerControlWidget(), and createActions().

144 {
145  if (this->mPlaying)
146  {
147  this->slot_pause_clicked();
148  }
149  else
150  {
152  this->mPlaying = !this->mPlaying;
153  this->mpPauseAction->setEnabled(TRUE);
154  emit play();
155  }
156 }
#define TRUE
Definition: CGA.h:25
static const QIcon & icon(const IconID &id)
void CQPlayerControlWidget::slot_step_backward_clicked ( )
privateslot

Definition at line 514 of file CQPlayerControlWidget.cpp.

References mCurrentStep, step_backward(), updateActions(), and updateButtons().

Referenced by CQPlayerControlWidget(), and createActions().

515 {
516  if (this->mCurrentStep != 0)
517  {
518  --this->mCurrentStep;
519  }
520 
521  this->updateButtons();
522  this->updateActions();
523  emit step_backward();
524 }
void CQPlayerControlWidget::slot_step_forward_clicked ( )
privateslot

Definition at line 502 of file CQPlayerControlWidget.cpp.

References mCurrentStep, mNumSteps, step_forward(), updateActions(), and updateButtons().

Referenced by CQPlayerControlWidget(), and createActions().

503 {
504  if (this->mCurrentStep != this->mNumSteps - 1)
505  {
506  ++this->mCurrentStep;
507  }
508 
509  this->updateButtons();
510  this->updateActions();
511  emit step_forward();
512 }
void CQPlayerControlWidget::slot_stop_clicked ( )
privateslot

Definition at line 158 of file CQPlayerControlWidget.cpp.

References mCurrentStep, mPlaying, stop(), updateActions(), and updateButtons().

Referenced by CQPlayerControlWidget(), and createActions().

159 {
160  this->mCurrentStep = 0;
161  this->mPlaying = false;
162  this->updateButtons();
163  this->updateActions();
164  emit stop();
165 }
void CQPlayerControlWidget::step_backward ( )
signal
void CQPlayerControlWidget::step_forward ( )
signal
void CQPlayerControlWidget::stop ( )
signal

Referenced by slot_stop_clicked().

void CQPlayerControlWidget::updateActions ( )
protected

Definition at line 175 of file CQPlayerControlWidget.cpp.

References FALSE, mCurrentStep, mNumSteps, mpBackwardAction, mpForwardAction, mPlaying, mpPauseAction, mpPlayAction, mpStepBackwardAction, mpStepForwardAction, mpStopAction, and TRUE.

Referenced by CQPlayerControlWidget(), setCurrentStep(), setNumSteps(), slot_backward_clicked(), slot_forward_clicked(), slot_step_backward_clicked(), slot_step_forward_clicked(), and slot_stop_clicked().

176 {
177  if (this->mNumSteps < 2)
178  {
179  // disable all actionsw
180  if (this->mpPlayAction->isEnabled())
181  {
182  this->mpPlayAction->setEnabled(FALSE);
183  }
184 
185  if (this->mpPauseAction->isEnabled())
186  {
187  this->mpPauseAction->setEnabled(FALSE);
188  }
189 
190  if (this->mpStopAction->isEnabled())
191  {
192  this->mpStopAction->setEnabled(FALSE);
193  }
194 
195  if (this->mpForwardAction->isEnabled())
196  {
197  this->mpForwardAction->setEnabled(FALSE);
198  }
199 
200  if (this->mpStepForwardAction->isEnabled())
201  {
202  this->mpStepForwardAction->setEnabled(FALSE);
203  }
204 
205  if (this->mpBackwardAction->isEnabled())
206  {
207  this->mpBackwardAction->setEnabled(FALSE);
208  }
209 
210  if (this->mpStepBackwardAction->isEnabled())
211  {
212  this->mpStepBackwardAction->setEnabled(FALSE);
213  }
214  }
215  else
216  {
217  if (this->mCurrentStep == 0)
218  {
219  // make sure backward and step_backward are disabled and all other
220  // actions are enabled
221  if (!this->mPlaying)
222  {
223  this->mpPauseAction->setEnabled(FALSE);
224  }
225  else
226  {
227  this->mpPauseAction->setEnabled(TRUE);
228  }
229 
230  if (this->mpBackwardAction->isEnabled())
231  {
232  this->mpBackwardAction->setEnabled(FALSE);
233  }
234 
235  if (this->mpStepBackwardAction->isEnabled())
236  {
237  this->mpStepBackwardAction->setEnabled(FALSE);
238  }
239 
240  if (this->mpPlayAction->isEnabled() == FALSE)
241  {
242  this->mpPlayAction->setEnabled(TRUE);
243  }
244 
245  if (this->mpStopAction->isEnabled() == FALSE)
246  {
247  this->mpStopAction->setEnabled(TRUE);
248  }
249 
250  if (this->mpForwardAction->isEnabled() == FALSE)
251  {
252  this->mpForwardAction->setEnabled(TRUE);
253  }
254 
255  if (this->mpStepForwardAction->isEnabled() == FALSE)
256  {
257  this->mpStepForwardAction->setEnabled(TRUE);
258  }
259  }
260  else if (this->mCurrentStep == this->mNumSteps - 1)
261  {
262  // make sure play, forward and step_forward are disabled and all other
263  // actions are enabled
264  // reset the icon on the play button
265  if (this->mpForwardAction->isEnabled())
266  {
267  this->mpForwardAction->setEnabled(FALSE);
268  }
269 
270  if (this->mpStepForwardAction->isEnabled())
271  {
272  this->mpStepForwardAction->setEnabled(FALSE);
273  }
274 
275  if (this->mpPlayAction->isEnabled())
276  {
277  this->mpPlayAction->setEnabled(FALSE);
278  }
279 
280  if (this->mpPauseAction->isEnabled())
281  {
282  this->mpPauseAction->setEnabled(FALSE);
283  }
284 
285  if (this->mpBackwardAction->isEnabled() == FALSE)
286  {
287  this->mpBackwardAction->setEnabled(TRUE);
288  }
289 
290  if (this->mpStepBackwardAction->isEnabled() == FALSE)
291  {
292  this->mpStepBackwardAction->setEnabled(TRUE);
293  }
294 
295  if (this->mpStopAction->isEnabled() == FALSE)
296  {
297  this->mpStopAction->setEnabled(TRUE);
298  }
299  }
300  else
301  {
302  // make sure all buttons are enabled
303  if (this->mpPlayAction->isEnabled() == FALSE)
304  {
305  this->mpPlayAction->setEnabled(TRUE);
306  }
307 
308  if (this->mpStopAction->isEnabled() == FALSE)
309  {
310  this->mpStopAction->setEnabled(TRUE);
311  }
312 
313  if (this->mpForwardAction->isEnabled() == FALSE)
314  {
315  this->mpForwardAction->setEnabled(TRUE);
316  }
317 
318  if (this->mpBackwardAction->isEnabled() == FALSE)
319  {
320  this->mpBackwardAction->setEnabled(TRUE);
321  }
322 
323  if (this->mpStepBackwardAction->isEnabled() == FALSE)
324  {
325  this->mpStepBackwardAction->setEnabled(TRUE);
326  }
327 
328  if (this->mpStepForwardAction->isEnabled() == FALSE)
329  {
330  this->mpStepForwardAction->setEnabled(TRUE);
331  }
332  }
333  }
334 }
#define TRUE
Definition: CGA.h:25
#define FALSE
Definition: CGA.h:26
void CQPlayerControlWidget::updateButtons ( )
protected

Definition at line 336 of file CQPlayerControlWidget.cpp.

References FALSE, CQIconResource::icon(), mCurrentStep, mNumSteps, mpBackwardButton, mpForwardButton, mPlaying, mpPlayButton, mpStepBackwardButton, mpStepForwardButton, mpStopButton, CQIconResource::pause, CQIconResource::play, and TRUE.

Referenced by CQPlayerControlWidget(), setCurrentStep(), setNumSteps(), slot_backward_clicked(), slot_forward_clicked(), slot_step_backward_clicked(), slot_step_forward_clicked(), and slot_stop_clicked().

337 {
338  if (this->mNumSteps < 2)
339  {
340  // disable all buttons
341  if (this->mpPlayButton->isEnabled())
342  {
343  this->mpPlayButton->setEnabled(FALSE);
344 
345  if (this->mPlaying)
346  {
347  // reset the icon
349  }
350  }
351 
352  if (this->mpStopButton->isEnabled())
353  {
354  this->mpStopButton->setEnabled(FALSE);
355  }
356 
357  if (this->mpForwardButton->isEnabled())
358  {
359  this->mpForwardButton->setEnabled(FALSE);
360  }
361 
362  if (this->mpStepForwardButton->isEnabled())
363  {
364  this->mpStepForwardButton->setEnabled(FALSE);
365  }
366 
367  if (this->mpBackwardButton->isEnabled())
368  {
369  this->mpBackwardButton->setEnabled(FALSE);
370  }
371 
372  if (this->mpStepBackwardButton->isEnabled())
373  {
374  this->mpStepBackwardButton->setEnabled(FALSE);
375  }
376  }
377  else
378  {
379  if (this->mCurrentStep == 0)
380  {
381  // make sure backward and step_backward are disabled and all other
382  // buttons are enabled
383  if (!this->mPlaying)
384  {
386  }
387  else
388  {
390  }
391 
392  if (this->mpBackwardButton->isEnabled())
393  {
394  this->mpBackwardButton->setEnabled(FALSE);
395  }
396 
397  if (this->mpStepBackwardButton->isEnabled())
398  {
399  this->mpStepBackwardButton->setEnabled(FALSE);
400  }
401 
402  if (this->mpPlayButton->isEnabled() == FALSE)
403  {
404  this->mpPlayButton->setEnabled(TRUE);
405  }
406 
407  if (this->mpStopButton->isEnabled() == FALSE)
408  {
409  this->mpStopButton->setEnabled(TRUE);
410  }
411 
412  if (this->mpForwardButton->isEnabled() == FALSE)
413  {
414  this->mpForwardButton->setEnabled(TRUE);
415  }
416 
417  if (this->mpStepForwardButton->isEnabled() == FALSE)
418  {
419  this->mpStepForwardButton->setEnabled(TRUE);
420  }
421  }
422  else if (this->mCurrentStep == this->mNumSteps - 1)
423  {
424  // make sure play, forward and step_forward are disabled and all other
425  // buttons are enabled
426  // reset the icon on the play button
427  if (this->mpForwardButton->isEnabled())
428  {
429  this->mpForwardButton->setEnabled(FALSE);
430  }
431 
432  if (this->mpStepForwardButton->isEnabled())
433  {
434  this->mpStepForwardButton->setEnabled(FALSE);
435  }
436 
437  if (this->mpPlayButton->isEnabled())
438  {
440  this->mpPlayButton->setEnabled(FALSE);
441  }
442 
443  if (this->mpBackwardButton->isEnabled() == FALSE)
444  {
445  this->mpBackwardButton->setEnabled(TRUE);
446  }
447 
448  if (this->mpStepBackwardButton->isEnabled() == FALSE)
449  {
450  this->mpStepBackwardButton->setEnabled(TRUE);
451  }
452 
453  if (this->mpStopButton->isEnabled() == FALSE)
454  {
455  this->mpStopButton->setEnabled(TRUE);
456  }
457  }
458  else
459  {
460  // make sure all buttons are enabled
461  if (this->mpPlayButton->isEnabled() == FALSE)
462  {
463  this->mpPlayButton->setEnabled(TRUE);
464  }
465 
466  if (this->mpStopButton->isEnabled() == FALSE)
467  {
468  this->mpStopButton->setEnabled(TRUE);
469  }
470 
471  if (this->mpForwardButton->isEnabled() == FALSE)
472  {
473  this->mpForwardButton->setEnabled(TRUE);
474  }
475 
476  if (this->mpBackwardButton->isEnabled() == FALSE)
477  {
478  this->mpBackwardButton->setEnabled(TRUE);
479  }
480 
481  if (this->mpStepBackwardButton->isEnabled() == FALSE)
482  {
483  this->mpStepBackwardButton->setEnabled(TRUE);
484  }
485 
486  if (this->mpStepForwardButton->isEnabled() == FALSE)
487  {
488  this->mpStepForwardButton->setEnabled(TRUE);
489  }
490  }
491  }
492 }
#define TRUE
Definition: CGA.h:25
#define FALSE
Definition: CGA.h:26
static const QIcon & icon(const IconID &id)
QPushButton * mpStepBackwardButton

Member Data Documentation

size_t CQPlayerControlWidget::mCurrentStep
protected
size_t CQPlayerControlWidget::mNumSteps
protected
QAction* CQPlayerControlWidget::mpBackwardAction
protected

Definition at line 58 of file CQPlayerControlWidget.h.

Referenced by createActions(), getBackwardAction(), and updateActions().

QPushButton* CQPlayerControlWidget::mpBackwardButton
protected

Definition at line 50 of file CQPlayerControlWidget.h.

Referenced by CQPlayerControlWidget(), and updateButtons().

QAction* CQPlayerControlWidget::mpForwardAction
protected

Definition at line 57 of file CQPlayerControlWidget.h.

Referenced by createActions(), getForwardAction(), and updateActions().

QPushButton* CQPlayerControlWidget::mpForwardButton
protected

Definition at line 49 of file CQPlayerControlWidget.h.

Referenced by CQPlayerControlWidget(), and updateButtons().

bool CQPlayerControlWidget::mPlaying
protected
QAction* CQPlayerControlWidget::mpPauseAction
protected
QAction* CQPlayerControlWidget::mpPlayAction
protected

Definition at line 54 of file CQPlayerControlWidget.h.

Referenced by createActions(), getPlayAction(), and updateActions().

QPushButton* CQPlayerControlWidget::mpPlayButton
protected
QAction* CQPlayerControlWidget::mpStepBackwardAction
protected

Definition at line 60 of file CQPlayerControlWidget.h.

Referenced by createActions(), getStepBackwardAction(), and updateActions().

QPushButton* CQPlayerControlWidget::mpStepBackwardButton
protected

Definition at line 52 of file CQPlayerControlWidget.h.

Referenced by CQPlayerControlWidget(), and updateButtons().

QAction* CQPlayerControlWidget::mpStepForwardAction
protected

Definition at line 59 of file CQPlayerControlWidget.h.

Referenced by createActions(), getStepForwardAction(), and updateActions().

QPushButton* CQPlayerControlWidget::mpStepForwardButton
protected

Definition at line 51 of file CQPlayerControlWidget.h.

Referenced by CQPlayerControlWidget(), and updateButtons().

QAction* CQPlayerControlWidget::mpStopAction
protected

Definition at line 56 of file CQPlayerControlWidget.h.

Referenced by createActions(), getStopAction(), and updateActions().

QPushButton* CQPlayerControlWidget::mpStopButton
protected

Definition at line 48 of file CQPlayerControlWidget.h.

Referenced by CQPlayerControlWidget(), and updateButtons().


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