COPASI API
4.16.103
|
#include <CQPlayerControlWidget.h>
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 () |
Definition at line 19 of file CQPlayerControlWidget.h.
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().
|
signal |
Referenced by slot_backward_clicked().
|
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().
|
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().
QAction * CQPlayerControlWidget::getForwardAction | ( | ) |
Definition at line 546 of file CQPlayerControlWidget.cpp.
References mpForwardAction.
Referenced by CQNewMainWindow::createMenus().
QAction * CQPlayerControlWidget::getPauseAction | ( | ) |
Definition at line 536 of file CQPlayerControlWidget.cpp.
References mpPauseAction.
Referenced by CQNewMainWindow::createMenus(), and CQLayoutMainWindow::endOfAnimationReached().
QAction * CQPlayerControlWidget::getPlayAction | ( | ) |
Definition at line 531 of file CQPlayerControlWidget.cpp.
References mpPlayAction.
Referenced by CQNewMainWindow::createMenus().
QAction * CQPlayerControlWidget::getStepBackwardAction | ( | ) |
Definition at line 561 of file CQPlayerControlWidget.cpp.
References mpStepBackwardAction.
Referenced by CQNewMainWindow::createMenus().
QAction * CQPlayerControlWidget::getStepForwardAction | ( | ) |
Definition at line 556 of file CQPlayerControlWidget.cpp.
References mpStepForwardAction.
Referenced by CQNewMainWindow::createMenus().
QAction * CQPlayerControlWidget::getStopAction | ( | ) |
Definition at line 541 of file CQPlayerControlWidget.cpp.
References mpStopAction.
Referenced by CQNewMainWindow::createMenus().
bool CQPlayerControlWidget::isPlaying | ( | ) | const |
Definition at line 526 of file CQPlayerControlWidget.cpp.
References mPlaying.
Referenced by CQLayoutMainWindow::backwardAnimation().
|
signal |
Referenced by slot_pause_clicked().
|
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().
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().
|
privateslot |
Definition at line 494 of file CQPlayerControlWidget.cpp.
References backward(), mCurrentStep, updateActions(), and updateButtons().
Referenced by CQPlayerControlWidget(), and createActions().
|
privateslot |
Definition at line 167 of file CQPlayerControlWidget.cpp.
References forward(), mCurrentStep, mNumSteps, updateActions(), and updateButtons().
Referenced by CQPlayerControlWidget(), and createActions().
|
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().
|
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().
|
privateslot |
Definition at line 514 of file CQPlayerControlWidget.cpp.
References mCurrentStep, step_backward(), updateActions(), and updateButtons().
Referenced by CQPlayerControlWidget(), and createActions().
|
privateslot |
Definition at line 502 of file CQPlayerControlWidget.cpp.
References mCurrentStep, mNumSteps, step_forward(), updateActions(), and updateButtons().
Referenced by CQPlayerControlWidget(), and createActions().
|
privateslot |
Definition at line 158 of file CQPlayerControlWidget.cpp.
References mCurrentStep, mPlaying, stop(), updateActions(), and updateButtons().
Referenced by CQPlayerControlWidget(), and createActions().
|
signal |
Referenced by slot_step_backward_clicked().
|
signal |
Referenced by slot_step_forward_clicked().
|
signal |
Referenced by slot_stop_clicked().
|
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().
|
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().
|
protected |
Definition at line 44 of file CQPlayerControlWidget.h.
Referenced by setCurrentStep(), slot_backward_clicked(), slot_forward_clicked(), slot_step_backward_clicked(), slot_step_forward_clicked(), slot_stop_clicked(), updateActions(), and updateButtons().
|
protected |
Definition at line 43 of file CQPlayerControlWidget.h.
Referenced by setCurrentStep(), setNumSteps(), slot_forward_clicked(), slot_step_forward_clicked(), updateActions(), and updateButtons().
|
protected |
Definition at line 58 of file CQPlayerControlWidget.h.
Referenced by createActions(), getBackwardAction(), and updateActions().
|
protected |
Definition at line 50 of file CQPlayerControlWidget.h.
Referenced by CQPlayerControlWidget(), and updateButtons().
|
protected |
Definition at line 57 of file CQPlayerControlWidget.h.
Referenced by createActions(), getForwardAction(), and updateActions().
|
protected |
Definition at line 49 of file CQPlayerControlWidget.h.
Referenced by CQPlayerControlWidget(), and updateButtons().
|
protected |
Definition at line 45 of file CQPlayerControlWidget.h.
Referenced by isPlaying(), slot_pause_clicked(), slot_play_clicked(), slot_stop_clicked(), updateActions(), and updateButtons().
|
protected |
Definition at line 55 of file CQPlayerControlWidget.h.
Referenced by createActions(), getPauseAction(), slot_pause_clicked(), slot_play_clicked(), and updateActions().
|
protected |
Definition at line 54 of file CQPlayerControlWidget.h.
Referenced by createActions(), getPlayAction(), and updateActions().
|
protected |
Definition at line 47 of file CQPlayerControlWidget.h.
Referenced by CQPlayerControlWidget(), slot_pause_clicked(), slot_play_clicked(), and updateButtons().
|
protected |
Definition at line 60 of file CQPlayerControlWidget.h.
Referenced by createActions(), getStepBackwardAction(), and updateActions().
|
protected |
Definition at line 52 of file CQPlayerControlWidget.h.
Referenced by CQPlayerControlWidget(), and updateButtons().
|
protected |
Definition at line 59 of file CQPlayerControlWidget.h.
Referenced by createActions(), getStepForwardAction(), and updateActions().
|
protected |
Definition at line 51 of file CQPlayerControlWidget.h.
Referenced by CQPlayerControlWidget(), and updateButtons().
|
protected |
Definition at line 56 of file CQPlayerControlWidget.h.
Referenced by createActions(), getStopAction(), and updateActions().
|
protected |
Definition at line 48 of file CQPlayerControlWidget.h.
Referenced by CQPlayerControlWidget(), and updateButtons().