various graphical enhancements

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@736 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-02-29 09:15:15 +00:00
parent 86e3675b93
commit 1c1870ce3a
8 changed files with 252 additions and 53 deletions

View File

@@ -40,7 +40,11 @@ class lcdSpinBox : public QWidget, public automatableModelView<int>
Q_OBJECT
public:
lcdSpinBox( int _num_digits, QWidget * _parent, const QString & _name =
QString::null );
QString::null );
lcdSpinBox( int _num_digits, const QString & _lcd_style,
QWidget * _parent, const QString & _name = QString::null );
virtual ~lcdSpinBox();
void setLabel( const QString & _txt );
@@ -69,13 +73,22 @@ protected:
virtual void mouseMoveEvent( QMouseEvent * _me );
virtual void mouseReleaseEvent( QMouseEvent * _me );
virtual void wheelEvent( QWheelEvent * _we );
virtual void paintEvent( QPaintEvent * _me );
private:
static const int charsPerPixmap = 12;
QMap<int, QString> m_textForValue;
QLCDNumber * m_number;
QLabel * m_label;
QString m_display;
QString m_label;
QPixmap * m_lcdPixmap;
int m_cellWidth;
int m_cellHeight;
int m_numDigits;
QPoint m_origMousePos;

44
include/lmms_style.h Normal file
View File

@@ -0,0 +1,44 @@
/*
* lmms_style.h - the graphical style used my LMMS to create a consistent interface
*
* Copyright (c) 2004-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
* 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 (see COPYING); if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
*/
#ifndef _LMMS_STYLE_H
#define _LMMS_STYLE_H
#include <QtGui/QPlastiqueStyle>
class lmmsStyle : public QPlastiqueStyle
{
public:
lmmsStyle() :
QPlastiqueStyle ()
{
}
virtual ~lmmsStyle()
{
}
};
#endif