Changeset 340 in pacpusframework


Ignore:
Timestamp:
Mar 2, 2015, 1:20:46 PM (10 years ago)
Author:
phudelai
Message:

Ajout de vrais boutons play/pause/stop dans le trunk
Remplacement des logos +/- dans le DBITEPlayer par des logos compréhenssibles
Ajout des toolTip sur les boutons du PacpusSensor et du DBITEPlayer

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/0.1.x/src/DBITEPlayerLib/DbtPlyUserInterface.cpp

    r339 r340  
    181181    mainLayout->addWidget(stopBut,0,2);
    182182
    183     speedUpBut = new QPushButton ("+", this);
     183    speedUpBut = new QPushButton (style()->standardIcon(QStyle::SP_MediaSeekForward), "", this);
    184184    speedUpBut->resize(kButtonWidthInPixels, kButtonHeightInPixels);
     185        speedUpBut->setToolTip("Speed up the records");
    185186    butGroup->addButton(speedUpBut,4);
    186     mainLayout->addWidget(speedUpBut,1,0);
    187 
    188     speedDownBut = new QPushButton ("-", this);
     187    mainLayout->addWidget(speedUpBut,1,1);
     188
     189    speedDownBut = new QPushButton (style()->standardIcon(QStyle::SP_MediaSeekBackward), "", this);
    189190    speedDownBut->resize(kButtonWidthInPixels, kButtonHeightInPixels);
     191        speedDownBut->setToolTip("Speed down the records");
    190192    butGroup->addButton(speedDownBut,5);
    191     mainLayout->addWidget(speedDownBut,1,1);
     193    mainLayout->addWidget(speedDownBut,1,0);
    192194
    193195    rev = new QCheckBox(tr("Reverse"), this);
  • branches/0.1.x/src/PacpusSensor/src/ui/pacpusmainwindow.cpp

    r339 r340  
    5959        buttonStart->setIcon(style()->standardIcon(QStyle::SP_MediaPlay));
    6060        buttonStop->setIcon(style()->standardIcon(QStyle::SP_MediaStop));
     61        buttonStart->setToolTip("Start all the components");
     62        buttonStop->setToolTip("Stop all the components");
    6163}
    6264
  • trunk/src/DBITEPlayerLib/DbtPlyUserInterface.cpp

    r294 r340  
    167167
    168168    butGroup = new QButtonGroup(this);
    169     playBut = new QPushButton ("|>", this);
     169    playBut = new QPushButton (style()->standardIcon(QStyle::SP_MediaPlay), "Play", this);
    170170    playBut->resize(kButtonWidthInPixels, kButtonHeightInPixels);
    171171    butGroup->addButton(playBut,1);
    172172    mainLayout->addWidget(playBut,0,0);
    173173
    174     pauseBut = new QPushButton ("||", this);
     174    pauseBut = new QPushButton (style()->standardIcon(QStyle::SP_MediaPause), "Pause", this);
    175175    pauseBut->resize(kButtonWidthInPixels, kButtonHeightInPixels);
    176176    butGroup->addButton(pauseBut,2);
    177177    mainLayout->addWidget(pauseBut,0,1);
    178178
    179     stopBut = new QPushButton ("O", this);
     179    stopBut = new QPushButton (style()->standardIcon(QStyle::SP_MediaStop), "Stop", this);
    180180    stopBut->resize(kButtonWidthInPixels, kButtonHeightInPixels);
    181181    butGroup->addButton(stopBut,3);
    182182    mainLayout->addWidget(stopBut,0,2);
    183183
    184     speedUpBut = new QPushButton ("+", this);
     184    speedUpBut = new QPushButton (style()->standardIcon(QStyle::SP_MediaSeekForward), "", this);
    185185    speedUpBut->resize(kButtonWidthInPixels, kButtonHeightInPixels);
     186    speedUpBut->setToolTip("Speed up the records");
    186187    butGroup->addButton(speedUpBut,4);
    187     mainLayout->addWidget(speedUpBut,1,0);
    188 
    189     speedDownBut = new QPushButton ("-", this);
     188    mainLayout->addWidget(speedUpBut,1,1);
     189
     190    speedDownBut = new QPushButton (style()->standardIcon(QStyle::SP_MediaSeekBackward), "", this);
    190191    speedDownBut->resize(kButtonWidthInPixels, kButtonHeightInPixels);
     192    speedDownBut->setToolTip("Speed down the records");
    191193    butGroup->addButton(speedDownBut,5);
    192     mainLayout->addWidget(speedDownBut,1,1);
     194    mainLayout->addWidget(speedDownBut,1,0);
    193195
    194196    rev = new QCheckBox(tr("Reverse"), this);
  • trunk/src/PacpusSensor/src/ui/pacpusmainwindow.cpp

    r162 r340  
    5656
    5757    nbActiveComponent_ = 0;
     58   
     59    buttonStart->setIcon(style()->standardIcon(QStyle::SP_MediaPlay));
     60    buttonStop->setIcon(style()->standardIcon(QStyle::SP_MediaStop));
    5861}
    5962
Note: See TracChangeset for help on using the changeset viewer.