Changeset 340 in pacpusframework for trunk


Ignore:
Timestamp:
03/02/15 13:20:46 (9 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

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.