aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mad/mpegmetadatamodel.cpp
Commit message (Expand)AuthorAgeFilesLines
* fixed FSF headerstrialuser022012-07-311-1/+1
* fixed FSF address (trunk)trialuser022012-07-311-1/+1
* fixed id3v2 encodingtrialuser022010-03-241-1/+1
* reapplied previous patchtrialuser022010-03-111-1/+1
* removed obsolete memberstrialuser022010-03-111-3/+3
* added APIC frame support, added some api functionstrialuser022009-10-121-0/+23
* fixed typotrialuser022009-09-291-1/+1
* enabled mpc plugin, fixed some bugstrialuser022009-09-221-22/+18
* added new details dialog, disabled input plugins due api changestrialuser022009-09-101-0/+325
20 21 22 23 24 25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

                                                                            
                                                                            













                                                                            
                                                                            






                                                                             
                             


































                                                                    
/***************************************************************************
 *   Copyright (C) 2006 by Ilya Kotov                                      *
 *   forkotov02@ya.ru                                                      *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
 ***************************************************************************/
#include "skin.h"
#include "playstatus.h"

PlayStatus::PlayStatus ( QWidget *parent )
      : PixmapWidget ( parent )
{
   m_skin = Skin::instance();
   setStatus ( STOP );
   connect(m_skin, SIGNAL(skinChanged()), this, SLOT(updateSkin()));
}


PlayStatus::~PlayStatus()
{}

void PlayStatus::setStatus ( Type st )
{
   m_status = st;
   switch ( ( uint ) st )
   {
      case PLAY:
      {
         setPixmap ( m_skin->getItem ( Skin::PLAY ));
         break;
      }
      case STOP:
      {
         setPixmap ( m_skin->getItem ( Skin::STOP ));
         break;
      }
      case PAUSE:
      {
         setPixmap ( m_skin->getItem ( Skin::PAUSE ));
         break;
      }
   }
}

void PlayStatus::updateSkin()
{
   setStatus ( m_status );
}