Commit 7393f3b3 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

UI: prefix/namespace resources for better maintainability

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7b0d5534
...@@ -62,13 +62,13 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) : ...@@ -62,13 +62,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, ":/advprefs_audio" ); BI( audio, ":/prefsmenu/advanced/audio" );
BI( video, ":/advprefs_video" ); BI( video, ":/prefsmenu/advanced/video" );
BI( input, ":/advprefs_codec" ); BI( input, ":/prefsmenu/advanced/codec" );
BI( sout, ":/advprefs_sout" ); BI( sout, ":/prefsmenu/advanced/sout" );
BI( advanced, ":/advprefs_extended" ); BI( advanced, ":/prefsmenu/advanced/extended" );
BI( playlist, ":/advprefs_playlist" ); BI( playlist, ":/prefsmenu/advanced/playlist" );
BI( interface, ":/advprefs_intf" ); BI( interface, ":/prefsmenu/advanced/intf" );
#undef BI #undef BI
/* Build the tree for the main module */ /* Build the tree for the main module */
......
...@@ -467,19 +467,19 @@ QFrame *AbstractController::discFrame() ...@@ -467,19 +467,19 @@ QFrame *AbstractController::discFrame()
QToolButton *prevSectionButton = new QToolButton( discFrame ); QToolButton *prevSectionButton = new QToolButton( discFrame );
setupButton( prevSectionButton ); setupButton( prevSectionButton );
BUTTON_SET_BAR2( prevSectionButton, dvd_prev, BUTTON_SET_BAR2( prevSectionButton, toolbar/dvd_prev,
qtr("Previous Chapter/Title" ) ); qtr("Previous Chapter/Title" ) );
discLayout->addWidget( prevSectionButton ); discLayout->addWidget( prevSectionButton );
QToolButton *menuButton = new QToolButton( discFrame ); QToolButton *menuButton = new QToolButton( discFrame );
setupButton( menuButton ); setupButton( menuButton );
discLayout->addWidget( menuButton ); discLayout->addWidget( menuButton );
BUTTON_SET_BAR2( menuButton, dvd_menu, qtr( "Menu" ) ); BUTTON_SET_BAR2( menuButton, toolbar/dvd_menu, qtr( "Menu" ) );
QToolButton *nextSectionButton = new QToolButton( discFrame ); QToolButton *nextSectionButton = new QToolButton( discFrame );
setupButton( nextSectionButton ); setupButton( nextSectionButton );
discLayout->addWidget( nextSectionButton ); discLayout->addWidget( nextSectionButton );
BUTTON_SET_BAR2( nextSectionButton, dvd_next, BUTTON_SET_BAR2( nextSectionButton, toolbar/dvd_next,
qtr("Next Chapter/Title" ) ); qtr("Next Chapter/Title" ) );
/* Change the navigation button display when the IM /* Change the navigation button display when the IM
...@@ -517,7 +517,7 @@ QFrame *AbstractController::telexFrame() ...@@ -517,7 +517,7 @@ QFrame *AbstractController::telexFrame()
/* On/Off button */ /* On/Off button */
QToolButton *telexOn = new QToolButton; QToolButton *telexOn = new QToolButton;
setupButton( telexOn ); setupButton( telexOn );
BUTTON_SET_BAR2( telexOn, tv, qtr( "Teletext Activation" ) ); BUTTON_SET_BAR2( telexOn, toolbar/tv, qtr( "Teletext Activation" ) );
telexOn->setEnabled( false ); telexOn->setEnabled( false );
telexOn->setCheckable( true ); telexOn->setCheckable( true );
...@@ -532,7 +532,7 @@ QFrame *AbstractController::telexFrame() ...@@ -532,7 +532,7 @@ QFrame *AbstractController::telexFrame()
/* Transparency button */ /* Transparency button */
QToolButton *telexTransparent = new QToolButton; QToolButton *telexTransparent = new QToolButton;
setupButton( telexTransparent ); setupButton( telexTransparent );
BUTTON_SET_BAR2( telexTransparent, tvtelx, BUTTON_SET_BAR2( telexTransparent, toolbar/tvtelx,
qtr( "Toggle Transparency " ) ); qtr( "Toggle Transparency " ) );
telexTransparent->setEnabled( false ); telexTransparent->setEnabled( false );
telexTransparent->setCheckable( true ); telexTransparent->setCheckable( true );
......
...@@ -112,11 +112,13 @@ static const char* tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP, ...@@ -112,11 +112,13 @@ static const char* tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP,
N_( "Take a snapshot" ), N_( "Record" ), N_( "Take a snapshot" ), N_( "Record" ),
N_( "Loop from point A to point B continuously." ), N_("Frame by frame"), N_( "Loop from point A to point B continuously." ), N_("Frame by frame"),
N_("Reverse"), N_("Step backward"), N_("Step forward"), N_("Quit") }; N_("Reverse"), N_("Step backward"), N_("Step forward"), N_("Quit") };
static const QString iconL[BUTTON_MAX] ={ ":/play_b", ":/stop_b", ":/eject", static const QString iconL[BUTTON_MAX] ={ ":/toolbar/play_b", ":/toolbar/stop_b",
":/previous_b", ":/next_b", ":/slower", ":/faster", ":/fullscreen", ":/toolbar/eject", ":/toolbar/previous_b", ":/toolbar/next_b",
":/defullscreen", ":/extended", ":/playlist", ":/snapshot", ":/record", ":/toolbar/slower", ":/toolbar/faster", ":/toolbar/fullscreen",
":/atob_nob", ":/frame", ":/reverse", ":/skip_back", ":/skip_fw", ":/toolbar/defullscreen", ":/toolbar/extended", ":/toolbar/playlist",
":/clear" }; ":/toolbar/snapshot", ":/toolbar/record", ":/toolbar/atob_nob",
":/toolbar/frame", ":/toolbar/reverse", ":/toolbar/skip_back",
":/toolbar/skip_fw", ":/toolbar/clear" };
enum enum
{ {
......
...@@ -51,7 +51,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf, ...@@ -51,7 +51,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
/* We need a Label for the pix */ /* We need a Label for the pix */
volMuteLabel = new QLabel; volMuteLabel = new QLabel;
volMuteLabel->setPixmap( QPixmap( ":/volume-medium" ) ); volMuteLabel->setPixmap( QPixmap( ":/toolbar/volume-medium" ) );
/* We might need a subLayout too */ /* We might need a subLayout too */
QVBoxLayout *subLayout; QVBoxLayout *subLayout;
...@@ -130,16 +130,16 @@ void SoundWidget::updateVolume( int i_sliderVolume ) ...@@ -130,16 +130,16 @@ void SoundWidget::updateVolume( int i_sliderVolume )
} }
if( i_sliderVolume == 0 ) if( i_sliderVolume == 0 )
{ {
volMuteLabel->setPixmap( QPixmap(":/volume-muted" ) ); volMuteLabel->setPixmap( QPixmap(":/toolbar/volume-muted" ) );
volMuteLabel->setToolTip( qtr( "Unmute" ) ); volMuteLabel->setToolTip( qtr( "Unmute" ) );
return; return;
} }
if( i_sliderVolume < VOLUME_MAX / 3 ) if( i_sliderVolume < VOLUME_MAX / 3 )
volMuteLabel->setPixmap( QPixmap( ":/volume-low" ) ); volMuteLabel->setPixmap( QPixmap( ":/toolbar/volume-low" ) );
else if( i_sliderVolume > (VOLUME_MAX * 2 / 3 ) ) else if( i_sliderVolume > (VOLUME_MAX * 2 / 3 ) )
volMuteLabel->setPixmap( QPixmap( ":/volume-high" ) ); volMuteLabel->setPixmap( QPixmap( ":/toolbar/volume-high" ) );
else volMuteLabel->setPixmap( QPixmap( ":/volume-medium" ) ); else volMuteLabel->setPixmap( QPixmap( ":/toolbar/volume-medium" ) );
volMuteLabel->setToolTip( qtr( "Mute" ) ); volMuteLabel->setToolTip( qtr( "Mute" ) );
} }
...@@ -194,7 +194,7 @@ bool SoundWidget::eventFilter( QObject *obj, QEvent *e ) ...@@ -194,7 +194,7 @@ bool SoundWidget::eventFilter( QObject *obj, QEvent *e )
**/ **/
void PlayButton::updateButton( bool b_playing ) void PlayButton::updateButton( bool b_playing )
{ {
setIcon( b_playing ? QIcon( ":/pause_b" ) : QIcon( ":/play_b" ) ); setIcon( b_playing ? QIcon( ":/toolbar/pause_b" ) : QIcon( ":/toolbar/play_b" ) );
setToolTip( b_playing ? qtr( "Pause the playback" ) setToolTip( b_playing ? qtr( "Pause the playback" )
: qtr( I_PLAY_TOOLTIP ) ); : qtr( I_PLAY_TOOLTIP ) );
} }
...@@ -203,18 +203,18 @@ void AtoB_Button::setIcons( bool timeA, bool timeB ) ...@@ -203,18 +203,18 @@ void AtoB_Button::setIcons( bool timeA, bool timeB )
{ {
if( !timeA && !timeB) if( !timeA && !timeB)
{ {
setIcon( QIcon( ":/atob_nob" ) ); setIcon( QIcon( ":/toolbar/atob_nob" ) );
setToolTip( qtr( "Loop from point A to point B continuously\n" setToolTip( qtr( "Loop from point A to point B continuously\n"
"Click to set point A" ) ); "Click to set point A" ) );
} }
else if( timeA && !timeB ) else if( timeA && !timeB )
{ {
setIcon( QIcon( ":/atob_noa" ) ); setIcon( QIcon( ":/toolbar/atob_noa" ) );
setToolTip( qtr( "Click to set point B" ) ); setToolTip( qtr( "Click to set point B" ) );
} }
else if( timeA && timeB ) else if( timeA && timeB )
{ {
setIcon( QIcon( ":/atob" ) ); setIcon( QIcon( ":/toolbar/atob" ) );
setToolTip( qtr( "Stop the A to B loop" ) ); setToolTip( qtr( "Stop the A to B loop" ) );
} }
} }
......
...@@ -175,9 +175,9 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i ) ...@@ -175,9 +175,9 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
label->setMinimumHeight( MIN_BG_SIZE ); label->setMinimumHeight( MIN_BG_SIZE );
label->setMinimumWidth( MIN_BG_SIZE ); label->setMinimumWidth( MIN_BG_SIZE );
if( QDate::currentDate().dayOfYear() >= 354 ) if( QDate::currentDate().dayOfYear() >= 354 )
label->setPixmap( QPixmap( ":/vlc128-christmas.png" ) ); label->setPixmap( QPixmap( ":/logo/vlc128-christmas.png" ) );
else else
label->setPixmap( QPixmap( ":/vlc128.png" ) ); label->setPixmap( QPixmap( ":/logo/vlc128.png" ) );
QGridLayout *backgroundLayout = new QGridLayout( this ); QGridLayout *backgroundLayout = new QGridLayout( this );
backgroundLayout->addWidget( label, 0, 1 ); backgroundLayout->addWidget( label, 0, 1 );
...@@ -204,9 +204,9 @@ void BackgroundWidget::updateArt( const QString& url ) ...@@ -204,9 +204,9 @@ void BackgroundWidget::updateArt( const QString& url )
if( url.isEmpty() ) if( url.isEmpty() )
{ {
if( QDate::currentDate().dayOfYear() >= 354 ) if( QDate::currentDate().dayOfYear() >= 354 )
label->setPixmap( QPixmap( ":/vlc128-christmas.png" ) ); label->setPixmap( QPixmap( ":/logo/vlc128-christmas.png" ) );
else else
label->setPixmap( QPixmap( ":/vlc128.png" ) ); label->setPixmap( QPixmap( ":/logo/vlc128.png" ) );
} }
else else
{ {
......
...@@ -313,7 +313,7 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -313,7 +313,7 @@ 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() );
BUTTON_SET_ACT_I( ui.ejectButton, "", eject, qtr( "Eject the disc" ), BUTTON_SET_ACT_I( ui.ejectButton, "", toolbar/eject, qtr( "Eject the disc" ),
eject() ); eject() );
CONNECT( ui.deviceCombo, editTextChanged( QString ), this, updateMRL()); CONNECT( ui.deviceCombo, editTextChanged( QString ), this, updateMRL());
......
...@@ -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, ":/type_file" ); ADD_ICON( FILE, ":/type/file" );
ADD_ICON( DIRECTORY, ":/type_directory" ); ADD_ICON( DIRECTORY, ":/type/directory" );
ADD_ICON( DISC, ":/disc" ); ADD_ICON( DISC, ":/type/disc" );
ADD_ICON( CDDA, ":/cdda" ); ADD_ICON( CDDA, ":/type/cdda" );
ADD_ICON( CARD, ":/capture-card" ); ADD_ICON( CARD, ":/type/capture-card" );
ADD_ICON( NET, ":/type_net" ); ADD_ICON( NET, ":/type/net" );
ADD_ICON( PLAYLIST, ":/type_playlist" ); ADD_ICON( PLAYLIST, ":/type/playlist" );
ADD_ICON( NODE, ":/type_node" ); ADD_ICON( NODE, ":/type/node" );
#undef ADD_ICON #undef ADD_ICON
rebuild( p_root ); rebuild( p_root );
......
...@@ -109,14 +109,14 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -109,14 +109,14 @@ 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( ":/playlist_add" ) ); addButton->setIcon( QIcon( ":/buttons/playlist/playlist_add" ) );
addButton->setMaximumWidth( 30 ); addButton->setMaximumWidth( 30 );
BUTTONACT( addButton, popupAdd() ); BUTTONACT( addButton, popupAdd() );
buttons->addWidget( addButton ); buttons->addWidget( addButton );
/* Random 2-state button */ /* Random 2-state button */
randomButton = new QPushButton( this ); randomButton = new QPushButton( this );
randomButton->setIcon( QIcon( ":/shuffle_on" )); randomButton->setIcon( QIcon( ":/buttons/playlist/shuffle_on" ));
randomButton->setToolTip( qtr( I_PL_RANDOM )); randomButton->setToolTip( qtr( I_PL_RANDOM ));
randomButton->setCheckable( true ); randomButton->setCheckable( true );
randomButton->setChecked( model->hasRandom() ); randomButton->setChecked( model->hasRandom() );
...@@ -130,17 +130,17 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -130,17 +130,17 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
if( model->hasRepeat() ) if( model->hasRepeat() )
{ {
repeatButton->setIcon( QIcon( ":/repeat_one" ) ); repeatButton->setIcon( QIcon( ":/buttons/playlist/repeat_one" ) );
repeatButton->setChecked( true ); repeatButton->setChecked( true );
} }
else if( model->hasLoop() ) else if( model->hasLoop() )
{ {
repeatButton->setIcon( QIcon( ":/repeat_all" ) ); repeatButton->setIcon( QIcon( ":/buttons/playlist/repeat_all" ) );
repeatButton->setChecked( true ); repeatButton->setChecked( true );
} }
else else
{ {
repeatButton->setIcon( QIcon( ":/repeat_one" ) ); repeatButton->setIcon( QIcon( ":/buttons/playlist/repeat_one" ) );
repeatButton->setChecked( false ); repeatButton->setChecked( false );
} }
BUTTONACT( repeatButton, toggleRepeat() ); BUTTONACT( repeatButton, toggleRepeat() );
...@@ -148,7 +148,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -148,7 +148,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
/* Goto */ /* Goto */
gotoPlayingButton = new QPushButton; gotoPlayingButton = new QPushButton;
BUTTON_SET_ACT_I( gotoPlayingButton, "", jump_to, BUTTON_SET_ACT_I( gotoPlayingButton, "", buttons/playlist/jump_to,
qtr( "Show the current item" ), gotoPlayingItem() ); qtr( "Show the current item" ), gotoPlayingItem() );
buttons->addWidget( gotoPlayingButton ); buttons->addWidget( gotoPlayingButton );
...@@ -177,20 +177,20 @@ void StandardPLPanel::toggleRepeat() ...@@ -177,20 +177,20 @@ void StandardPLPanel::toggleRepeat()
if( model->hasRepeat() ) if( model->hasRepeat() )
{ {
model->setRepeat( false ); model->setLoop( true ); model->setRepeat( false ); model->setLoop( true );
repeatButton->setIcon( QIcon( ":/repeat_all" ) ); repeatButton->setIcon( QIcon( ":/buttons/playlist/repeat_all" ) );
repeatButton->setChecked( true ); repeatButton->setChecked( true );
} }
else if( model->hasLoop() ) else if( model->hasLoop() )
{ {
model->setRepeat( false ) ; model->setLoop( false ); model->setRepeat( false ) ; model->setLoop( false );
repeatButton->setChecked( false ); repeatButton->setChecked( false );
repeatButton->setIcon( QIcon( ":/repeat_one" ) ); repeatButton->setIcon( QIcon( ":/buttons/playlist/repeat_one" ) );
} }
else else
{ {
model->setRepeat( true ); model->setLoop( false ); model->setRepeat( true ); model->setLoop( false );
repeatButton->setChecked( true ); repeatButton->setChecked( true );
repeatButton->setIcon( QIcon( ":/repeat_one" ) ); repeatButton->setIcon( QIcon( ":/buttons/playlist/repeat_one" ) );
} }
} }
......
...@@ -63,7 +63,7 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent, bool sma ...@@ -63,7 +63,7 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent, bool sma
#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/prefs/" #icon ) ); \ button->setIcon( QIcon( ":/prefsmenu/" #icon ) ); \
button->setText( label ); \ button->setText( label ); \
button->setToolButtonStyle( Qt::ToolButtonTextUnderIcon ); \ button->setToolButtonStyle( Qt::ToolButtonTextUnderIcon ); \
button->setIconSize( QSize( icon_height, icon_height ) ); \ button->setIconSize( QSize( icon_height, icon_height ) ); \
...@@ -75,14 +75,17 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent, bool sma ...@@ -75,14 +75,17 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent, bool sma
layout->addWidget( button ); layout->addWidget( button );
ADD_CATEGORY( SPrefsInterface, qtr("Interface"), ADD_CATEGORY( SPrefsInterface, qtr("Interface"),
spref_cone_Interface_64.png, 0 ); cone_interface_64, 0 );
ADD_CATEGORY( SPrefsAudio, qtr("Audio"), spref_cone_Audio_64.png, 1 ); ADD_CATEGORY( SPrefsAudio, qtr("Audio"),
ADD_CATEGORY( SPrefsVideo, qtr("Video"), spref_cone_Video_64.png, 2 ); cone_audio_64, 1 );
ADD_CATEGORY( SPrefsVideo, qtr("Video"),
cone_video_64, 2 );
ADD_CATEGORY( SPrefsSubtitles, qtr("Subtitles && OSD"), ADD_CATEGORY( SPrefsSubtitles, qtr("Subtitles && OSD"),
spref_cone_Subtitles_64.png, 3 ); cone_subtitles_64, 3 );
ADD_CATEGORY( SPrefsInputAndCodecs, qtr("Input && Codecs"), ADD_CATEGORY( SPrefsInputAndCodecs, qtr("Input && Codecs"),
spref_cone_Input_64.png, 4 ); cone_input_64, 4 );
ADD_CATEGORY( SPrefsHotkeys, qtr("Hotkeys"), spref_cone_Hotkeys_64.png, 5 ); ADD_CATEGORY( SPrefsHotkeys, qtr("Hotkeys"),
cone_hotkeys_64, 5 );
#undef ADD_CATEGORY #undef ADD_CATEGORY
......
...@@ -45,12 +45,12 @@ VLCProfileSelector::VLCProfileSelector( QWidget *_parent ): QWidget( _parent ) ...@@ -45,12 +45,12 @@ VLCProfileSelector::VLCProfileSelector( QWidget *_parent ): QWidget( _parent )
layout->addWidget( profileBox ); layout->addWidget( profileBox );
QToolButton *editButton = new QToolButton( this ); QToolButton *editButton = new QToolButton( this );
editButton->setIcon( QIcon( ":/preferences" ) ); editButton->setIcon( QIcon( ":/menu/preferences" ) );
editButton->setToolTip( qtr( "Edit selected profile" ) ); editButton->setToolTip( qtr( "Edit selected profile" ) );
layout->addWidget( editButton ); layout->addWidget( editButton );
QToolButton *deleteButton = new QToolButton( this ); QToolButton *deleteButton = new QToolButton( this );
deleteButton->setIcon( QIcon( ":/clear" ) ); deleteButton->setIcon( QIcon( ":/toolbar/clear" ) );
deleteButton->setToolTip( qtr( "Delete selected profile" ) ); deleteButton->setToolTip( qtr( "Delete selected profile" ) );
layout->addWidget( deleteButton ); layout->addWidget( deleteButton );
......
...@@ -99,9 +99,9 @@ AboutDialog::AboutDialog( QWidget *parent, intf_thread_t *_p_intf) ...@@ -99,9 +99,9 @@ AboutDialog::AboutDialog( QWidget *parent, intf_thread_t *_p_intf)
qtr( "VLC media player" ) + qfu( " " VERSION_MESSAGE ) ); qtr( "VLC media player" ) + qfu( " " VERSION_MESSAGE ) );
QLabel *iconVLC = new QLabel; QLabel *iconVLC = new QLabel;
if( QDate::currentDate().dayOfYear() >= 354 ) if( QDate::currentDate().dayOfYear() >= 354 )
iconVLC->setPixmap( QPixmap( ":/vlc48-christmas.png" ) ); iconVLC->setPixmap( QPixmap( ":/logo/vlc48-christmas.png" ) );
else else
iconVLC->setPixmap( QPixmap( ":/vlc48.png" ) ); iconVLC->setPixmap( QPixmap( ":/logo/vlc48.png" ) );
layout->addWidget( iconVLC, 0, 0, 1, 1 ); layout->addWidget( iconVLC, 0, 0, 1, 1 );
layout->addWidget( introduction, 0, 1, 1, 7 ); layout->addWidget( introduction, 0, 1, 1, 7 );
layout->addWidget( tab, 1, 0, 1, 8 ); layout->addWidget( tab, 1, 0, 1, 8 );
...@@ -128,9 +128,9 @@ AboutDialog::AboutDialog( QWidget *parent, intf_thread_t *_p_intf) ...@@ -128,9 +128,9 @@ AboutDialog::AboutDialog( QWidget *parent, intf_thread_t *_p_intf)
QLabel *iconVLC2 = new QLabel; QLabel *iconVLC2 = new QLabel;
if( QDate::currentDate().dayOfYear() >= 354 ) if( QDate::currentDate().dayOfYear() >= 354 )
iconVLC2->setPixmap( QPixmap( ":/vlc128-christmas.png" ) ); iconVLC2->setPixmap( QPixmap( ":/logo/vlc128-christmas.png" ) );
else else
iconVLC2->setPixmap( QPixmap( ":/vlc128.png" ) ); iconVLC2->setPixmap( QPixmap( ":/logo/vlc128.png" ) );
infoLayout->addWidget( iconVLC2 ); infoLayout->addWidget( iconVLC2 );
infoLayout->addWidget( infoLabel ); infoLayout->addWidget( infoLabel );
......
...@@ -92,14 +92,14 @@ OpenDialog::OpenDialog( QWidget *parent, ...@@ -92,14 +92,14 @@ OpenDialog::OpenDialog( QWidget *parent,
captureOpenPanel = new CaptureOpenPanel( this, p_intf ); captureOpenPanel = new CaptureOpenPanel( this, p_intf );
/* Insert the tabs */ /* Insert the tabs */
ui.Tab->insertTab( OPEN_FILE_TAB, fileOpenPanel, QIcon( ":/folder-grey" ), ui.Tab->insertTab( OPEN_FILE_TAB, fileOpenPanel, QIcon( ":/type/folder-grey" ),
qtr( "&File" ) ); qtr( "&File" ) );
ui.Tab->insertTab( OPEN_DISC_TAB, discOpenPanel, QIcon( ":/disc" ), ui.Tab->insertTab( OPEN_DISC_TAB, discOpenPanel, QIcon( ":/type/disc" ),
qtr( "&Disc" ) ); qtr( "&Disc" ) );
ui.Tab->insertTab( OPEN_NETWORK_TAB, netOpenPanel, QIcon( ":/network" ), ui.Tab->insertTab( OPEN_NETWORK_TAB, netOpenPanel, QIcon( ":/type/network" ),
qtr( "&Network" ) ); qtr( "&Network" ) );
ui.Tab->insertTab( OPEN_CAPTURE_TAB, captureOpenPanel, QIcon( ":/capture-card" ), ui.Tab->insertTab( OPEN_CAPTURE_TAB, captureOpenPanel,
qtr( "Capture &Device" ) ); QIcon( ":/type/capture-card" ), qtr( "Capture &Device" ) );
/* Hide the Slave input widgets */ /* Hide the Slave input widgets */
ui.slaveLabel->hide(); ui.slaveLabel->hide();
......
...@@ -63,11 +63,11 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString& ...@@ -63,11 +63,11 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString&
ui.destTab->setCornerWidget( closeTabButton ); ui.destTab->setCornerWidget( closeTabButton );
closeTabButton->hide(); closeTabButton->hide();
closeTabButton->setAutoRaise( true ); closeTabButton->setAutoRaise( true );
closeTabButton->setIcon( QIcon( ":/clear" ) ); closeTabButton->setIcon( QIcon( ":/toolbar/clear" ) );
BUTTONACT( closeTabButton, closeTab() ); BUTTONACT( closeTabButton, closeTab() );
#endif #endif
CONNECT( ui.destTab, currentChanged( int ), this, tabChanged( int ) ); CONNECT( ui.destTab, currentChanged( int ), this, tabChanged( int ) );
ui.destTab->setTabIcon( 0, QIcon( ":/playlist_add" ) ); ui.destTab->setTabIcon( 0, QIcon( ":/buttons/playlist/playlist_add" ) );
ui.destBox->addItem( qtr( "File" ) ); ui.destBox->addItem( qtr( "File" ) );
ui.destBox->addItem( "HTTP" ); ui.destBox->addItem( "HTTP" );
......
...@@ -144,7 +144,7 @@ ToolbarEditDialog::ToolbarEditDialog( QWidget *_w, intf_thread_t *_p_intf) ...@@ -144,7 +144,7 @@ ToolbarEditDialog::ToolbarEditDialog( QWidget *_w, intf_thread_t *_p_intf)
QToolButton *newButton = new QToolButton; QToolButton *newButton = new QToolButton;
newButton->setIcon( QIcon( ":/new" ) ); newButton->setIcon( QIcon( ":/new" ) );
QToolButton *deleteButton = new QToolButton; QToolButton *deleteButton = new QToolButton;
deleteButton->setIcon( QIcon( ":/clear" ) ); deleteButton->setIcon( QIcon( ":/toolbar/clear" ) );
deleteButton->setToolTip( qtr( "Delete the current profile" ) ); deleteButton->setToolTip( qtr( "Delete the current profile" ) );
profileBoxLayout->addWidget( profileLabel, 0, 0 ); profileBoxLayout->addWidget( profileLabel, 0, 0 );
...@@ -290,12 +290,12 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent ) ...@@ -290,12 +290,12 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
} }
/* Spacers are yet again a different thing */ /* Spacers are yet again a different thing */
QListWidgetItem *widgetItem = new QListWidgetItem( QIcon( ":/space" ), QListWidgetItem *widgetItem = new QListWidgetItem( QIcon( ":/toolbar/space" ),
qtr( "Spacer" ), this ); qtr( "Spacer" ), this );
widgetItem->setData( Qt::UserRole, WIDGET_SPACER ); widgetItem->setData( Qt::UserRole, WIDGET_SPACER );
addItem( widgetItem ); addItem( widgetItem );
widgetItem = new QListWidgetItem( QIcon( ":/space" ), widgetItem = new QListWidgetItem( QIcon( ":/toolbar/space" ),
qtr( "Expanding Spacer" ), this ); qtr( "Expanding Spacer" ), this );
widgetItem->setData( Qt::UserRole, WIDGET_SPACER_EXTEND ); widgetItem->setData( Qt::UserRole, WIDGET_SPACER_EXTEND );
addItem( widgetItem ); addItem( widgetItem );
...@@ -346,7 +346,7 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent ) ...@@ -346,7 +346,7 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
{ {
QListWidgetItem *widgetItem = new QListWidgetItem( this ); QListWidgetItem *widgetItem = new QListWidgetItem( this );
widgetItem->setText( qtr("Small Volume") ); widgetItem->setText( qtr("Small Volume") );
widgetItem->setIcon( QIcon( ":/volume-medium" ) ); widgetItem->setIcon( QIcon( ":/toolbar/volume-medium" ) );
widgetItem->setData( Qt::UserRole, QVariant( i ) ); widgetItem->setData( Qt::UserRole, QVariant( i ) );
addItem( widgetItem ); addItem( widgetItem );
} }
...@@ -366,15 +366,15 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent ) ...@@ -366,15 +366,15 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
discLayout->setSpacing( 0 ); discLayout->setMargin( 0 ); discLayout->setSpacing( 0 ); discLayout->setMargin( 0 );
QToolButton *prevSectionButton = new QToolButton( discFrame ); QToolButton *prevSectionButton = new QToolButton( discFrame );
prevSectionButton->setIcon( QIcon( ":/dvd_prev" ) ); prevSectionButton->setIcon( QIcon( ":/toolbar/dvd_prev" ) );
discLayout->addWidget( prevSectionButton ); discLayout->addWidget( prevSectionButton );
QToolButton *menuButton = new QToolButton( discFrame ); QToolButton *menuButton = new QToolButton( discFrame );
menuButton->setIcon( QIcon( ":/dvd_menu" ) ); menuButton->setIcon( QIcon( ":/toolbar/dvd_menu" ) );
discLayout->addWidget( menuButton ); discLayout->addWidget( menuButton );
QToolButton *nextButton = new QToolButton( discFrame ); QToolButton *nextButton = new QToolButton( discFrame );
nextButton->setIcon( QIcon( ":/dvd_next" ) ); nextButton->setIcon( QIcon( ":/toolbar/dvd_next" ) );
discLayout->addWidget( nextButton ); discLayout->addWidget( nextButton );
widget = discFrame; widget = discFrame;
...@@ -388,11 +388,11 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent ) ...@@ -388,11 +388,11 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
telexLayout->setSpacing( 0 ); telexLayout->setMargin( 0 ); telexLayout->setSpacing( 0 ); telexLayout->setMargin( 0 );
QToolButton *telexOn = new QToolButton( telexFrame ); QToolButton *telexOn = new QToolButton( telexFrame );
telexOn->setIcon( QIcon( ":/tv" ) ); telexOn->setIcon( QIcon( ":/toolbar/tv" ) );
telexLayout->addWidget( telexOn ); telexLayout->addWidget( telexOn );
QToolButton *telexTransparent = new QToolButton; QToolButton *telexTransparent = new QToolButton;
telexOn->setIcon( QIcon( ":/tvtelx" ) ); telexOn->setIcon( QIcon( ":/toolbar/tvtelx" ) );
telexLayout->addWidget( telexTransparent ); telexLayout->addWidget( telexTransparent );
QSpinBox *telexPage = new QSpinBox; QSpinBox *telexPage = new QSpinBox;
...@@ -502,7 +502,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout, ...@@ -502,7 +502,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout,
if( i_type == WIDGET_SPACER || i_type == WIDGET_SPACER_EXTEND ) if( i_type == WIDGET_SPACER || i_type == WIDGET_SPACER_EXTEND )
{ {
QLabel *label = new QLabel( this ); QLabel *label = new QLabel( this );
label->setPixmap( QPixmap( ":/space" ) ); label->setPixmap( QPixmap( ":/toolbar/space" ) );
if( i_type == WIDGET_SPACER_EXTEND ) if( i_type == WIDGET_SPACER_EXTEND )
{ {
label->setSizePolicy( QSizePolicy::MinimumExpanding, label->setSizePolicy( QSizePolicy::MinimumExpanding,
......
...@@ -510,11 +510,11 @@ VLMAWidget::VLMAWidget( const QString& _name, ...@@ -510,11 +510,11 @@ VLMAWidget::VLMAWidget( const 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( ":/settings" ) ) ); modifyButton->setIcon( QIcon( QPixmap( ":/menu/settings" ) ) );
objLayout->addWidget( modifyButton, 0, 5 ); objLayout->addWidget( modifyButton, 0, 5 );
QToolButton *deleteButton = new QToolButton; QToolButton *deleteButton = new QToolButton;
deleteButton->setIcon( QIcon( QPixmap( ":/quit" ) ) ); deleteButton->setIcon( QIcon( QPixmap( ":/menu/quit" ) ) );
objLayout->addWidget( deleteButton, 0, 6 ); objLayout->addWidget( deleteButton, 0, 6 );
BUTTONACT( modifyButton, modify() ); BUTTONACT( modifyButton, modify() );
...@@ -551,12 +551,12 @@ VLMBroadcast::VLMBroadcast( const QString& _name, const QString& _input, ...@@ -551,12 +551,12 @@ VLMBroadcast::VLMBroadcast( const QString& _name, const QString& _input,
b_looped = _looped; b_looped = _looped;
playButton = new QToolButton; playButton = new QToolButton;
playButton->setIcon( QIcon( QPixmap( ":/play" ) ) ); playButton->setIcon( QIcon( QPixmap( ":/menu/play" ) ) );
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( ":/stop_b" ) ) ); stopButton->setIcon( QIcon( QPixmap( ":/toolbar/stop_b" ) ) );
objLayout->addWidget( stopButton, 1, 1 ); objLayout->addWidget( stopButton, 1, 1 );
loopButton = new QToolButton; loopButton = new QToolButton;
...@@ -573,9 +573,9 @@ void VLMBroadcast::update() ...@@ -573,9 +573,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( ":/repeat_all" ) ) ); loopButton->setIcon( QIcon( QPixmap( ":/buttons/playlist/repeat_all" ) ) );
else else
loopButton->setIcon( QIcon( QPixmap( ":/repeat_off" ) ) ); loopButton->setIcon( QIcon( QPixmap( ":/buttons/playlist/repeat_off" ) ) );
} }
void VLMBroadcast::togglePlayPause() void VLMBroadcast::togglePlayPause()
...@@ -583,12 +583,12 @@ void VLMBroadcast::togglePlayPause() ...@@ -583,12 +583,12 @@ void VLMBroadcast::togglePlayPause()
if( b_playing ) if( b_playing )
{ {
VLMWrapper::ControlBroadcast( name, ControlBroadcastPause ); VLMWrapper::ControlBroadcast( name, ControlBroadcastPause );
playButton->setIcon( QIcon( QPixmap( ":/pause_16px" ) ) ); playButton->setIcon( QIcon( QPixmap( ":/menu/pause" ) ) );
} }
else else
{ {
VLMWrapper::ControlBroadcast( name, ControlBroadcastPlay ); VLMWrapper::ControlBroadcast( name, ControlBroadcastPlay );
playButton->setIcon( QIcon( QPixmap( ":/play_16px" ) ) ); playButton->setIcon( QIcon( QPixmap( ":/menu/play" ) ) );
} }
b_playing = !b_playing; b_playing = !b_playing;
} }
...@@ -602,7 +602,7 @@ void VLMBroadcast::toggleLoop() ...@@ -602,7 +602,7 @@ void VLMBroadcast::toggleLoop()
void VLMBroadcast::stop() void VLMBroadcast::stop()
{ {
VLMWrapper::ControlBroadcast( name, ControlBroadcastStop ); VLMWrapper::ControlBroadcast( name, ControlBroadcastStop );
playButton->setIcon( QIcon( QPixmap( ":/play_16px" ) ) ); playButton->setIcon( QIcon( QPixmap( ":/menu/play" ) ) );
} }
/**************** /****************
......
...@@ -961,9 +961,9 @@ void MainInterface::createSystray() ...@@ -961,9 +961,9 @@ void MainInterface::createSystray()
{ {
QIcon iconVLC; QIcon iconVLC;
if( QDate::currentDate().dayOfYear() >= 354 ) if( QDate::currentDate().dayOfYear() >= 354 )
iconVLC = QIcon( QPixmap( ":/vlc128-christmas.png" ) ); iconVLC = QIcon( QPixmap( ":/logo/vlc128-christmas.png" ) );
else else
iconVLC = QIcon( QPixmap( ":/vlc128.png" ) ); iconVLC = QIcon( QPixmap( ":/logo/vlc128.png" ) );
sysTray = new QSystemTrayIcon( iconVLC, this ); sysTray = new QSystemTrayIcon( iconVLC, this );
sysTray->setToolTip( qtr( "VLC media player" )); sysTray->setToolTip( qtr( "VLC media player" ));
......
...@@ -304,17 +304,17 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent ) ...@@ -304,17 +304,17 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent )
QMenu *menu = new QMenu( parent ); QMenu *menu = new QMenu( parent );
addDPStaticEntry( menu, qtr( "&Open File..." ), addDPStaticEntry( menu, qtr( "&Open File..." ),
":/file-asym", SLOT( simpleOpenDialog() ), "Ctrl+O" ); ":/type/file-asym", SLOT( simpleOpenDialog() ), "Ctrl+O" );
addDPStaticEntry( menu, qtr( "Advanced Open File..." ), addDPStaticEntry( menu, qtr( "Advanced Open File..." ),
":/file-asym", SLOT( openFileDialog() ), "Ctrl+Shift+O" ); ":/type/file-asym", SLOT( openFileDialog() ), "Ctrl+Shift+O" );
addDPStaticEntry( menu, qtr( I_OPEN_FOLDER ), addDPStaticEntry( menu, qtr( I_OPEN_FOLDER ),
":/folder-grey", SLOT( PLOpenDir() ), "Ctrl+F" ); ":/type/folder-grey", SLOT( PLOpenDir() ), "Ctrl+F" );
addDPStaticEntry( menu, qtr( "Open &Disc..." ), addDPStaticEntry( menu, qtr( "Open &Disc..." ),
":/disc", SLOT( openDiscDialog() ), "Ctrl+D" ); ":/type/disc", SLOT( openDiscDialog() ), "Ctrl+D" );
addDPStaticEntry( menu, qtr( "Open &Network Stream..." ), addDPStaticEntry( menu, qtr( "Open &Network Stream..." ),
":/network", SLOT( openNetDialog() ), "Ctrl+N" ); ":/type/network", SLOT( openNetDialog() ), "Ctrl+N" );
addDPStaticEntry( menu, qtr( "Open &Capture Device..." ), addDPStaticEntry( menu, qtr( "Open &Capture Device..." ),
":/capture-card", SLOT( openCaptureDialog() ), ":/type/capture-card", SLOT( openCaptureDialog() ),
"Ctrl+C" ); "Ctrl+C" );
menu->addSeparator(); menu->addSeparator();
...@@ -338,13 +338,13 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent ) ...@@ -338,13 +338,13 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent )
addDPStaticEntry( menu, qtr( "Conve&rt / Save..." ), "", addDPStaticEntry( menu, qtr( "Conve&rt / Save..." ), "",
SLOT( openAndTranscodingDialogs() ), "Ctrl+R" ); SLOT( openAndTranscodingDialogs() ), "Ctrl+R" );
addDPStaticEntry( menu, qtr( "&Streaming..." ), addDPStaticEntry( menu, qtr( "&Streaming..." ),
":/stream", SLOT( openAndStreamingDialogs() ), ":/menu/stream", SLOT( openAndStreamingDialogs() ),
"Ctrl+S" ); "Ctrl+S" );
menu->addSeparator(); menu->addSeparator();
#endif #endif
addDPStaticEntry( menu, qtr( "&Quit" ) , addDPStaticEntry( menu, qtr( "&Quit" ) ,
":/quit", SLOT( quit() ), "Ctrl+Q" ); ":/menu/quit", SLOT( quit() ), "Ctrl+Q" );
return menu; return menu;
} }
...@@ -353,16 +353,16 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent ) ...@@ -353,16 +353,16 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent )
**/ **/
QMenu *QVLCMenu::ToolsMenu( QMenu *menu ) QMenu *QVLCMenu::ToolsMenu( QMenu *menu )
{ {
addDPStaticEntry( menu, qtr( "&Effects and Filters"), ":/settings", addDPStaticEntry( menu, qtr( "&Effects and Filters"), ":/menu/settings",
SLOT( extendedDialog() ), "Ctrl+E" ); SLOT( extendedDialog() ), "Ctrl+E" );
addDPStaticEntry( menu, qtr( "&Track Synchronization"), ":/settings", addDPStaticEntry( menu, qtr( "&Track Synchronization"), ":/menu/settings",
SLOT( synchroDialog() ), "" ); SLOT( synchroDialog() ), "" );
addDPStaticEntry( menu, qtr( I_MENU_INFO ) , ":/info", addDPStaticEntry( menu, qtr( I_MENU_INFO ) , ":/menu/info",
SLOT( mediaInfoDialog() ), "Ctrl+I" ); SLOT( mediaInfoDialog() ), "Ctrl+I" );
addDPStaticEntry( menu, qtr( I_MENU_CODECINFO ) , addDPStaticEntry( menu, qtr( I_MENU_CODECINFO ) ,
":/info", SLOT( mediaCodecDialog() ), "Ctrl+J" ); ":/menu/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" );
...@@ -372,7 +372,7 @@ QMenu *QVLCMenu::ToolsMenu( QMenu *menu ) ...@@ -372,7 +372,7 @@ QMenu *QVLCMenu::ToolsMenu( QMenu *menu )
#endif #endif
addDPStaticEntry( menu, qtr( I_MENU_MSG ), addDPStaticEntry( menu, qtr( I_MENU_MSG ),
":/messages", SLOT( messagesDialog() ), ":/menu/messages", SLOT( messagesDialog() ),
"Ctrl+M" ); "Ctrl+M" );
addDPStaticEntry( menu, qtr( "Plu&gins and extensions" ), addDPStaticEntry( menu, qtr( "Plu&gins and extensions" ),
...@@ -380,7 +380,7 @@ QMenu *QVLCMenu::ToolsMenu( QMenu *menu ) ...@@ -380,7 +380,7 @@ QMenu *QVLCMenu::ToolsMenu( QMenu *menu )
menu->addSeparator(); menu->addSeparator();
addDPStaticEntry( menu, qtr( "&Preferences" ), addDPStaticEntry( menu, qtr( "&Preferences" ),
":/preferences", SLOT( prefsDialog() ), "Ctrl+P" ); ":/menu/preferences", SLOT( prefsDialog() ), "Ctrl+P" );
return menu; return menu;
} }
...@@ -402,7 +402,7 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf, ...@@ -402,7 +402,7 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf,
QMenu *menu = new QMenu( qtr( "V&iew" ), mi ); QMenu *menu = new QMenu( qtr( "V&iew" ), mi );
QAction *act = menu->addAction( QIcon( ":/playlist_menu" ), QAction *act = menu->addAction( QIcon( ":/menu/playlist_menu" ),
qtr( "Play&list" ), mi, qtr( "Play&list" ), mi,
SLOT( togglePlaylist() ), qtr( "Ctrl+L" ) ); SLOT( togglePlaylist() ), qtr( "Ctrl+L" ) );
...@@ -463,7 +463,7 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf, ...@@ -463,7 +463,7 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf,
menu->addSeparator(); menu->addSeparator();
addDPStaticEntry( menu, qtr( "Customi&ze Interface..." ), addDPStaticEntry( menu, qtr( "Customi&ze Interface..." ),
":/preferences", SLOT( toolbarDialog() ) ); ":/menu/preferences", SLOT( toolbarDialog() ) );
menu->addSeparator(); menu->addSeparator();
return menu; return menu;
...@@ -691,13 +691,13 @@ QMenu *QVLCMenu::HelpMenu( QWidget *parent ) ...@@ -691,13 +691,13 @@ QMenu *QVLCMenu::HelpMenu( QWidget *parent )
{ {
QMenu *menu = new QMenu( parent ); QMenu *menu = new QMenu( parent );
addDPStaticEntry( menu, qtr( "&Help..." ) , addDPStaticEntry( menu, qtr( "&Help..." ) ,
":/help", SLOT( helpDialog() ), "F1" ); ":/menu/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 ), ":/info", addDPStaticEntry( menu, qtr( I_MENU_ABOUT ), ":/menu/info",
SLOT( aboutDialog() ), "Shift+F1" ); SLOT( aboutDialog() ), "Shift+F1" );
return menu; return menu;
} }
...@@ -729,12 +729,12 @@ void QVLCMenu::PopupPlayEntries( QMenu *menu, ...@@ -729,12 +729,12 @@ void QVLCMenu::PopupPlayEntries( QMenu *menu,
{ {
action = menu->addAction( qtr( "Play" ), action = menu->addAction( qtr( "Play" ),
ActionsManager::getInstance( p_intf ), SLOT( play() ) ); ActionsManager::getInstance( p_intf ), SLOT( play() ) );
action->setIcon( QIcon( ":/play" ) ); action->setIcon( QIcon( ":/menu/play" ) );
} }
else else
{ {
addMIMStaticEntry( p_intf, menu, qtr( "Pause" ), addMIMStaticEntry( p_intf, menu, qtr( "Pause" ),
":/pause", SLOT( togglePlayPause() ) ); ":/menu/pause", SLOT( togglePlayPause() ) );
} }
} }
...@@ -745,7 +745,7 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf ) ...@@ -745,7 +745,7 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf )
/* Faster/Slower */ /* Faster/Slower */
action = menu->addAction( qtr( "&Faster" ), THEMIM->getIM(), action = menu->addAction( qtr( "&Faster" ), THEMIM->getIM(),
SLOT( faster() ) ); SLOT( faster() ) );
action->setIcon( QIcon( ":/faster") ); action->setIcon( QIcon( ":/toolbar/faster") );
action->setData( STATIC_ENTRY ); action->setData( STATIC_ENTRY );
action = menu->addAction( qtr( "Faster (fine)" ), THEMIM->getIM(), action = menu->addAction( qtr( "Faster (fine)" ), THEMIM->getIM(),
...@@ -762,19 +762,19 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf ) ...@@ -762,19 +762,19 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf )
action = menu->addAction( qtr( "Slo&wer" ), THEMIM->getIM(), action = menu->addAction( qtr( "Slo&wer" ), THEMIM->getIM(),
SLOT( slower() ) ); SLOT( slower() ) );
action->setIcon( QIcon( ":/slower") ); action->setIcon( QIcon( ":/toolbar/slower") );
action->setData( STATIC_ENTRY ); action->setData( STATIC_ENTRY );
menu->addSeparator(); menu->addSeparator();
action = menu->addAction( qtr( "&Jump Forward" ), THEMIM->getIM(), action = menu->addAction( qtr( "&Jump Forward" ), THEMIM->getIM(),
SLOT( jumpFwd() ) ); SLOT( jumpFwd() ) );
action->setIcon( QIcon( ":/skip_fw") ); action->setIcon( QIcon( ":/toolbar/skip_fw") );
action->setData( STATIC_ENTRY ); action->setData( STATIC_ENTRY );
action = menu->addAction( qtr( "Jump Bac&kward" ), THEMIM->getIM(), action = menu->addAction( qtr( "Jump Bac&kward" ), THEMIM->getIM(),
SLOT( jumpBwd() ) ); SLOT( jumpBwd() ) );
action->setIcon( QIcon( ":/skip_back") ); action->setIcon( QIcon( ":/toolbar/skip_back") );
action->setData( STATIC_ENTRY ); action->setData( STATIC_ENTRY );
addDPStaticEntry( menu, qtr( I_MENU_GOTOTIME ),"", addDPStaticEntry( menu, qtr( I_MENU_GOTOTIME ),"",
SLOT( gotoTimeDialog() ), "Ctrl+T" ); SLOT( gotoTimeDialog() ), "Ctrl+T" );
...@@ -787,7 +787,7 @@ void QVLCMenu::PopupMenuPlaylistControlEntries( QMenu *menu, ...@@ -787,7 +787,7 @@ void QVLCMenu::PopupMenuPlaylistControlEntries( QMenu *menu,
{ {
bool bEnable = THEMIM->getInput() != NULL; bool bEnable = THEMIM->getInput() != NULL;
QAction *action = QAction *action =
addMIMStaticEntry( p_intf, menu, qtr( "&Stop" ), ":/stop", addMIMStaticEntry( p_intf, menu, qtr( "&Stop" ), ":/menu/stop",
SLOT( stop() ), true ); SLOT( stop() ), true );
/* Disable Stop in the right-click popup menu */ /* Disable Stop in the right-click popup menu */
if( !bEnable ) if( !bEnable )
...@@ -795,9 +795,9 @@ void QVLCMenu::PopupMenuPlaylistControlEntries( QMenu *menu, ...@@ -795,9 +795,9 @@ void QVLCMenu::PopupMenuPlaylistControlEntries( QMenu *menu,
/* Next / Previous */ /* Next / Previous */
addMIMStaticEntry( p_intf, menu, qtr( "Pre&vious" ), addMIMStaticEntry( p_intf, menu, qtr( "Pre&vious" ),
":/previous", SLOT( prev() ) ); ":/menu/previous", SLOT( prev() ) );
addMIMStaticEntry( p_intf, menu, qtr( "Ne&xt" ), addMIMStaticEntry( p_intf, menu, qtr( "Ne&xt" ),
":/next", SLOT( next() ) ); ":/menu/next", SLOT( next() ) );
menu->addSeparator(); menu->addSeparator();
} }
...@@ -805,15 +805,15 @@ void QVLCMenu::PopupMenuStaticEntries( QMenu *menu ) ...@@ -805,15 +805,15 @@ void QVLCMenu::PopupMenuStaticEntries( QMenu *menu )
{ {
QMenu *openmenu = new QMenu( qtr( "Open Media" ), menu ); QMenu *openmenu = new QMenu( qtr( "Open Media" ), menu );
addDPStaticEntry( openmenu, qtr( "&Open File..." ), addDPStaticEntry( openmenu, qtr( "&Open File..." ),
":/file-asym", SLOT( openFileDialog() ) ); ":/type/file-asym", SLOT( openFileDialog() ) );
addDPStaticEntry( openmenu, qtr( I_OPEN_FOLDER ), addDPStaticEntry( openmenu, qtr( I_OPEN_FOLDER ),
":/folder-grey", SLOT( PLOpenDir() ) ); ":/type/folder-grey", SLOT( PLOpenDir() ) );
addDPStaticEntry( openmenu, qtr( "Open &Disc..." ), addDPStaticEntry( openmenu, qtr( "Open &Disc..." ),
":/disc", SLOT( openDiscDialog() ) ); ":/type/disc", SLOT( openDiscDialog() ) );
addDPStaticEntry( openmenu, qtr( "Open &Network..." ), addDPStaticEntry( openmenu, qtr( "Open &Network..." ),
":/network", SLOT( openNetDialog() ) ); ":/type/network", SLOT( openNetDialog() ) );
addDPStaticEntry( openmenu, qtr( "Open &Capture Device..." ), addDPStaticEntry( openmenu, qtr( "Open &Capture Device..." ),
":/capture-card", SLOT( openCaptureDialog() ) ); ":/type/capture-card", SLOT( openCaptureDialog() ) );
menu->addMenu( openmenu ); menu->addMenu( openmenu );
menu->addSeparator(); menu->addSeparator();
...@@ -823,7 +823,7 @@ void QVLCMenu::PopupMenuStaticEntries( QMenu *menu ) ...@@ -823,7 +823,7 @@ void QVLCMenu::PopupMenuStaticEntries( QMenu *menu )
menu->addMenu( helpmenu ); menu->addMenu( helpmenu );
#endif #endif
addDPStaticEntry( menu, qtr( "Quit" ), ":/quit", addDPStaticEntry( menu, qtr( "Quit" ), ":/menu/quit",
SLOT( quit() ), "Ctrl+Q" ); SLOT( quit() ), "Ctrl+Q" );
} }
...@@ -1025,13 +1025,13 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi, ...@@ -1025,13 +1025,13 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
/* Hide / Show VLC and cone */ /* Hide / Show VLC and cone */
if( mi->isVisible() || b_force_visible ) if( mi->isVisible() || b_force_visible )
{ {
sysMenu->addAction( QIcon( ":/vlc16.png" ), sysMenu->addAction( QIcon( ":/logo/vlc16.png" ),
qtr( "Hide VLC media player in taskbar" ), mi, qtr( "Hide VLC media player in taskbar" ), mi,
SLOT( toggleUpdateSystrayMenu() ) ); SLOT( toggleUpdateSystrayMenu() ) );
} }
else else
{ {
sysMenu->addAction( QIcon( ":/vlc16.png" ), sysMenu->addAction( QIcon( ":/logo/vlc16.png" ),
qtr( "Show VLC media player" ), mi, qtr( "Show VLC media player" ), mi,
SLOT( toggleUpdateSystrayMenu() ) ); SLOT( toggleUpdateSystrayMenu() ) );
} }
...@@ -1043,9 +1043,9 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi, ...@@ -1043,9 +1043,9 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
sysMenu->addSeparator(); sysMenu->addSeparator();
addDPStaticEntry( sysMenu, qtr( "&Open Media" ), addDPStaticEntry( sysMenu, qtr( "&Open Media" ),
":/file-wide", SLOT( openFileDialog() ) ); ":/type/file-wide", SLOT( openFileDialog() ) );
addDPStaticEntry( sysMenu, qtr( "&Quit" ) , addDPStaticEntry( sysMenu, qtr( "&Quit" ) ,
":/quit", SLOT( quit() ) ); ":/menu/quit", SLOT( quit() ) );
/* Set the menu */ /* Set the menu */
mi->getSysTray()->setContextMenu( sysMenu ); mi->getSysTray()->setContextMenu( sysMenu );
......
...@@ -132,7 +132,7 @@ SearchLineEdit::SearchLineEdit( QWidget *parent ) : QFrame( parent ) ...@@ -132,7 +132,7 @@ SearchLineEdit::SearchLineEdit( QWidget *parent ) : QFrame( parent )
clearButton = new QToolButton; clearButton = new QToolButton;
clearButton->setAutoRaise( true ); clearButton->setAutoRaise( true );
clearButton->setMaximumWidth( 30 ); clearButton->setMaximumWidth( 30 );
clearButton->setIcon( QIcon( ":/clear" ) ); clearButton->setIcon( QIcon( ":/toolbar/clear" ) );
clearButton->setToolTip( qtr( "Clear" ) ); clearButton->setToolTip( qtr( "Clear" ) );
clearButton->hide(); clearButton->hide();
......
...@@ -146,9 +146,9 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard, ...@@ -146,9 +146,9 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard,
b_isSliding = false; b_isSliding = false;
b_mouseOutside = true; b_mouseOutside = true;
pixOutside = QPixmap( ":/volslide-outside" ); pixOutside = QPixmap( ":/toolbar/volslide-outside" );
const QPixmap temp( ":/volslide-inside" ); const QPixmap temp( ":/toolbar/volslide-inside" );
const QBitmap mask( temp.createHeuristicMask() ); const QBitmap mask( temp.createHeuristicMask() );
setMinimumSize( pixOutside.size() ); setMinimumSize( pixOutside.size() );
......
This diff is collapsed.
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