small GUI-improvements

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@610 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2007-11-23 14:16:52 +00:00
parent 9b74ff93fb
commit 341f149183
3 changed files with 21 additions and 8 deletions

View File

@@ -1,3 +1,13 @@
2007-11-23 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* plugins/ladspa_browser/ladspa_browser.cpp:
improved layout
* src/widgets/tab_bar.cpp:
- improved layout
- change icon-size-property for tabButtons in order to make them look
as in 0.3.x
2007-11-23 Javier Serrano Polo <jasp00/at/terra/dot/es>
* Makefile.am:

View File

@@ -84,14 +84,15 @@ ladspaBrowser::ladspaBrowser( void ) :
m_tabBar->setFixedWidth( 72 );
QWidget * ws = new QWidget( this );
ws->setFixedSize( 500, 400 );
ws->setFixedSize( 500, 480 );
QWidget * available = createTab( ws, tr( "Available Effects" ), VALID );
QWidget * unavailable = createTab( ws, tr( "Unavailable Effects" ),
const QString type = "<b>" + tr( "Type:" ) + "</b> ";
QWidget * available = createTab( ws, type + tr( "Available Effects" ), VALID );
QWidget * unavailable = createTab( ws, type + tr( "Unavailable Effects" ),
INVALID );
QWidget * instruments = createTab( ws, tr( "Instruments" ), SOURCE );
QWidget * analysis = createTab( ws, tr( "Analysis Tools" ), SINK );
QWidget * other = createTab( ws, tr( "Don't know" ), OTHER );
QWidget * instruments = createTab( ws, type + tr( "Instruments" ), SOURCE );
QWidget * analysis = createTab( ws, type + tr( "Analysis Tools" ), SINK );
QWidget * other = createTab( ws, type + tr( "Don't know" ), OTHER );
m_tabBar->addTab( available, tr( "Available Effects" ),
@@ -179,7 +180,7 @@ QWidget * ladspaBrowser::createTab( QWidget * _parent, const QString & _txt,
ladspaPluginType _type )
{
QWidget * tab = new QWidget( _parent );
tab->setFixedSize( 500, 340 );
tab->setFixedSize( 500, 400 );
QVBoxLayout * layout = new QVBoxLayout( tab );
layout->setSpacing( 0 );
layout->setMargin( 0 );

View File

@@ -37,7 +37,7 @@ tabBar::tabBar( QWidget * _parent, QBoxLayout::Direction _dir ) :
m_layout( new QBoxLayout( _dir, this ) ),
m_exclusive( FALSE )
{
m_layout->setMargin( 0 );
m_layout->setMargin( 8 );
m_layout->setSpacing( 0 );
setLayout( m_layout );
@@ -66,6 +66,8 @@ tabButton * tabBar::addTab( QWidget * _w, const QString & _text, int _id,
// create tab-button
tabButton * b = new tabButton( caption, _id, this );
connect( b, SIGNAL( clicked( int ) ), this, SLOT( tabClicked( int ) ) );
b->setIconSize( QSize( 48, 48 ) );
b->setFixedSize( 64, 64 );
b->show();
if( _text_is_tooltip )
{