Commit b5077c0e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt Imageset update.

- Add alias for most of the pixmpas. Separate in different folders.
- Change some pixmaps
- Close most of #852
- Close #1799
- Close #1780
parent c6adecf5
...@@ -172,70 +172,81 @@ EXTRA_DIST += \ ...@@ -172,70 +172,81 @@ EXTRA_DIST += \
ui/streampanel.ui \ ui/streampanel.ui \
ui/sout.ui \ ui/sout.ui \
ui/vlm.ui \ ui/vlm.ui \
pixmaps/advprefs_audio.png \ pixmaps/prefs/advprefs_audio.png \
pixmaps/advprefs_codec.png \ pixmaps/prefs/advprefs_codec.png \
pixmaps/advprefs_extended.png \ pixmaps/prefs/advprefs_extended.png \
pixmaps/advprefs_intf.png \ pixmaps/prefs/advprefs_intf.png \
pixmaps/advprefs_playlist.png \ pixmaps/prefs/advprefs_playlist.png \
pixmaps/advprefs_sout.png \ pixmaps/prefs/advprefs_sout.png \
pixmaps/advprefs_video.png \ pixmaps/prefs/advprefs_video.png \
pixmaps/capture-card_16px.png \ pixmaps/prefs/spref_cone_Audio_64.png \
pixmaps/cdda_16px.png \ pixmaps/prefs/spref_cone_Hotkeys_64.png \
pixmaps/disc_16px.png \ pixmaps/prefs/spref_cone_Input_64.png \
pixmaps/file-asym_16px.png \ pixmaps/prefs/spref_cone_Interface_64.png \
pixmaps/file-wide_16px.png \ pixmaps/prefs/spref_cone_Subtitles_64.png \
pixmaps/folder-blue_16px.png \ pixmaps/prefs/spref_cone_Video_64.png \
pixmaps/folder-grey_16px.png \ pixmaps/types/capture-card_16px.png \
pixmaps/types/cdda_16px.png \
pixmaps/types/disc_16px.png \
pixmaps/types/file-asym_16px.png \
pixmaps/types/file-wide_16px.png \
pixmaps/types/folder-blue_16px.png \
pixmaps/types/folder-grey_16px.png \
pixmaps/types/harddisk_16px.png \
pixmaps/types/network_16px.png \
pixmaps/menus/help_16px.png \
pixmaps/menus/info_16px.png \
pixmaps/menus/messages_16px.png \
pixmaps/menus/preferences_16px.png \
pixmaps/menus/quit_16px.png \
pixmaps/menus/settings_16px.png \
pixmaps/menus/stream_16px.png \
pixmaps/menus/playlist_16px.png \
pixmaps/go-next.png \ pixmaps/go-next.png \
pixmaps/harddisk_16px.png \
pixmaps/menus_help_16px.png \
pixmaps/menus_info_16px.png \
pixmaps/menus_messages_16px.png \
pixmaps/menus_preferences_16px.png \
pixmaps/menus_quit_16px.png \
pixmaps/menus_settings_16px.png \
pixmaps/menus_stream_16px.png \
pixmaps/network_16px.png \
pixmaps/next_16px.png \ pixmaps/next_16px.png \
pixmaps/next.png \ pixmaps/next.png \
pixmaps/noart.png \ pixmaps/noart.png \
pixmaps/pause_16px.png \ pixmaps/pause_16px.png \
pixmaps/pause.png \ pixmaps/pause.png \
pixmaps/play_16px.png \ pixmaps/play_16px.png \
pixmaps/playlist_16px.png \ pixmaps/playlist/add.png \
pixmaps/playlist_add.png \ pixmaps/playlist/playlist.png \
pixmaps/playlist.png \ pixmaps/playlist/repeat_all.png \
pixmaps/playlist_repeat_all.png \ pixmaps/playlist/repeat_off.png \
pixmaps/playlist_repeat_off.png \ pixmaps/playlist/repeat_one.png \
pixmaps/playlist_repeat_one.png \ pixmaps/playlist/shuffle_off.png \
pixmaps/playlist_shuffle_off.png \ pixmaps/playlist/shuffle_on.png \
pixmaps/playlist_shuffle_on.png \
pixmaps/play.png \ pixmaps/play.png \
pixmaps/previous_16px.png \ pixmaps/previous_16px.png \
pixmaps/previous.png \ pixmaps/previous.png \
pixmaps/record_16px.png \
pixmaps/tv.png \
pixmaps/tvtelx.png \
pixmaps/tvtelx-transparent.png \
pixmaps/spref_cone_Audio_64.png \
pixmaps/spref_cone_Hotkeys_64.png \
pixmaps/spref_cone_Input_64.png \
pixmaps/spref_cone_Interface_64.png \
pixmaps/spref_cone_Subtitles_64.png \
pixmaps/spref_cone_Video_64.png \
pixmaps/stop_16px.png \ pixmaps/stop_16px.png \
pixmaps/stop.png \ pixmaps/stop.png \
pixmaps/tape_16px.png \ pixmaps/eject.png \
pixmaps/type_directory.png \ pixmaps/update.png \
pixmaps/type_file.png \ pixmaps/clear.png \
pixmaps/type_net.png \ pixmaps/arrow_down_dark.png \
pixmaps/type_node.png \ pixmaps/types/tape_16px.png \
pixmaps/type_playlist.png \ pixmaps/types/type_directory.png \
pixmaps/type_unknown.xpm \ pixmaps/types/type_file.png \
pixmaps/volume-high.png \ pixmaps/types/type_net.png \
pixmaps/volume-medium.png \ pixmaps/types/type_node.png \
pixmaps/volume-low.png \ pixmaps/types/type_playlist.png \
pixmaps/volume-muted.png \ pixmaps/types/type_unknown.xpm \
pixmaps/volume-slider.svg \ pixmaps/toolbar/extended_16px.png \
pixmaps/volume-slider-inside.png \ pixmaps/toolbar/record_16px.png \
pixmaps/volume-slider-outside.png pixmaps/toolbar/snapshot.png \
pixmaps/toolbar/atob.png \
pixmaps/toolbar/dvd_menu.png \
pixmaps/toolbar/dvd_next.png \
pixmaps/toolbar/dvd_prev.png \
pixmaps/toolbar/tv.png \
pixmaps/toolbar/fullscreen.png \
pixmaps/toolbar/tvtelx.png \
pixmaps/toolbar/tvtelx-transparent.png \
pixmaps/toolbar/volume-high.png \
pixmaps/toolbar/volume-medium.png \
pixmaps/toolbar/volume-low.png \
pixmaps/toolbar/volume-muted.png \
pixmaps/toolbar/volume-slider.svg \
pixmaps/toolbar/volume-slider-inside.png \
pixmaps/toolbar/volume-slider-outside.png
...@@ -65,13 +65,13 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) : ...@@ -65,13 +65,13 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
/* Nice icons */ /* Nice icons */
#define BI( a,b) QIcon a##_icon = QIcon( QPixmap( b )) #define BI( a,b) QIcon a##_icon = QIcon( QPixmap( b ))
BI( audio, ":/pixmaps/advprefs_audio.png" ); BI( audio, ":/advprefs_audio" );
BI( video, ":/pixmaps/advprefs_video.png" ); BI( video, ":/advprefs_video" );
BI( input, ":/pixmaps/advprefs_codec.png" ); BI( input, ":/advprefs_codec" );
BI( sout, ":/pixmaps/advprefs_sout.png" ); BI( sout, ":/advprefs_sout" );
BI( advanced, ":/pixmaps/advprefs_extended.png" ); BI( advanced, ":/advprefs_extended" );
BI( playlist, ":/pixmaps/advprefs_playlist.png" ); BI( playlist, ":/advprefs_playlist" );
BI( interface, ":/pixmaps/advprefs_intf.png" ); BI( interface, ":/advprefs_intf" );
#undef BI #undef BI
/* Build the tree for the main module */ /* Build the tree for the main module */
......
...@@ -1332,8 +1332,6 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) : ...@@ -1332,8 +1332,6 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) :
updateButton = new QToolButton; updateButton = new QToolButton;
updateButton->setAutoRaise( true ); updateButton->setAutoRaise( true );
updateButton->setText( "u" );
updateButton->setToolTip( qtr( "Force update of this dialog's values" ) );
mainLayout->addWidget( updateButton, 0, 4, 1, 1 ); mainLayout->addWidget( updateButton, 0, 4, 1, 1 );
...@@ -1348,7 +1346,8 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) : ...@@ -1348,7 +1346,8 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) :
CONNECT( subsSpin, valueChanged ( double ), this, advanceSubs( double ) ) ; CONNECT( subsSpin, valueChanged ( double ), this, advanceSubs( double ) ) ;
CONNECT( subSpeedSpin, valueChanged ( double ), CONNECT( subSpeedSpin, valueChanged ( double ),
this, adjustSubsSpeed( double ) ); this, adjustSubsSpeed( double ) );
BUTTONACT( updateButton, update() ); BUTTON_SET_ACT_I( updateButton, "", update,
qtr( "Force update of this dialog's values" ), update() );
/* Set it */ /* Set it */
update(); update();
......
...@@ -306,7 +306,8 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) : ...@@ -306,7 +306,8 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) :
ABButton = new QPushButton( "AB" ); ABButton = new QPushButton( "AB" );
setupSmallButton( ABButton ); setupSmallButton( ABButton );
advLayout->addWidget( ABButton ); advLayout->addWidget( ABButton );
BUTTON_SET_ACT( ABButton, "AB", qtr( "A to B" ), fromAtoB() ); BUTTON_SET_ACT_I( ABButton, "", atob_nob,
qtr( "Loop from point A to point B continuously\nClick to set point A" ), fromAtoB() );
timeA = timeB = 0; timeA = timeB = 0;
CONNECT( THEMIM->getIM(), positionUpdated( float, int, int ), CONNECT( THEMIM->getIM(), positionUpdated( float, int, int ),
this, AtoBLoop( float, int, int ) ); this, AtoBLoop( float, int, int ) );
...@@ -321,14 +322,15 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) : ...@@ -321,14 +322,15 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) :
recordButton = new QPushButton( "R" ); recordButton = new QPushButton( "R" );
setupSmallButton( recordButton ); setupSmallButton( recordButton );
advLayout->addWidget( recordButton ); advLayout->addWidget( recordButton );
BUTTON_SET_ACT_I( recordButton, "", record_16px.png, BUTTON_SET_ACT_I( recordButton, "", record,
qtr( "Record" ), record() ); qtr( "Record" ), record() );
/* Snapshot Button */ /* Snapshot Button */
snapshotButton = new QPushButton( "S" ); snapshotButton = new QPushButton( "S" );
setupSmallButton( snapshotButton ); setupSmallButton( snapshotButton );
advLayout->addWidget( snapshotButton ); advLayout->addWidget( snapshotButton );
BUTTON_SET_ACT( snapshotButton, "S", qtr( "Take a snapshot" ), snapshot() ); BUTTON_SET_ACT_I( snapshotButton, "", snapshot,
qtr( "Take a snapshot" ), snapshot() );
} }
AdvControlsWidget::~AdvControlsWidget() AdvControlsWidget::~AdvControlsWidget()
...@@ -361,19 +363,22 @@ void AdvControlsWidget::fromAtoB() ...@@ -361,19 +363,22 @@ void AdvControlsWidget::fromAtoB()
if( !timeA ) if( !timeA )
{ {
timeA = var_GetTime( THEMIM->getInput(), "time" ); timeA = var_GetTime( THEMIM->getInput(), "time" );
ABButton->setText( "A->..." ); ABButton->setToolTip( "Click to set point B" );
ABButton->setIcon( QIcon( ":/atob_noa" ) );
return; return;
} }
if( !timeB ) if( !timeB )
{ {
timeB = var_GetTime( THEMIM->getInput(), "time" ); timeB = var_GetTime( THEMIM->getInput(), "time" );
var_SetTime( THEMIM->getInput(), "time" , timeA ); var_SetTime( THEMIM->getInput(), "time" , timeA );
ABButton->setText( "A<=>B" ); ABButton->setIcon( QIcon( ":/atob" ) );
ABButton->setToolTip( "Stop the A to B loop" );
return; return;
} }
timeA = 0; timeA = 0;
timeB = 0; timeB = 0;
ABButton->setText( "AB" ); ABButton->setToolTip( qtr( "Loop from point A to point B continuously\nClick to set point A" ) );
ABButton->setIcon( QIcon( ":/atob_nob" ) );
} }
/* Function called regularly when in an AtoB loop */ /* Function called regularly when in an AtoB loop */
...@@ -453,9 +458,9 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -453,9 +458,9 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
setupSmallButton( nextSectionButton ); setupSmallButton( nextSectionButton );
discLayout->addWidget( nextSectionButton ); discLayout->addWidget( nextSectionButton );
BUTTON_SET_IMG( prevSectionButton, "", previous.png, "" ); BUTTON_SET_IMG( prevSectionButton, "", dvd_prev, "" );
BUTTON_SET_IMG( nextSectionButton, "", next.png, "" ); BUTTON_SET_IMG( nextSectionButton, "", dvd_next, "" );
BUTTON_SET_IMG( menuButton, "", previous.png, qtr( "Menu" ) ); BUTTON_SET_IMG( menuButton, "", dvd_menu, qtr( "Menu" ) );
discFrame->hide(); discFrame->hide();
...@@ -504,7 +509,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -504,7 +509,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
CONNECT( THEMIM->getIM(), setNewTelexPage( int ), CONNECT( THEMIM->getIM(), setNewTelexPage( int ),
telexPage, setValue( int ) ); telexPage, setValue( int ) );
BUTTON_SET_IMG( telexOn, "", tv.png, qtr( "Teletext on" ) ); BUTTON_SET_IMG( telexOn, "", tv, qtr( "Teletext on" ) );
CONNECT( telexOn, clicked(), THEMIM->getIM(), CONNECT( telexOn, clicked(), THEMIM->getIM(),
telexToggleButtons() ); telexToggleButtons() );
...@@ -516,7 +521,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -516,7 +521,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
telexTransparent->setEnabled( false ); telexTransparent->setEnabled( false );
telexPage->setEnabled( false ); telexPage->setEnabled( false );
BUTTON_SET_IMG( telexTransparent, "", tvtelx.png, qtr( "Teletext" ) ); BUTTON_SET_IMG( telexTransparent, "", tvtelx, qtr( "Teletext" ) );
CONNECT( telexTransparent, clicked( bool ), CONNECT( telexTransparent, clicked( bool ),
THEMIM->getIM(), telexSetTransparency() ); THEMIM->getIM(), telexSetTransparency() );
CONNECT( THEMIM->getIM(), toggleTelexTransparency(), CONNECT( THEMIM->getIM(), toggleTelexTransparency(),
...@@ -564,18 +569,19 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -564,18 +569,19 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
/* Add this block to the main layout */ /* Add this block to the main layout */
BUTTON_SET_ACT_I( playButton, "", play.png, qtr( "Play" ), play() ); BUTTON_SET_ACT_I( playButton, "", play_b, qtr( "Play" ), play() );
BUTTON_SET_ACT_I( prevButton, "" , previous.png, BUTTON_SET_ACT_I( prevButton, "" , previous_b,
qtr( "Previous" ), prev() ); qtr( "Previous" ), prev() );
BUTTON_SET_ACT_I( nextButton, "", next.png, qtr( "Next" ), next() ); BUTTON_SET_ACT_I( nextButton, "", next_b, qtr( "Next" ), next() );
BUTTON_SET_ACT_I( stopButton, "", stop.png, qtr( "Stop" ), stop() ); BUTTON_SET_ACT_I( stopButton, "", stop_b, qtr( "Stop" ), stop() );
/* /*
* Other first Line buttons * Other first Line buttons
*/ */
/** Fullscreen/Visualisation **/ /** Fullscreen/Visualisation **/
fullscreenButton = new QPushButton( "F" ); fullscreenButton = new QPushButton;
BUTTON_SET_ACT( fullscreenButton, "F", qtr( "Fullscreen" ), fullscreen() ); BUTTON_SET_ACT_I( fullscreenButton, "", fullscreen, qtr( "Fullscreen" ),
fullscreen() );
setupSmallButton( fullscreenButton ); setupSmallButton( fullscreenButton );
if( !b_fsCreation ) if( !b_fsCreation )
...@@ -583,13 +589,13 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -583,13 +589,13 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
/** Playlist Button **/ /** Playlist Button **/
playlistButton = new QPushButton; playlistButton = new QPushButton;
setupSmallButton( playlistButton ); setupSmallButton( playlistButton );
BUTTON_SET_IMG( playlistButton, "" , playlist.png, qtr( "Show playlist" ) ); BUTTON_SET_IMG( playlistButton, "" , playlist, qtr( "Show playlist" ) );
CONNECT( playlistButton, clicked(), _p_mi, togglePlaylist() ); CONNECT( playlistButton, clicked(), _p_mi, togglePlaylist() );
/** extended Settings **/ /** extended Settings **/
extSettingsButton = new QPushButton; extSettingsButton = new QPushButton;
BUTTON_SET_ACT( extSettingsButton, "Ex", qtr( "Extended settings" ), BUTTON_SET_ACT_I( extSettingsButton, "", extended,
extSettings() ); qtr( "Extended settings" ), extSettings() );
setupSmallButton( extSettingsButton ); setupSmallButton( extSettingsButton );
} }
...@@ -597,7 +603,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -597,7 +603,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
hVolLabel = new VolumeClickHandler( p_intf, this ); hVolLabel = new VolumeClickHandler( p_intf, this );
volMuteLabel = new QLabel; volMuteLabel = new QLabel;
volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-medium.png" ) ); volMuteLabel->setPixmap( QPixmap( ":/volume-medium" ) );
volMuteLabel->setToolTip( qtr( "Mute" ) ); volMuteLabel->setToolTip( qtr( "Mute" ) );
volMuteLabel->installEventFilter( hVolLabel ); volMuteLabel->installEventFilter( hVolLabel );
...@@ -703,13 +709,13 @@ void ControlsWidget::toggleTeletextTransparency() ...@@ -703,13 +709,13 @@ void ControlsWidget::toggleTeletextTransparency()
{ {
if( b_telexTransparent ) if( b_telexTransparent )
{ {
telexTransparent->setIcon( QIcon( ":/pixmaps/tvtelx.png" ) ); telexTransparent->setIcon( QIcon( ":/tvtelx" ) );
telexTransparent->setToolTip( qtr( "Teletext" ) ); telexTransparent->setToolTip( qtr( "Teletext" ) );
b_telexTransparent = false; b_telexTransparent = false;
} }
else else
{ {
telexTransparent->setIcon( QIcon( ":/pixmaps/tvtelx-transparent.png" ) ); telexTransparent->setIcon( QIcon( ":/tvtelx-transparent" ) );
telexTransparent->setToolTip( qtr( "Transparent" ) ); telexTransparent->setToolTip( qtr( "Transparent" ) );
b_telexTransparent = true; b_telexTransparent = true;
} }
...@@ -773,12 +779,12 @@ void ControlsWidget::updateVolume( int i_sliderVolume ) ...@@ -773,12 +779,12 @@ void ControlsWidget::updateVolume( int i_sliderVolume )
aout_VolumeSet( p_intf, i_res ); aout_VolumeSet( p_intf, i_res );
} }
if( i_sliderVolume == 0 ) if( i_sliderVolume == 0 )
volMuteLabel->setPixmap( QPixmap(":/pixmaps/volume-muted.png" ) ); volMuteLabel->setPixmap( QPixmap(":/volume-muted" ) );
else if( i_sliderVolume < VOLUME_MAX / 3 ) else if( i_sliderVolume < VOLUME_MAX / 3 )
volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-low.png" ) ); volMuteLabel->setPixmap( QPixmap( ":/volume-low" ) );
else if( i_sliderVolume > (VOLUME_MAX * 2 / 3 ) ) else if( i_sliderVolume > (VOLUME_MAX * 2 / 3 ) )
volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-high.png" ) ); volMuteLabel->setPixmap( QPixmap( ":/volume-high" ) );
else volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-medium.png" ) ); else volMuteLabel->setPixmap( QPixmap( ":/volume-medium" ) );
} }
void ControlsWidget::updateVolume() void ControlsWidget::updateVolume()
...@@ -808,12 +814,12 @@ void ControlsWidget::setStatus( int status ) ...@@ -808,12 +814,12 @@ void ControlsWidget::setStatus( int status )
{ {
if( status == PLAYING_S ) /* Playing */ if( status == PLAYING_S ) /* Playing */
{ {
playButton->setIcon( QIcon( ":/pixmaps/pause.png" ) ); playButton->setIcon( QIcon( ":/pause_b" ) );
playButton->setToolTip( qtr( "Pause" ) ); playButton->setToolTip( qtr( "Pause" ) );
} }
else else
{ {
playButton->setIcon( QIcon( ":/pixmaps/play.png" ) ); playButton->setIcon( QIcon( ":/play_b" ) );
playButton->setToolTip( qtr( "Play" ) ); playButton->setToolTip( qtr( "Play" ) );
} }
} }
......
...@@ -256,7 +256,8 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -256,7 +256,8 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
BUTTONACT( ui.audioCDRadioButton, updateButtons() ); BUTTONACT( ui.audioCDRadioButton, updateButtons() );
BUTTONACT( ui.dvdsimple, updateButtons() ); BUTTONACT( ui.dvdsimple, updateButtons() );
BUTTONACT( ui.browseDiscButton, browseDevice() ); BUTTONACT( ui.browseDiscButton, browseDevice() );
BUTTONACT( ui.ejectButton, eject() ); BUTTON_SET_ACT_I( ui.ejectButton, "", eject, qtr( "Eject the disc" ),
eject() );
CONNECT( ui.deviceCombo, editTextChanged( QString ), this, updateMRL()); CONNECT( ui.deviceCombo, editTextChanged( QString ), this, updateMRL());
CONNECT( ui.titleSpin, valueChanged( int ), this, updateMRL()); CONNECT( ui.titleSpin, valueChanged( int ), this, updateMRL());
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include "components/playlist/playlist_model.hpp" #include "components/playlist/playlist_model.hpp"
#include <vlc_intf_strings.h> #include <vlc_intf_strings.h>
#include "pixmaps/type_unknown.xpm"
#include <QSettings> #include <QSettings>
#include "sorting.h" #include "sorting.h"
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "dialogs/mediainfo.hpp" #include "dialogs/mediainfo.hpp"
#include <vlc_intf_strings.h> #include <vlc_intf_strings.h>
#include "pixmaps/type_unknown.xpm" #include "pixmaps/types/type_unknown.xpm"
#include <assert.h> #include <assert.h>
#include <QIcon> #include <QIcon>
...@@ -83,14 +83,14 @@ PLModel::PLModel( playlist_t *_p_playlist, /* THEPL */ ...@@ -83,14 +83,14 @@ PLModel::PLModel( playlist_t *_p_playlist, /* THEPL */
/* Icons initialization */ /* Icons initialization */
#define ADD_ICON(type, x) icons[ITEM_TYPE_##type] = QIcon( QPixmap( x ) ) #define ADD_ICON(type, x) icons[ITEM_TYPE_##type] = QIcon( QPixmap( x ) )
ADD_ICON( UNKNOWN , type_unknown_xpm ); ADD_ICON( UNKNOWN , type_unknown_xpm );
ADD_ICON( FILE, ":/pixmaps/type_file.png" ); ADD_ICON( FILE, ":/type_file" );
ADD_ICON( DIRECTORY, ":/pixmaps/type_directory.png" ); ADD_ICON( DIRECTORY, ":/type_directory" );
ADD_ICON( DISC, ":/pixmaps/disc_16px.png" ); ADD_ICON( DISC, ":/disc" );
ADD_ICON( CDDA, ":/pixmaps/cdda_16px.png" ); ADD_ICON( CDDA, ":/cdda" );
ADD_ICON( CARD, ":/pixmaps/capture-card_16px.png" ); ADD_ICON( CARD, ":/capture-card" );
ADD_ICON( NET, ":/pixmaps/type_net.png" ); ADD_ICON( NET, ":/type_net" );
ADD_ICON( PLAYLIST, ":/pixmaps/type_playlist.png" ); ADD_ICON( PLAYLIST, ":/type_playlist" );
ADD_ICON( NODE, ":/pixmaps/type_node.png" ); ADD_ICON( NODE, ":/type_node" );
#undef ADD_ICON #undef ADD_ICON
rebuild( p_root ); rebuild( p_root );
......
...@@ -99,7 +99,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -99,7 +99,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
/* Add item to the playlist button */ /* Add item to the playlist button */
addButton = new QPushButton; addButton = new QPushButton;
addButton->setIcon( QIcon( ":/pixmaps/playlist_add.png" ) ); addButton->setIcon( QIcon( ":/playlist_add" ) );
addButton->setMaximumWidth( 30 ); addButton->setMaximumWidth( 30 );
BUTTONACT( addButton, popupAdd() ); BUTTONACT( addButton, popupAdd() );
buttons->addWidget( addButton ); buttons->addWidget( addButton );
...@@ -108,12 +108,12 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -108,12 +108,12 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
randomButton = new QPushButton( this ); randomButton = new QPushButton( this );
if( model->hasRandom() ) if( model->hasRandom() )
{ {
randomButton->setIcon( QIcon( ":/pixmaps/playlist_shuffle_on.png" )); randomButton->setIcon( QIcon( ":/shuffle_on" ));
randomButton->setToolTip( qtr( I_PL_RANDOM )); randomButton->setToolTip( qtr( I_PL_RANDOM ));
} }
else else
{ {
randomButton->setIcon( QIcon( ":/pixmaps/playlist_shuffle_off.png" ) ); randomButton->setIcon( QIcon( ":/shuffle_off" ) );
randomButton->setToolTip( qtr( I_PL_NORANDOM )); randomButton->setToolTip( qtr( I_PL_NORANDOM ));
} }
BUTTONACT( randomButton, toggleRandom() ); BUTTONACT( randomButton, toggleRandom() );
...@@ -123,17 +123,17 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -123,17 +123,17 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
repeatButton = new QPushButton( this ); repeatButton = new QPushButton( this );
if( model->hasRepeat() ) if( model->hasRepeat() )
{ {
repeatButton->setIcon( QIcon( ":/pixmaps/playlist_repeat_one.png" ) ); repeatButton->setIcon( QIcon( ":/repeat_one" ) );
repeatButton->setToolTip( qtr( I_PL_REPEAT )); repeatButton->setToolTip( qtr( I_PL_REPEAT ));
} }
else if( model->hasLoop() ) else if( model->hasLoop() )
{ {
repeatButton->setIcon( QIcon( ":/pixmaps/playlist_repeat_all.png" ) ); repeatButton->setIcon( QIcon( ":/repeat_all" ) );
repeatButton->setToolTip( qtr( I_PL_LOOP )); repeatButton->setToolTip( qtr( I_PL_LOOP ));
} }
else else
{ {
repeatButton->setIcon( QIcon( ":/pixmaps/playlist_repeat_off.png" ) ); repeatButton->setIcon( QIcon( ":/repeat_off" ) );
repeatButton->setToolTip( qtr( I_PL_NOREPEAT )); repeatButton->setToolTip( qtr( I_PL_NOREPEAT ));
} }
BUTTONACT( repeatButton, toggleRepeat() ); BUTTONACT( repeatButton, toggleRepeat() );
...@@ -158,10 +158,8 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -158,10 +158,8 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
buttons->addWidget( searchLine ); filter->setBuddy( searchLine ); buttons->addWidget( searchLine ); filter->setBuddy( searchLine );
QPushButton *clear = new QPushButton; QPushButton *clear = new QPushButton;
clear->setText( qfu( "CL") );
clear->setMaximumWidth( 30 ); clear->setMaximumWidth( 30 );
clear->setToolTip( qtr( "Clear" )); BUTTON_SET_ACT_I( clear, "", clear, qtr( "Clear" ), clearFilter() );
BUTTONACT( clear, clearFilter() );
buttons->addWidget( clear ); buttons->addWidget( clear );
/* Finish the layout */ /* Finish the layout */
...@@ -177,19 +175,19 @@ void StandardPLPanel::toggleRepeat() ...@@ -177,19 +175,19 @@ void StandardPLPanel::toggleRepeat()
if( model->hasRepeat() ) if( model->hasRepeat() )
{ {
model->setRepeat( false ); model->setLoop( true ); model->setRepeat( false ); model->setLoop( true );
repeatButton->setIcon( QIcon( ":/pixmaps/playlist_repeat_all.png" ) ); repeatButton->setIcon( QIcon( ":/repeat_all" ) );
repeatButton->setToolTip( qtr( I_PL_LOOP )); repeatButton->setToolTip( qtr( I_PL_LOOP ));
} }
else if( model->hasLoop() ) else if( model->hasLoop() )
{ {
model->setRepeat( false ) ; model->setLoop( false ); model->setRepeat( false ) ; model->setLoop( false );
repeatButton->setIcon( QIcon( ":/pixmaps/playlist_repeat_off.png" ) ); repeatButton->setIcon( QIcon( ":/repeat_off" ) );
repeatButton->setToolTip( qtr( I_PL_NOREPEAT )); repeatButton->setToolTip( qtr( I_PL_NOREPEAT ));
} }
else else
{ {
model->setRepeat( true ); model->setRepeat( true );
repeatButton->setIcon( QIcon( ":/pixmaps/playlist_repeat_one.png" ) ); repeatButton->setIcon( QIcon( ":/repeat_one" ) );
repeatButton->setToolTip( qtr( I_PL_REPEAT )); repeatButton->setToolTip( qtr( I_PL_REPEAT ));
} }
} }
...@@ -200,8 +198,8 @@ void StandardPLPanel::toggleRandom() ...@@ -200,8 +198,8 @@ void StandardPLPanel::toggleRandom()
bool prev = model->hasRandom(); bool prev = model->hasRandom();
model->setRandom( !prev ); model->setRandom( !prev );
randomButton->setIcon( prev ? randomButton->setIcon( prev ?
QIcon( ":/pixmaps/playlist_shuffle_off.png" ) : QIcon( ":/shuffle_off" ) :
QIcon( ":/pixmaps/playlist_shuffle_on.png" ) ); QIcon( ":/shuffle_on" ) );
randomButton->setToolTip( prev ? qtr( I_PL_NORANDOM ) : qtr(I_PL_RANDOM ) ); randomButton->setToolTip( prev ? qtr( I_PL_NORANDOM ) : qtr(I_PL_RANDOM ) );
} }
......
...@@ -60,7 +60,7 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent ) : ...@@ -60,7 +60,7 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent ) :
#define ADD_CATEGORY( button, label, icon, numb ) \ #define ADD_CATEGORY( button, label, icon, numb ) \
QToolButton * button = new QToolButton( this ); \ QToolButton * button = new QToolButton( this ); \
button->setIcon( QIcon( ":/pixmaps/" #icon ) ); \ button->setIcon( QIcon( ":/pixmaps/prefs/" #icon ) ); \
button->setIconSize( QSize( ICON_HEIGHT , ICON_HEIGHT ) ); \ button->setIconSize( QSize( ICON_HEIGHT , ICON_HEIGHT ) ); \
button->setText( label ); \ button->setText( label ); \
button->setToolButtonStyle( Qt::ToolButtonTextUnderIcon ); \ button->setToolButtonStyle( Qt::ToolButtonTextUnderIcon ); \
......
...@@ -492,11 +492,11 @@ VLMAWidget::VLMAWidget( QString _name, ...@@ -492,11 +492,11 @@ VLMAWidget::VLMAWidget( QString _name,
objLayout->addWidget( time, 1, 3, 1, 2 );*/ objLayout->addWidget( time, 1, 3, 1, 2 );*/
QToolButton *modifyButton = new QToolButton; QToolButton *modifyButton = new QToolButton;
modifyButton->setIcon( QIcon( QPixmap( ":/pixmaps/menus_settings_16px.png" ) ) ); modifyButton->setIcon( QIcon( QPixmap( ":/settings" ) ) );
objLayout->addWidget( modifyButton, 0, 5 ); objLayout->addWidget( modifyButton, 0, 5 );
QToolButton *deleteButton = new QToolButton; QToolButton *deleteButton = new QToolButton;
deleteButton->setIcon( QIcon( QPixmap( ":/pixmaps/menus_quit_16px.png" ) ) ); deleteButton->setIcon( QIcon( QPixmap( ":/quit" ) ) );
objLayout->addWidget( deleteButton, 0, 6 ); objLayout->addWidget( deleteButton, 0, 6 );
BUTTONACT( modifyButton, modify() ); BUTTONACT( modifyButton, modify() );
...@@ -514,12 +514,6 @@ void VLMAWidget::del() ...@@ -514,12 +514,6 @@ void VLMAWidget::del()
parent->removeVLMItem( this ); parent->removeVLMItem( this );
} }
//FIXME, remove me before release
void VLMAWidget::enterEvent( QEvent *event )
{
printf( "test" );
}
void VLMAWidget::toggleEnabled( bool b_enable ) void VLMAWidget::toggleEnabled( bool b_enable )
{ {
VLMWrapper::EnableItem( name, b_enable ); VLMWrapper::EnableItem( name, b_enable );
...@@ -538,12 +532,12 @@ VLMBroadcast::VLMBroadcast( QString _name, QString _input, QString _output, ...@@ -538,12 +532,12 @@ VLMBroadcast::VLMBroadcast( QString _name, QString _input, QString _output,
b_looped = _looped; b_looped = _looped;
playButton = new QToolButton; playButton = new QToolButton;
playButton->setIcon( QIcon( QPixmap( ":/pixmaps/play_16px.png" ) ) ); playButton->setIcon( QIcon( QPixmap( ":/play_16px" ) ) );
objLayout->addWidget( playButton, 1, 0 ); objLayout->addWidget( playButton, 1, 0 );
b_playing = true; b_playing = true;
QToolButton *stopButton = new QToolButton; QToolButton *stopButton = new QToolButton;
stopButton->setIcon( QIcon( QPixmap( ":/pixmaps/stop_16px.png" ) ) ); stopButton->setIcon( QIcon( QPixmap( ":/stop_16px" ) ) );
objLayout->addWidget( stopButton, 1, 1 ); objLayout->addWidget( stopButton, 1, 1 );
loopButton = new QToolButton; loopButton = new QToolButton;
...@@ -560,9 +554,9 @@ void VLMBroadcast::update() ...@@ -560,9 +554,9 @@ void VLMBroadcast::update()
{ {
VLMWrapper::EditBroadcast( name, input, output, b_enabled, b_looped ); VLMWrapper::EditBroadcast( name, input, output, b_enabled, b_looped );
if( b_looped ) if( b_looped )
loopButton->setIcon( QIcon( QPixmap( ":/pixmaps/playlist_repeat_all.png" ) ) ); loopButton->setIcon( QIcon( QPixmap( ":/repeat_all" ) ) );
else else
loopButton->setIcon( QIcon( QPixmap( ":/pixmaps/playlist_repeat_off.png" ) ) ); loopButton->setIcon( QIcon( QPixmap( ":/repeat_off" ) ) );
} }
void VLMBroadcast::togglePlayPause() void VLMBroadcast::togglePlayPause()
...@@ -570,12 +564,12 @@ void VLMBroadcast::togglePlayPause() ...@@ -570,12 +564,12 @@ void VLMBroadcast::togglePlayPause()
if( b_playing = true ) if( b_playing = true )
{ {
VLMWrapper::ControlBroadcast( name, ControlBroadcastPause ); VLMWrapper::ControlBroadcast( name, ControlBroadcastPause );
playButton->setIcon( QIcon( QPixmap( ":/pixmaps/pause_16px.png" ) ) ); playButton->setIcon( QIcon( QPixmap( ":/pause_16px" ) ) );
} }
else else
{ {
VLMWrapper::ControlBroadcast( name, ControlBroadcastPlay ); VLMWrapper::ControlBroadcast( name, ControlBroadcastPlay );
playButton->setIcon( QIcon( QPixmap( ":/pixmaps/play_16px.png" ) ) ); playButton->setIcon( QIcon( QPixmap( ":/play_16px" ) ) );
} }
b_playing = !b_playing; b_playing = !b_playing;
} }
...@@ -589,7 +583,7 @@ void VLMBroadcast::toggleLoop() ...@@ -589,7 +583,7 @@ void VLMBroadcast::toggleLoop()
void VLMBroadcast::stop() void VLMBroadcast::stop()
{ {
VLMWrapper::ControlBroadcast( name, ControlBroadcastStop ); VLMWrapper::ControlBroadcast( name, ControlBroadcastStop );
playButton->setIcon( QIcon( QPixmap( ":/pixmaps/play_16px.png" ) ) ); playButton->setIcon( QIcon( QPixmap( ":/play_16px" ) ) );
} }
/**************** /****************
......
...@@ -167,7 +167,6 @@ protected: ...@@ -167,7 +167,6 @@ protected:
bool b_enabled; bool b_enabled;
int type; int type;
VLMDialog *parent; VLMDialog *parent;
virtual void enterEvent( QEvent * );
QGridLayout *objLayout; QGridLayout *objLayout;
private slots: private slots:
virtual void modify(); virtual void modify();
......
...@@ -293,27 +293,27 @@ QMenu *QVLCMenu::FileMenu() ...@@ -293,27 +293,27 @@ QMenu *QVLCMenu::FileMenu()
QMenu *menu = new QMenu(); QMenu *menu = new QMenu();
addDPStaticEntry( menu, qtr( "&Open File..." ), "", addDPStaticEntry( menu, qtr( "&Open File..." ), "",
":/pixmaps/file-asym_16px.png", SLOT( openFileDialog() ), "Ctrl+O" ); ":/file-asym", SLOT( openFileDialog() ), "Ctrl+O" );
addDPStaticEntry( menu, qtr( I_OPEN_FOLDER ), "", addDPStaticEntry( menu, qtr( I_OPEN_FOLDER ), "",
":/pixmaps/folder-grey_16px.png", SLOT( PLAppendDir() ), "Ctrl+F" ); ":/folder-grey", SLOT( PLAppendDir() ), "Ctrl+F" );
addDPStaticEntry( menu, qtr( "Open &Disc..." ), "", addDPStaticEntry( menu, qtr( "Open &Disc..." ), "",
":/pixmaps/disc_16px.png", SLOT( openDiscDialog() ), "Ctrl+D" ); ":/disc", SLOT( openDiscDialog() ), "Ctrl+D" );
addDPStaticEntry( menu, qtr( "Open &Network..." ), "", addDPStaticEntry( menu, qtr( "Open &Network..." ), "",
":/pixmaps/network_16px.png", SLOT( openNetDialog() ), "Ctrl+N" ); ":/network", SLOT( openNetDialog() ), "Ctrl+N" );
addDPStaticEntry( menu, qtr( "Open &Capture Device..." ), "", addDPStaticEntry( menu, qtr( "Open &Capture Device..." ), "",
":/pixmaps/capture-card_16px.png", SLOT( openCaptureDialog() ), ":/capture-card", SLOT( openCaptureDialog() ),
"Ctrl+C" ); "Ctrl+C" );
menu->addSeparator(); menu->addSeparator();
addDPStaticEntry( menu, qtr( "&Streaming..." ), "", addDPStaticEntry( menu, qtr( "&Streaming..." ), "",
":/pixmaps/menus_stream_16px.png", SLOT( openThenStreamingDialogs() ), ":/stream", SLOT( openThenStreamingDialogs() ),
"Ctrl+S" ); "Ctrl+S" );
addDPStaticEntry( menu, qtr( "Conve&rt / Save..." ), "", "", addDPStaticEntry( menu, qtr( "Conve&rt / Save..." ), "", "",
SLOT( openThenTranscodingDialogs() ), "Ctrl+R" ); SLOT( openThenTranscodingDialogs() ), "Ctrl+R" );
menu->addSeparator(); menu->addSeparator();
addDPStaticEntry( menu, qtr( "&Quit" ) , "", addDPStaticEntry( menu, qtr( "&Quit" ) , "",
":/pixmaps/menus_quit_16px.png", SLOT( quit() ), "Ctrl+Q" ); ":/quit", SLOT( quit() ), "Ctrl+Q" );
return menu; return menu;
} }
...@@ -322,7 +322,7 @@ QMenu *QVLCMenu::PlaylistMenu( intf_thread_t *p_intf, MainInterface *mi ) ...@@ -322,7 +322,7 @@ QMenu *QVLCMenu::PlaylistMenu( intf_thread_t *p_intf, MainInterface *mi )
{ {
QMenu *menu = new QMenu(); QMenu *menu = new QMenu();
menu->addMenu( SDMenu( p_intf ) ); menu->addMenu( SDMenu( p_intf ) );
menu->addAction( QIcon( ":/pixmaps/playlist_16px.png" ), menu->addAction( QIcon( ":/playlist_menu" ),
qtr( "Show Playlist" ), mi, SLOT( togglePlaylist() ) ); qtr( "Show Playlist" ), mi, SLOT( togglePlaylist() ) );
menu->addSeparator(); menu->addSeparator();
...@@ -352,13 +352,13 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, ...@@ -352,13 +352,13 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
if( mi ) if( mi )
{ {
QAction *act= QAction *act=
menu->addAction( QIcon( ":/pixmaps/playlist_16px.png" ), menu->addAction( QIcon( ":/playlist_menu" ),
qtr( "Playlist..." ), mi, SLOT( togglePlaylist() ), qtr( "Playlist..." ), mi, SLOT( togglePlaylist() ),
qtr( "Ctrl+L" ) ); qtr( "Ctrl+L" ) );
act->setData( "_static_" ); act->setData( "_static_" );
} }
addDPStaticEntry( menu, qtr( I_MENU_EXT ), "", addDPStaticEntry( menu, qtr( I_MENU_EXT ), "",
":/pixmaps/menus_settings_16px.png", SLOT( extendedDialog() ), ":/settings", SLOT( extendedDialog() ),
"Ctrl+E" ); "Ctrl+E" );
menu->addSeparator(); menu->addSeparator();
...@@ -406,12 +406,12 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, ...@@ -406,12 +406,12 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
menu->addSeparator(); menu->addSeparator();
addDPStaticEntry( menu, qtr( I_MENU_MSG ), "", addDPStaticEntry( menu, qtr( I_MENU_MSG ), "",
":/pixmaps/menus_messages_16px.png", SLOT( messagesDialog() ), ":/messages", SLOT( messagesDialog() ),
"Ctrl+M" ); "Ctrl+M" );
addDPStaticEntry( menu, qtr( I_MENU_INFO ) , "", "", addDPStaticEntry( menu, qtr( I_MENU_INFO ) , "", "",
SLOT( mediaInfoDialog() ), "Ctrl+I" ); SLOT( mediaInfoDialog() ), "Ctrl+I" );
addDPStaticEntry( menu, qtr( I_MENU_CODECINFO ) , "", addDPStaticEntry( menu, qtr( I_MENU_CODECINFO ) , "",
":/pixmaps/menus_info_16px.png", SLOT( mediaCodecDialog() ), "Ctrl+J" ); ":/info", SLOT( mediaCodecDialog() ), "Ctrl+J" );
addDPStaticEntry( menu, qtr( I_MENU_BOOKMARK ), "","", addDPStaticEntry( menu, qtr( I_MENU_BOOKMARK ), "","",
SLOT( bookmarksDialog() ), "Ctrl+B" ); SLOT( bookmarksDialog() ), "Ctrl+B" );
#ifdef ENABLE_VLM #ifdef ENABLE_VLM
...@@ -421,7 +421,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, ...@@ -421,7 +421,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
menu->addSeparator(); menu->addSeparator();
addDPStaticEntry( menu, qtr( "Preferences..." ), "", addDPStaticEntry( menu, qtr( "Preferences..." ), "",
":/pixmaps/menus_preferences_16px.png", SLOT( prefsDialog() ), "Ctrl+P" ); ":/preferences", SLOT( prefsDialog() ), "Ctrl+P" );
return menu; return menu;
} }
...@@ -614,14 +614,14 @@ QMenu *QVLCMenu::HelpMenu( QMenu *current ) ...@@ -614,14 +614,14 @@ QMenu *QVLCMenu::HelpMenu( QMenu *current )
{ {
QMenu *menu = new QMenu( current ); QMenu *menu = new QMenu( current );
addDPStaticEntry( menu, qtr( "Help..." ) , "", addDPStaticEntry( menu, qtr( "Help..." ) , "",
":/pixmaps/menus_help_16px.png", SLOT( helpDialog() ), "F1" ); ":/help", SLOT( helpDialog() ), "F1" );
#ifdef UPDATE_CHECK #ifdef UPDATE_CHECK
addDPStaticEntry( menu, qtr( "Check for Updates..." ) , "", "", addDPStaticEntry( menu, qtr( "Check for Updates..." ) , "", "",
SLOT( updateDialog() ), ""); SLOT( updateDialog() ), "");
#endif #endif
menu->addSeparator(); menu->addSeparator();
addDPStaticEntry( menu, qtr( I_MENU_ABOUT ), "", "", SLOT( aboutDialog() ), addDPStaticEntry( menu, qtr( I_MENU_ABOUT ), "", ":/info",
"Ctrl+F1" ); SLOT( aboutDialog() ), "Ctrl+F1" );
return menu; return menu;
} }
...@@ -651,24 +651,24 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, ...@@ -651,24 +651,24 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu,
var_Get( p_input, "state", &val ); var_Get( p_input, "state", &val );
if( val.i_int == PLAYING_S ) if( val.i_int == PLAYING_S )
addMIMStaticEntry( p_intf, menu, qtr( "Pause" ), "", addMIMStaticEntry( p_intf, menu, qtr( "Pause" ), "",
":/pixmaps/pause_16px.png", SLOT( togglePlayPause() ) ); ":/pause", SLOT( togglePlayPause() ) );
else else
addMIMStaticEntry( p_intf, menu, qtr( "Play" ), "", addMIMStaticEntry( p_intf, menu, qtr( "Play" ), "",
":/pixmaps/play_16px.png", SLOT( togglePlayPause() ) ); ":/play", SLOT( togglePlayPause() ) );
} }
else if( THEPL->items.i_size ) else if( THEPL->items.i_size )
addMIMStaticEntry( p_intf, menu, qtr( "Play" ), "", addMIMStaticEntry( p_intf, menu, qtr( "Play" ), "",
":/pixmaps/play_16px.png", SLOT( togglePlayPause() ) ); ":/play", SLOT( togglePlayPause() ) );
else else
addDPStaticEntry( menu, qtr( "Play" ), "", addDPStaticEntry( menu, qtr( "Play" ), "",
":/pixmaps/play_16px.png", SLOT( openDialog() ) ); ":/play", SLOT( openDialog() ) );
addMIMStaticEntry( p_intf, menu, qtr( "Stop" ), "", addMIMStaticEntry( p_intf, menu, qtr( "Stop" ), "",
":/pixmaps/stop_16px.png", SLOT( stop() ) ); ":/stop", SLOT( stop() ) );
addMIMStaticEntry( p_intf, menu, qtr( "Previous" ), "", addMIMStaticEntry( p_intf, menu, qtr( "Previous" ), "",
":/pixmaps/previous_16px.png", SLOT( prev() ) ); ":/previous", SLOT( prev() ) );
addMIMStaticEntry( p_intf, menu, qtr( "Next" ), "", addMIMStaticEntry( p_intf, menu, qtr( "Next" ), "",
":/pixmaps/next_16px.png", SLOT( next() ) ); ":/next", SLOT( next() ) );
} }
void QVLCMenu::PopupMenuStaticEntries( intf_thread_t *p_intf, QMenu *menu ) void QVLCMenu::PopupMenuStaticEntries( intf_thread_t *p_intf, QMenu *menu )
...@@ -681,15 +681,15 @@ void QVLCMenu::PopupMenuStaticEntries( intf_thread_t *p_intf, QMenu *menu ) ...@@ -681,15 +681,15 @@ void QVLCMenu::PopupMenuStaticEntries( intf_thread_t *p_intf, QMenu *menu )
QMenu *openmenu = new QMenu( qtr( "Open" ), menu ); QMenu *openmenu = new QMenu( qtr( "Open" ), menu );
addDPStaticEntry( openmenu, qtr( "&Open File..." ), "", addDPStaticEntry( openmenu, qtr( "&Open File..." ), "",
":/pixmaps/file-asym_16px.png", SLOT( openFileDialog() ) ); ":/file-asym", SLOT( openFileDialog() ) );
addDPStaticEntry( openmenu, qtr( I_OPEN_FOLDER ), "", addDPStaticEntry( openmenu, qtr( I_OPEN_FOLDER ), "",
":/pixmaps/folder-grey_16px.png", SLOT( PLAppendDir() ) ); ":/folder-grey", SLOT( PLAppendDir() ) );
addDPStaticEntry( openmenu, qtr( "Open &Disc..." ), "", addDPStaticEntry( openmenu, qtr( "Open &Disc..." ), "",
":/pixmaps/disc_16px.png", SLOT( openDiscDialog() ) ); ":/disc", SLOT( openDiscDialog() ) );
addDPStaticEntry( openmenu, qtr( "Open &Network..." ), "", addDPStaticEntry( openmenu, qtr( "Open &Network..." ), "",
":/pixmaps/network_16px.png", SLOT( openNetDialog() ) ); ":/network", SLOT( openNetDialog() ) );
addDPStaticEntry( openmenu, qtr( "Open &Capture Device..." ), "", addDPStaticEntry( openmenu, qtr( "Open &Capture Device..." ), "",
":/pixmaps/capture-card_16px.png", SLOT( openCaptureDialog() ) ); ":/capture-card", SLOT( openCaptureDialog() ) );
menu->addMenu( openmenu ); menu->addMenu( openmenu );
menu->addSeparator(); menu->addSeparator();
...@@ -699,7 +699,7 @@ void QVLCMenu::PopupMenuStaticEntries( intf_thread_t *p_intf, QMenu *menu ) ...@@ -699,7 +699,7 @@ void QVLCMenu::PopupMenuStaticEntries( intf_thread_t *p_intf, QMenu *menu )
menu->addMenu( helpmenu ); menu->addMenu( helpmenu );
#endif #endif
addDPStaticEntry( menu, qtr( "Quit" ), "", ":/pixmaps/menus_quit_16px.png", addDPStaticEntry( menu, qtr( "Quit" ), "", ":/quit",
SLOT( quit() ), "Ctrl+Q" ); SLOT( quit() ), "Ctrl+Q" );
} }
...@@ -839,10 +839,10 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show ) ...@@ -839,10 +839,10 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
if( !b_isFullscreen ) if( !b_isFullscreen )
{ {
submenu = new QMenu( qtr( "Interface" ), menu ); submenu = new QMenu( qtr( "Interface" ), menu );
submenu->addAction( QIcon( ":/pixmaps/playlist_16px.png" ), submenu->addAction( QIcon( ":/playlist" ),
qtr( "Show Playlist" ), mi, SLOT( togglePlaylist() ) ); qtr( "Show Playlist" ), mi, SLOT( togglePlaylist() ) );
addDPStaticEntry( submenu, qtr( I_MENU_EXT ), "", addDPStaticEntry( submenu, qtr( I_MENU_EXT ), "",
":/pixmaps/menus_settings_16px.png", SLOT( extendedDialog() ) ); ":/settings", SLOT( extendedDialog() ) );
action = submenu->addAction( QIcon( "" ), action = submenu->addAction( QIcon( "" ),
qtr( "Minimal View..." ), mi, SLOT( toggleMinimalView() ) ); qtr( "Minimal View..." ), mi, SLOT( toggleMinimalView() ) );
action->setCheckable( true ); action->setCheckable( true );
...@@ -904,9 +904,9 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi, ...@@ -904,9 +904,9 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
sysMenu->addSeparator(); sysMenu->addSeparator();
addDPStaticEntry( sysMenu, qtr( "&Open Media" ), "", addDPStaticEntry( sysMenu, qtr( "&Open Media" ), "",
":/pixmaps/file-wide_16px.png", SLOT( openFileDialog() ), "" ); ":/file-wide", SLOT( openFileDialog() ), "" );
addDPStaticEntry( sysMenu, qtr( "&Quit" ) , "", addDPStaticEntry( sysMenu, qtr( "&Quit" ) , "",
":/pixmaps/menus_quit_16px.png", SLOT( quit() ), "" ); ":/quit", SLOT( quit() ), "" );
/* Set the menu */ /* Set the menu */
mi->getSysTray()->setContextMenu( sysMenu ); mi->getSysTray()->setContextMenu( sysMenu );
......
...@@ -89,7 +89,7 @@ struct intf_sys_t ...@@ -89,7 +89,7 @@ struct intf_sys_t
#define BUTTON_SET_IMG( button, text, image, tooltip ) \ #define BUTTON_SET_IMG( button, text, image, tooltip ) \
BUTTON_SET( button, text, tooltip ); \ BUTTON_SET( button, text, tooltip ); \
button->setIcon( QIcon( ":/pixmaps/"#image ) ); button->setIcon( QIcon( ":/"#image ) );
#define BUTTON_SET_ACT_I( button, text, image, tooltip, thisslot ) \ #define BUTTON_SET_ACT_I( button, text, image, tooltip, thisslot ) \
BUTTON_SET_IMG( button, text, image, tooltip ); \ BUTTON_SET_IMG( button, text, image, tooltip ); \
......
...@@ -126,9 +126,9 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard, ...@@ -126,9 +126,9 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard,
setMouseTracking( true ); setMouseTracking( true );
b_sliding = false; b_sliding = false;
pixOutside = QPixmap( ":/pixmaps/volume-slider-outside.png" ); pixOutside = QPixmap( ":/volslide-outside" );
const QPixmap temp( ":/pixmaps/volume-slider-inside.png" ); const QPixmap temp( ":/volslide-inside" );
const QBitmap mask( temp.createHeuristicMask() ); const QBitmap mask( temp.createHeuristicMask() );
setMinimumSize( pixOutside.size() ); setMinimumSize( pixOutside.size() );
......
<!DOCTYPE RCC> <!DOCTYPE RCC>
<RCC version="1.0"> <RCC version="1.0">
<qresource> <qresource>
<file alias="noart.png">pixmaps/noart.png</file>
<file alias="vlc128.png">../../../share/vlc128x128.png</file> <file alias="vlc128.png">../../../share/vlc128x128.png</file>
<file alias="vlc16.png">../../../share/vlc16x16.png</file> <file alias="vlc16.png">../../../share/vlc16x16.png</file>
<file alias="vlc48.png">../../../share/vlc48x48.png</file> <file alias="vlc48.png">../../../share/vlc48x48.png</file>
<file alias="vlc128-christmas.png">../../../share/vlc128x128-christmas.png</file> <file alias="vlc128-christmas.png">../../../share/vlc128x128-christmas.png</file>
<file alias="vlc48-christmas.png">../../../share/vlc48x48-christmas.png</file> <file alias="vlc48-christmas.png">../../../share/vlc48x48-christmas.png</file>
<file>pixmaps/advprefs_audio.png</file> <file alias="advprefs_audio">pixmaps/prefs/advprefs_audio.png</file>
<file>pixmaps/advprefs_codec.png</file> <file alias="advprefs_codec">pixmaps/prefs/advprefs_codec.png</file>
<file>pixmaps/advprefs_extended.png</file> <file alias="advprefs_extended">pixmaps/prefs/advprefs_extended.png</file>
<file>pixmaps/advprefs_intf.png</file> <file alias="advprefs_intf">pixmaps/prefs/advprefs_intf.png</file>
<file>pixmaps/advprefs_playlist.png</file> <file alias="advprefs_playlist">pixmaps/prefs/advprefs_playlist.png</file>
<file>pixmaps/advprefs_sout.png</file> <file alias="advprefs_sout">pixmaps/prefs/advprefs_sout.png</file>
<file>pixmaps/advprefs_video.png</file> <file alias="advprefs_video">pixmaps/prefs/advprefs_video.png</file>
<file>pixmaps/capture-card_16px.png</file> <file>pixmaps/prefs/spref_cone_Audio_64.png</file>
<file>pixmaps/cdda_16px.png</file> <file>pixmaps/prefs/spref_cone_Hotkeys_64.png</file>
<file>pixmaps/disc_16px.png</file> <file>pixmaps/prefs/spref_cone_Input_64.png</file>
<file>pixmaps/file-asym_16px.png</file> <file>pixmaps/prefs/spref_cone_Interface_64.png</file>
<file>pixmaps/file-wide_16px.png</file> <file>pixmaps/prefs/spref_cone_Subtitles_64.png</file>
<file>pixmaps/folder-grey_16px.png</file> <file>pixmaps/prefs/spref_cone_Video_64.png</file>
<file alias="capture-card">pixmaps/types/capture-card_16px.png</file>
<file alias="cdda">pixmaps/types/cdda_16px.png</file>
<file alias="disc">pixmaps/types/disc_16px.png</file>
<file alias="file-asym">pixmaps/types/file-asym_16px.png</file>
<file alias="file-wide">pixmaps/types/file-wide_16px.png</file>
<file alias="folder-grey">pixmaps/types/folder-grey_16px.png</file>
<file alias="network">pixmaps/types/network_16px.png</file>
<file alias="help">pixmaps/menus/help_16px.png</file>
<file alias="info">pixmaps/menus/info_16px.png</file>
<file alias="messages">pixmaps/menus/messages_16px.png</file>
<file alias="preferences">pixmaps/menus/preferences_16px.png</file>
<file alias="quit">pixmaps/menus/quit_16px.png</file>
<file alias="settings">pixmaps/menus/settings_16px.png</file>
<file alias="stream">pixmaps/menus/stream_16px.png</file>
<file alias="playlist_menu">pixmaps/menus/playlist_16px.png</file>
<file alias="playlist_add">pixmaps/playlist/add.png</file>
<file alias="playlist">pixmaps/playlist/playlist.png</file>
<file alias="repeat_all">pixmaps/playlist/repeat_all.png</file>
<file alias="repeat_off">pixmaps/playlist/repeat_off.png</file>
<file alias="repeat_one">pixmaps/playlist/repeat_one.png</file>
<file alias="shuffle_off">pixmaps/playlist/shuffle_off.png</file>
<file alias="shuffle_on">pixmaps/playlist/shuffle_on.png</file>
<file alias="type_directory">pixmaps/types/type_directory.png</file>
<file alias="type_file">pixmaps/types/type_file.png</file>
<file alias="type_net">pixmaps/types/type_net.png</file>
<file alias="type_node">pixmaps/types/type_node.png</file>
<file alias="type_playlist">pixmaps/types/type_playlist.png</file>
<file alias="tv">pixmaps/toolbar/tv.png</file>
<file alias="fullscreen">pixmaps/toolbar/fullscreen.png</file>
<file alias="tvtelx-trans">pixmaps/toolbar/tvtelx-transparent.png</file>
<file alias="tvtelx">pixmaps/toolbar/tvtelx.png</file>
<file alias="extended">pixmaps/toolbar/extended_16px.png</file>
<file alias="record">pixmaps/toolbar/record_16px.png</file>
<file alias="volume-high">pixmaps/toolbar/volume-high.png</file>
<file alias="volume-medium">pixmaps/toolbar/volume-medium.png</file>
<file alias="volume-low">pixmaps/toolbar/volume-low.png</file>
<file alias="volume-muted">pixmaps/toolbar/volume-muted.png</file>
<file alias="volslide-inside">pixmaps/toolbar/volume-slider-inside.png</file>
<file alias="volslide-outside">pixmaps/toolbar/volume-slider-outside.png</file>
<file alias="snapshot">pixmaps/toolbar/snapshot.png</file>
<file alias="dvd_menu">pixmaps/toolbar/dvd_menu.png</file>
<file alias="dvd_next">pixmaps/toolbar/dvd_next.png</file>
<file alias="dvd_prev">pixmaps/toolbar/dvd_prev.png</file>
<file alias="atob">pixmaps/toolbar/atob.png</file>
<file alias="atob_noa">pixmaps/toolbar/atob_noa.png</file>
<file alias="atob_nob">pixmaps/toolbar/atob_nob.png</file>
<file alias="next">pixmaps/next_16px.png</file>
<file alias="next_b">pixmaps/next.png</file>
<file alias="down_arrow">pixmaps/arrow_down_dark.png</file>
<file alias="pause">pixmaps/pause_16px.png</file>
<file alias="pause_b">pixmaps/pause.png</file>
<file alias="play">pixmaps/play_16px.png</file>
<file alias="play_b">pixmaps/play.png</file>
<file alias="previous">pixmaps/previous_16px.png</file>
<file alias="previous_b">pixmaps/previous.png</file>
<file alias="stop">pixmaps/stop_16px.png</file>
<file alias="stop_b">pixmaps/stop.png</file>
<file alias="eject">pixmaps/eject.png</file>
<file alias="update">pixmaps/update.png</file>
<file alias="clear">pixmaps/clear.png</file>
<file alias="noart.png">pixmaps/noart.png</file>
<file>pixmaps/go-next.png</file> <file>pixmaps/go-next.png</file>
<file>pixmaps/menus_help_16px.png</file>
<file>pixmaps/menus_info_16px.png</file>
<file>pixmaps/menus_messages_16px.png</file>
<file>pixmaps/menus_preferences_16px.png</file>
<file>pixmaps/menus_quit_16px.png</file>
<file>pixmaps/menus_settings_16px.png</file>
<file>pixmaps/menus_stream_16px.png</file>
<file>pixmaps/network_16px.png</file>
<file>pixmaps/next_16px.png</file>
<file>pixmaps/next.png</file>
<file>pixmaps/pause_16px.png</file>
<file>pixmaps/pause.png</file>
<file>pixmaps/play_16px.png</file>
<file>pixmaps/playlist_16px.png</file>
<file>pixmaps/playlist_add.png</file>
<file>pixmaps/playlist.png</file>
<file>pixmaps/playlist_repeat_all.png</file>
<file>pixmaps/playlist_repeat_off.png</file>
<file>pixmaps/playlist_repeat_one.png</file>
<file>pixmaps/playlist_shuffle_off.png</file>
<file>pixmaps/playlist_shuffle_on.png</file>
<file>pixmaps/play.png</file>
<file>pixmaps/tvtelx-transparent.png</file>
<file>pixmaps/tvtelx.png</file>
<file>pixmaps/tv.png</file>
<file>pixmaps/previous_16px.png</file>
<file>pixmaps/previous.png</file>
<file>pixmaps/record_16px.png</file>
<file>pixmaps/spref_cone_Audio_64.png</file>
<file>pixmaps/spref_cone_Hotkeys_64.png</file>
<file>pixmaps/spref_cone_Input_64.png</file>
<file>pixmaps/spref_cone_Interface_64.png</file>
<file>pixmaps/spref_cone_Subtitles_64.png</file>
<file>pixmaps/spref_cone_Video_64.png</file>
<file>pixmaps/stop_16px.png</file>
<file>pixmaps/stop.png</file>
<file>pixmaps/type_directory.png</file>
<file>pixmaps/type_file.png</file>
<file>pixmaps/type_net.png</file>
<file>pixmaps/type_node.png</file>
<file>pixmaps/type_playlist.png</file>
<file>pixmaps/volume-high.png</file>
<file>pixmaps/volume-medium.png</file>
<file>pixmaps/volume-low.png</file>
<file>pixmaps/volume-muted.png</file>
<file>pixmaps/volume-slider-inside.png</file>
<file>pixmaps/volume-slider-outside.png</file>
</qresource> </qresource>
</RCC> </RCC>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment