/* Copyright ( C ) 2003 Arnold Krille This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; version 2 of the License. This library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "klevelmeter_normalbars.h" #include #include #include KLevelMeter_NormalBars::KLevelMeter_NormalBars( Arts::KLevelMeter_impl* impl, QWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax ) { //kdDebug()<<"KLevelMeter_NormalBars::KLevelMeter_NormalBars( Arts::KLevelMeter_impl* "<direction() ) ) _layout->setDirection( QBoxLayout::Direction( _dir ) ); for ( uint i=0; isetValue( _value ); } long KLevelMeter_NormalBars::count() { return _count; } void KLevelMeter_NormalBars::count( long n ) { //kdDebug()<<"KLevelMeter_NormalBars::count( long "<0 ) { _count = n; resizeEvent(); } } void KLevelMeter_NormalBars::resizeEvent( QResizeEvent* ) { //kdDebug()<<"KLevelMeter_NormalBars::resizeEvent( QResizeEvent* )"<