aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/CMakeLists.txt
diff options
context:
space:
mode:
authormotsyo <motsyo@90c681e8-e032-0410-971d-27865f9a5e38>2009-08-05 19:30:44 +0000
committermotsyo <motsyo@90c681e8-e032-0410-971d-27865f9a5e38>2009-08-05 19:30:44 +0000
commit00178e429588dc76b467377eed3d20f48a389476 (patch)
tree9da8950b6ea4ead7132f210ade0a0579ff27c4f0 /src/plugins/CMakeLists.txt
parentc2b6446a6b387915098bc4bfc401228409bf0820 (diff)
downloadqmmp-00178e429588dc76b467377eed3d20f48a389476.tar.gz
qmmp-00178e429588dc76b467377eed3d20f48a389476.tar.bz2
qmmp-00178e429588dc76b467377eed3d20f48a389476.zip
updated Ukrainian translation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1109 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions
98'>98 99 100 101 102 103 104 105 106 107 108
/***************************************************************************
 *   Copyright (C) 2007-2008 by Ilya Kotov                                 *
 *   forkotov02@ya.ru                                                      *
 *                                                                         *
 *   Based on Promoe, an XMMS2 Client                                      *
 *   Copyright (C) 2005-2006 by XMMS2 Team                                 *
 *                                                                         *
 *   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 "togglebutton.h"
#include <QMouseEvent>

ToggleButton::ToggleButton ( QWidget *parent,uint on_n,uint on_p,uint off_n,uint off_p )
      : PixmapWidget ( parent )
{
   m_on_n = on_n;
   m_on_p = on_p;
   m_off_n = off_n;
   m_off_p = off_p;
   m_on = false;
   skin = Skin::instance();
   setChecked ( false );
   connect ( skin, SIGNAL ( skinChanged() ), this, SLOT ( updateSkin() ) );
}


ToggleButton::~ToggleButton()
{}

bool ToggleButton::isChecked()
{
   return m_on;
}

void ToggleButton::updateSkin()
{
   //setPixmap ( skin->getButton ( name_normal ) );
   setChecked ( m_on );
}

void ToggleButton::click()
{
    m_on = !m_on;
    setChecked (m_on);
    emit clicked(m_on);
}