further UI finetuning

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1592 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-09-08 22:48:43 +00:00
parent f7c62d29c8
commit 3cd8b97623
7 changed files with 23 additions and 10 deletions

View File

@@ -1,5 +1,13 @@
2008-09-08 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* include/gui_templates.h:
* src/core/instrument_sound_shaping.cpp:
* src/gui/widgets/instrument_sound_shaping_view.cpp:
* src/gui/widgets/lcd_spinbox.cpp:
* data/locale/de.qm:
* data/locale/de.ts:
further UI finetuning
* include/midi_winmm.h:
* src/core/midi/midi_winmm.cpp:
finally made WinMM MIDI driver work properly by fixing internal data

Binary file not shown.

View File

@@ -2143,7 +2143,7 @@ Bitte stellen Sie sicher, dass Sie Schreibrechte auf diese Datei und das Verzeic
</message>
<message>
<source>PITCH</source>
<translation>TONHÖHE</translation>
<translation>PITCH</translation>
</message>
</context>
<context>

View File

@@ -40,8 +40,13 @@ template<int SIZE>
inline QFont pointSize( QFont _f )
{
static const float DPI = 96;
#ifdef LMMS_BUILD_WIN32
_f.setPointSizeF( ((float) SIZE+0.5f) * DPI /
QApplication::desktop()->logicalDpiY() );
#else
_f.setPointSizeF( (float) SIZE * DPI /
QApplication::desktop()->logicalDpiY() );
#endif
return( _f );
}

View File

@@ -53,8 +53,8 @@ const QString __targetNames[instrumentSoundShaping::NumTargets][3] =
instrumentSoundShaping::tr( "Pitch" ),*/
{ instrumentSoundShaping::tr( "CUTOFF" ), "cut",
instrumentSoundShaping::tr( "Cutoff frequency" ) },
{ instrumentSoundShaping::tr( "Q/RESO" ), "res",
instrumentSoundShaping::tr( "Q/Resonance" ) }
{ instrumentSoundShaping::tr( "RESO" ), "res",
instrumentSoundShaping::tr( "Resonance" ) }
} ;

View File

@@ -111,9 +111,9 @@ instrumentSoundShapingView::instrumentSoundShapingView( QWidget * _parent ) :
m_filterResKnob = new knob( knobBright_26, m_filterGroupBox );
m_filterResKnob->setLabel( tr( "Q/RESO" ) );
m_filterResKnob->move( 190, 18 );
m_filterResKnob->setHintText( tr( "Q/Resonance:" ) + " ", "" );
m_filterResKnob->setLabel( tr( "RESO" ) );
m_filterResKnob->move( 196, 18 );
m_filterResKnob->setHintText( tr( "Resonance:" ) + " ", "" );
m_filterResKnob->setWhatsThis(
tr( "Use this knob for setting Q/Resonance for the selected "
"filter. Q/Resonance tells the filter how much it "

View File

@@ -116,7 +116,7 @@ void lcdSpinBox::paintEvent( QPaintEvent * _me )
int margin = 1; // QStyle::PM_DefaultFrameWidth;
int lcdWidth = m_cellWidth * m_numDigits + (margin*m_marginWidth)*2;
p.translate( width() / 2 - lcdWidth / 2, 0 );
// p.translate( width() / 2 - lcdWidth / 2, 0 );
p.save();
p.translate( margin, margin );
@@ -180,12 +180,12 @@ void lcdSpinBox::paintEvent( QPaintEvent * _me )
p.setFont( pointSize<6>( p.font() ) );
p.setPen( QColor( 64, 64, 64 ) );
p.drawText( width() / 2 -
p.fontMetrics().width( m_label ) / 2 + 1,
height() - 1, m_label );
p.fontMetrics().width( m_label ) / 2 + 1,
height(), m_label );
p.setPen( QColor( 255, 255, 255 ) );
p.drawText( width() / 2 -
p.fontMetrics().width( m_label ) / 2,
height() - 2, m_label );
height() - 1, m_label );
}
}