Integrate new Patman artwork

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@977 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-05-17 15:28:34 +00:00
parent 47f1a985b7
commit 69555e9afa
10 changed files with 33 additions and 15 deletions

View File

@@ -3,6 +3,18 @@
* plugins/stereo_matrix/stereomatrix_controls.cpp:
Allow knobs to invert phase as well
* plugins/patman/patman.cpp:
* plugins/patman/patman.h:
* plugins/patman/artwork.png:
* plugins/patman/loop_off.png:
* plugins/patman/loop_on.png:
* plugins/patman/tune_off.png:
* plugins/patman/tune_on.png:
* plugins/patman/select_file_on.png:
* plugins/patman/select_file.png:
- Integrate new patman artwork.
- Make file selection button highlight when clicked.
* include/pixmap_button.h:
* src/gui/widgets/pixmap_button.cpp:
Make button pixmap "activate" on click

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

After

Width:  |  Height:  |  Size: 892 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 934 B

After

Width:  |  Height:  |  Size: 938 B

View File

@@ -450,24 +450,27 @@ patmanView::patmanView( instrument * _instrument, QWidget * _parent ) :
PLUGIN_NAME::getIconPixmap( "artwork" ) );
setPalette( pal );
pixmapButton * open_file_btn = new pixmapButton( this, NULL );
open_file_btn->setCursor( QCursor( Qt::PointingHandCursor ) );
open_file_btn->move( 200, 90 );
open_file_btn->setActiveGraphic( embed::getIconPixmap(
"project_open_down" ) );
open_file_btn->setInactiveGraphic( embed::getIconPixmap(
"project_open" ) );
connect( open_file_btn, SIGNAL( clicked() ),
this, SLOT( openFile() ) );
toolTip::add( open_file_btn, tr( "Open other patch" ) );
open_file_btn->setWhatsThis(
m_openFileButton = new pixmapButton( this, NULL );
m_openFileButton->setObjectName( "openFileButton" );
m_openFileButton->setCursor( QCursor( Qt::PointingHandCursor ) );
m_openFileButton->move( 227, 86 );
m_openFileButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
"select_file_on" ) );
m_openFileButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
"select_file" ) );
connect( m_openFileButton, SIGNAL( clicked() ),
this, SLOT( openFile() ) );
toolTip::add( m_openFileButton, tr( "Open other patch" ) );
m_openFileButton->setWhatsThis(
tr( "Click here to open another patch-file. Loop and Tune "
"settings are not reset." ) );
m_loopButton = new pixmapButton( this, tr( "Loop" ) );
m_loopButton->setObjectName("loopButton");
m_loopButton->setCheckable( TRUE );
m_loopButton->move( 160, 160 );
m_loopButton->move( 195, 138 );
m_loopButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
"loop_on" ) );
m_loopButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
@@ -479,8 +482,9 @@ patmanView::patmanView( instrument * _instrument, QWidget * _parent ) :
"file." ) );
m_tuneButton = new pixmapButton( this, tr( "Tune" ) );
m_tuneButton->setObjectName("tuneButton");
m_tuneButton->setCheckable( TRUE );
m_tuneButton->move( 180, 160 );
m_tuneButton->move( 223, 138 );
m_tuneButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
"tune_on" ) );
m_tuneButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
@@ -631,8 +635,9 @@ void patmanView::paintEvent( QPaintEvent * )
QPainter p( this );
p.setFont( pointSize<8>( font() ) );
p.setPen( QColor( 0x66, 0xFF, 0x66 ) );
p.drawText( 8, 140, m_displayFilename );
p.drawText( 8, 116, 235, 16,
Qt::AlignLeft | Qt::TextSingleLine | Qt::AlignVCenter,
m_displayFilename );
}

View File

@@ -152,6 +152,7 @@ private:
patmanInstrument * m_pi;
QString m_displayFilename;
pixmapButton * m_openFileButton;
pixmapButton * m_loopButton;
pixmapButton * m_tuneButton;

BIN
plugins/patman/select_file.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 828 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 841 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 623 B

After

Width:  |  Height:  |  Size: 764 B