From 341f1491839589ae98cd97b80e544e888b9d894d Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 23 Nov 2007 14:16:52 +0000 Subject: [PATCH] small GUI-improvements git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@610 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 10 ++++++++++ plugins/ladspa_browser/ladspa_browser.cpp | 15 ++++++++------- src/widgets/tab_bar.cpp | 4 +++- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index e16cc09bc..bb5045f79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2007-11-23 Tobias Doerffel + + * 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 * Makefile.am: diff --git a/plugins/ladspa_browser/ladspa_browser.cpp b/plugins/ladspa_browser/ladspa_browser.cpp index 125907a15..5fb0f8e0c 100644 --- a/plugins/ladspa_browser/ladspa_browser.cpp +++ b/plugins/ladspa_browser/ladspa_browser.cpp @@ -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 = "" + tr( "Type:" ) + " "; + 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 ); diff --git a/src/widgets/tab_bar.cpp b/src/widgets/tab_bar.cpp index 58b2e1d7a..e1aeec6a7 100644 --- a/src/widgets/tab_bar.cpp +++ b/src/widgets/tab_bar.cpp @@ -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 ) {