UI finetuning / recompression of some PNG-files

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1589 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-09-08 12:47:11 +00:00
parent 98ddc0df71
commit da2fcf130a
71 changed files with 165 additions and 90 deletions

View File

@@ -96,6 +96,7 @@ int effEditGetRect = 13;
int effEditOpen = 14;
int effEditClose = 15;
int effEditIdle = 19;
int effEditTop = 20;
int effProcessEvents = 25;
int effGetEffectName = 45;
int effGetParameterProperties = 47; // missing

View File

@@ -31,7 +31,6 @@
#include "effect_chain.h"
#include "types.h"
class QPushButton;
class QScrollArea;
class QVBoxLayout;
@@ -46,7 +45,7 @@ public:
effectRackView( effectChain * _model, QWidget * _parent = NULL );
virtual ~effectRackView();
void clear( void );
void clearViews( void );
public slots:
@@ -79,8 +78,7 @@ private:
QVBoxLayout * m_mainLayout;
groupBox * m_effectsGroupBox;
QScrollArea * m_scrollArea;
QPushButton * m_addButton;
Uint32 m_lastY;
} ;

View File

@@ -1,7 +1,7 @@
/*
* group_box.h - LMMS-groupbox
*
* Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2005-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -53,8 +53,6 @@ protected:
private:
void updatePixmap( void );
static QPixmap * s_ledBg;
pixmapButton * m_led;
QString m_caption;

View File

@@ -1,7 +1,7 @@
/*
* gui_templates.h - GUI-specific templates
*
* Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2005-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -26,6 +26,8 @@
#ifndef _GUI_TEMPLATES_H
#define _GUI_TEMPLATES_H
#include "lmmsconfig.h"
#include <QtGui/QApplication>
#include <QtGui/QFont>
#include <QtGui/QDesktopWidget>
@@ -37,7 +39,7 @@
template<int SIZE>
inline QFont pointSize( QFont _f )
{
static const int DPI = 96;
static const float DPI = 96;
_f.setPointSizeF( (float) SIZE * DPI /
QApplication::desktop()->logicalDpiY() );
return( _f );
@@ -46,9 +48,14 @@ inline QFont pointSize( QFont _f )
inline QFont pointSizeF( QFont _f, float SIZE )
{
static const int DPI = 96;
static const float DPI = 96;
#ifdef LMMS_BUILD_WIN32
_f.setPointSizeF( (SIZE+0.5f) * DPI /
QApplication::desktop()->logicalDpiY() );
#else
_f.setPointSizeF( SIZE * DPI /
QApplication::desktop()->logicalDpiY() );
#endif
return( _f );
}