improved UI
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@972 0778d3d1-df1d-0410-868b-ea421aaaa00d
63
ChangeLog
@@ -1,5 +1,68 @@
|
||||
2008-05-13 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* include/track.h:
|
||||
* include/pixmap_button.h:
|
||||
* src/core/track.cpp:
|
||||
* src/gui/widgets/pixmap_button.cpp:
|
||||
toggle solo via Ctrl+left mouse button
|
||||
|
||||
* src/gui/fx_mixer_view.cpp:
|
||||
set window-icon
|
||||
|
||||
* src/gui/widgets/tab_widget.cpp:
|
||||
use colors from active palette
|
||||
|
||||
* src/gui/widgets/project_notes.cpp:
|
||||
hide per default
|
||||
|
||||
* src/gui/main_window.cpp:
|
||||
* src/core/timeline.cpp:
|
||||
* data/themes/default/project_export.png:
|
||||
* data/themes/default/hourglass.png:
|
||||
* data/themes/default/hq_mode.png:
|
||||
* data/themes/default/edit_paste.png:
|
||||
* data/themes/default/text_bold.png:
|
||||
* data/themes/default/project_save.png:
|
||||
* data/themes/default/playpos_marker.png:
|
||||
* data/themes/default/exit.png:
|
||||
* data/themes/default/text_center.png:
|
||||
* data/themes/default/error.png:
|
||||
* data/themes/default/edit_cut.png:
|
||||
* data/themes/default/mute_on.png:
|
||||
* data/themes/default/project_saveas.png:
|
||||
* data/themes/default/loop_point_disabled.png:
|
||||
* data/themes/default/arp_random_on.png:
|
||||
* data/themes/default/edit_copy.png:
|
||||
* data/themes/default/edit_redo.png:
|
||||
* data/themes/default/arp_down_on.png:
|
||||
* data/themes/default/track_op_menu_disabled.png:
|
||||
* data/themes/default/project_notes.png:
|
||||
* data/themes/default/track_op_menu.png:
|
||||
* data/themes/default/groupbox_led_bg.png:
|
||||
* data/themes/default/arp_down_off.png:
|
||||
* data/themes/default/mute_off.png:
|
||||
* data/themes/default/text_italic.png:
|
||||
* data/themes/default/arp_random_off.png:
|
||||
* data/themes/default/root.png:
|
||||
* data/themes/default/apply.png:
|
||||
* data/themes/default/text_block.png:
|
||||
* data/themes/default/text_left.png:
|
||||
* data/themes/default/arp_up_off.png:
|
||||
* data/themes/default/text_right.png:
|
||||
* data/themes/default/project_open.png:
|
||||
* data/themes/default/arp_up_and_down_off.png:
|
||||
* data/themes/default/edit_undo.png:
|
||||
* data/themes/default/loop_point.png:
|
||||
* data/themes/default/cancel.png:
|
||||
* data/themes/default/add.png:
|
||||
* data/themes/default/arp_up_and_down_on.png:
|
||||
* data/themes/default/project_open_down.png:
|
||||
* data/themes/default/text_under.png:
|
||||
* data/themes/default/fx_mixer.png:
|
||||
* data/themes/default/arp_up_on.png:
|
||||
* data/themes/default/home.png:
|
||||
integrated improved artwork (more to come)
|
||||
|
||||
* src/core/track.cpp:
|
||||
do not crash when removing TCOs
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 842 B After Width: | Height: | Size: 907 B |
|
Before Width: | Height: | Size: 769 B After Width: | Height: | Size: 808 B |
|
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 575 B |
|
Before Width: | Height: | Size: 671 B After Width: | Height: | Size: 609 B |
|
Before Width: | Height: | Size: 507 B After Width: | Height: | Size: 492 B |
|
Before Width: | Height: | Size: 871 B After Width: | Height: | Size: 778 B |
|
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 626 B |
|
Before Width: | Height: | Size: 715 B After Width: | Height: | Size: 636 B |
|
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 567 B |
|
Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 581 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 689 B After Width: | Height: | Size: 644 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 576 B |
|
Before Width: | Height: | Size: 939 B After Width: | Height: | Size: 771 B |
|
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 920 B After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.1 KiB |
BIN
data/themes/default/fx_mixer.png
Normal file
|
After Width: | Height: | Size: 943 B |
|
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 201 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 737 B |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 968 B |
|
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 786 B |
|
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 766 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 517 B After Width: | Height: | Size: 756 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 492 B |
|
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 633 B |
|
Before Width: | Height: | Size: 734 B After Width: | Height: | Size: 832 B |
|
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 637 B |
|
Before Width: | Height: | Size: 660 B After Width: | Height: | Size: 708 B |
|
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 631 B |
|
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 632 B |
|
Before Width: | Height: | Size: 725 B After Width: | Height: | Size: 704 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -44,7 +44,7 @@ public:
|
||||
|
||||
signals:
|
||||
void doubleClicked( void );
|
||||
void clickedRight( void );
|
||||
void ctrlClick( void );
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
@@ -306,7 +306,7 @@ private slots:
|
||||
void disableAutomation( void );
|
||||
void enableAutomation( void );
|
||||
void removeTrack( void );
|
||||
void muteBtnRightClicked( void );
|
||||
void toggleSolo( void );
|
||||
void updateMenu( void );
|
||||
|
||||
|
||||
|
||||
@@ -241,8 +241,8 @@ void timeLine::paintEvent( QPaintEvent * )
|
||||
const QPixmap & lpoint = loopPointsEnabled() ?
|
||||
*s_loopPointPixmap :
|
||||
*s_loopPointDisabledPixmap;
|
||||
p.drawPixmap( markerX( loopBegin() ), 7, lpoint );
|
||||
p.drawPixmap( markerX( loopEnd() ), 7, lpoint );
|
||||
p.drawPixmap( markerX( loopBegin() ), 4, lpoint );
|
||||
p.drawPixmap( markerX( loopEnd() ), 4, lpoint );
|
||||
|
||||
|
||||
tact tact_num = m_begin.getTact();
|
||||
|
||||
@@ -1037,15 +1037,15 @@ trackOperationsWidget::trackOperationsWidget( trackView * _parent ) :
|
||||
|
||||
|
||||
m_muteBtn = new pixmapButton( this, tr( "Mute" ) );
|
||||
m_muteBtn->setActiveGraphic( *s_muteOnEnabled );
|
||||
m_muteBtn->setInactiveGraphic( *s_muteOffEnabled );
|
||||
m_muteBtn->setActiveGraphic( *s_muteOffEnabled );
|
||||
m_muteBtn->setInactiveGraphic( *s_muteOnEnabled );
|
||||
m_muteBtn->setCheckable( TRUE );
|
||||
m_muteBtn->move( 44, 4 );
|
||||
m_muteBtn->show();
|
||||
connect( m_muteBtn, SIGNAL( toggled( bool ) ), this,
|
||||
SLOT( setMuted( bool ) ) );
|
||||
connect( m_muteBtn, SIGNAL( clickedRight() ), this,
|
||||
SLOT( muteBtnRightClicked() ) );
|
||||
connect( m_muteBtn, SIGNAL( ctrlClick() ), this,
|
||||
SLOT( toggleSolo() ) );
|
||||
m_muteBtn->setWhatsThis(
|
||||
tr( "With this switch you can either mute this track or mute "
|
||||
"all other tracks.\nBy clicking left, this track is "
|
||||
@@ -1128,9 +1128,9 @@ void trackOperationsWidget::paintEvent( QPaintEvent * _pe )
|
||||
setObjectName( "automationDisabled" );
|
||||
setStyle( NULL );
|
||||
m_muteBtn->setActiveGraphic(
|
||||
*s_muteOnDisabled );
|
||||
*s_muteOffEnabled );
|
||||
m_muteBtn->setInactiveGraphic(
|
||||
*s_muteOffDisabled );
|
||||
*s_muteOnEnabled );
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1141,9 +1141,9 @@ void trackOperationsWidget::paintEvent( QPaintEvent * _pe )
|
||||
setObjectName( "automationEnabled" );
|
||||
setStyle( NULL );
|
||||
m_muteBtn->setActiveGraphic(
|
||||
*s_muteOnEnabled );
|
||||
m_muteBtn->setInactiveGraphic(
|
||||
*s_muteOffEnabled );
|
||||
m_muteBtn->setInactiveGraphic(
|
||||
*s_muteOnEnabled );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1191,7 +1191,7 @@ void trackOperationsWidget::setMuted( bool _muted )
|
||||
|
||||
|
||||
|
||||
void trackOperationsWidget::muteBtnRightClicked( void )
|
||||
void trackOperationsWidget::toggleSolo( void )
|
||||
{
|
||||
const bool m = muted(); // next function might modify our mute-state,
|
||||
// so save it now
|
||||
|
||||
@@ -123,7 +123,7 @@ fxMixerView::fxMixerView() :
|
||||
setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
|
||||
|
||||
setWindowTitle( tr( "FX-Mixer" ) );
|
||||
// setWindowIcon( embed::getIconPixmap( "fxmixer" ) );
|
||||
setWindowIcon( embed::getIconPixmap( "fx_mixer" ) );
|
||||
|
||||
m_fxLineBanks = new QStackedLayout;
|
||||
m_fxLineBanks->setSpacing( 0 );
|
||||
|
||||
@@ -317,7 +317,7 @@ void mainWindow::finalize( void )
|
||||
) );
|
||||
|
||||
toolButton * fx_mixer_window = new toolButton(
|
||||
embed::getIconPixmap( "effect_board" ),
|
||||
embed::getIconPixmap( "fx_mixer" ),
|
||||
tr( "Show/hide FX Mixer" ) + " (F11)",
|
||||
this, SLOT( toggleFxMixerWin() ), m_toolBar );
|
||||
fx_mixer_window->setShortcut( Qt::Key_F11 );
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* pixmap_button.cpp - implementation of pixmap-button (often used as "themed"
|
||||
* checkboxes/radiobuttons etc)
|
||||
*
|
||||
* Copyright (c) 2004-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <QtGui/QPainter>
|
||||
|
||||
#include "pixmap_button.h"
|
||||
#include "main_window.h"
|
||||
#include "embed.h"
|
||||
|
||||
|
||||
@@ -76,9 +77,10 @@ void pixmapButton::paintEvent( QPaintEvent * )
|
||||
|
||||
void pixmapButton::mousePressEvent( QMouseEvent * _me )
|
||||
{
|
||||
if( _me->button() == Qt::RightButton )
|
||||
if( _me->button() == Qt::LeftButton &&
|
||||
engine::getMainWindow()->isCtrlPressed() )
|
||||
{
|
||||
emit( clickedRight() );
|
||||
emit( ctrlClick() );
|
||||
_me->accept();
|
||||
}
|
||||
else
|
||||
|
||||
@@ -76,7 +76,8 @@ projectNotes::projectNotes( void ) :
|
||||
engine::getMainWindow()->workspace()->addSubWindow( this );
|
||||
parentWidget()->setAttribute( Qt::WA_DeleteOnClose, FALSE );
|
||||
parentWidget()->move( 700, 10 );
|
||||
parentWidget()->resize( 300, 200 );
|
||||
parentWidget()->resize( 400, 300 );
|
||||
parentWidget()->hide();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -149,23 +149,25 @@ void tabWidget::paintEvent( QPaintEvent * _pe )
|
||||
setFont( pointSize<7>( font() ) );
|
||||
QPainter p( this );
|
||||
|
||||
p.fillRect( 0, 0, width() - 1, height() - 1, QColor( 96, 96, 96 ) );
|
||||
QColor bg_color = QApplication::palette().color( QPalette::Active,
|
||||
QPalette::Background );
|
||||
p.fillRect( 0, 0, width() - 1, height() - 1, bg_color.dark( 132 ) );
|
||||
|
||||
const int c = 0;
|
||||
bool big_tab_captions = ( m_caption == "" );
|
||||
int add = big_tab_captions ? 1 : 0;
|
||||
|
||||
p.setPen( QColor( 64, 64, 64 ) );
|
||||
p.setPen( bg_color.dark( 200 ) );
|
||||
p.drawRect( 0, 0, width() - 1 + c, height() - 1 + c );
|
||||
|
||||
p.setPen( QColor( 160, 160, 160 ) );
|
||||
p.setPen( bg_color.light( 125 ) );
|
||||
p.drawLine( width() - 1, 0, width() - 1, height() - 1 );
|
||||
p.drawLine( 0, height() - 1, width() - 1, height() - 1 );
|
||||
|
||||
p.setPen( QColor( 0, 0, 0 ) );
|
||||
p.drawRect( 1, 1, width() - 3 + c, height() - 3 + c );
|
||||
|
||||
p.fillRect( 2, 2, width() - 4, 9 + add, QColor( 30, 45, 60 ) );
|
||||
p.fillRect( 2, 2, width() - 4, 9 + add, bg_color.dark( 300 ) );
|
||||
p.drawLine( 2, 11 + add, width() - 3, 11 + add );
|
||||
|
||||
if( !big_tab_captions )
|
||||
|
||||