Commit 47315c39 authored by Clément Stenac's avatar Clément Stenac

Icons

parent f28b106b
...@@ -42,12 +42,16 @@ nodist_SOURCES_qt4 = \ ...@@ -42,12 +42,16 @@ nodist_SOURCES_qt4 = \
components/preferences.moc.cpp \ components/preferences.moc.cpp \
components/open.moc.cpp \ components/open.moc.cpp \
components/playlist/panels.moc.cpp \ components/playlist/panels.moc.cpp \
util/input_slider.moc.cpp util/input_slider.moc.cpp \
resources.cpp
if ENABLE_QT4 if ENABLE_QT4
BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4) BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
endif endif
resources.cpp:
rm -f resources.cpp
$(RCC) res.qrc > resources.cpp
$(MOCCPP): %.moc.cpp: %.hpp $(MOCCPP): %.moc.cpp: %.hpp
@echo "$(MOC) $< -> $@" @echo "$(MOC) $< -> $@"
......
...@@ -37,12 +37,22 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QMainWindow(), p_intf( ...@@ -37,12 +37,22 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QMainWindow(), p_intf(
setCentralWidget( main ); setCentralWidget( main );
setWindowTitle( _("VLC media player") ); setWindowTitle( _("VLC media player") );
ui.setupUi( centralWidget() ); ui.setupUi( centralWidget() );
slider = new InputSlider( Qt::Horizontal, ui.sliderBox ); slider = new InputSlider( Qt::Horizontal, ui.sliderBox );
QVBoxLayout *box_layout = new QVBoxLayout(); QVBoxLayout *box_layout = new QVBoxLayout();
box_layout->addWidget( slider ); box_layout->addWidget( slider );
ui.sliderBox->setLayout( box_layout ); ui.sliderBox->setLayout( box_layout );
ui.prevButton->setIcon( QIcon( ":/pixmaps/previous.png" ) );
ui.nextButton->setIcon( QIcon( ":/pixmaps/next.png" ) );
ui.playButton->setIcon( QIcon( ":/pixmaps/play.png" ) );
ui.stopButton->setIcon( QIcon( ":/pixmaps/stop.png" ) );
ui.volLowLabel->setPixmap( QPixmap( ":/pixmaps/volume-low.png" ) );
ui.volHighLabel->setPixmap( QPixmap( ":/pixmaps/volume-high.png" ) );
resize( QSize( 450, 80 ) ); resize( QSize( 450, 80 ) );
//QVLCMenu::createMenuBar();
/* Init input manager */ /* Init input manager */
MainInputManager::getInstance( p_intf ); MainInputManager::getInstance( p_intf );
......
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource>
<file>pixmaps/play.png</file>
<file>pixmaps/stop.png</file>
<file>pixmaps/previous.png</file>
<file>pixmaps/next.png</file>
</qresource>
</RCC>
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>450</width> <width>428</width>
<height>80</height> <height>79</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle" >
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QFrame" name="frame" > <widget class="QFrame" name="discFrame" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy> <sizepolicy>
<hsizetype>0</hsizetype> <hsizetype>0</hsizetype>
...@@ -83,8 +83,11 @@ ...@@ -83,8 +83,11 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text" > <property name="iconSize" >
<string>Prev</string> <size>
<width>24</width>
<height>24</height>
</size>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -99,7 +102,13 @@ ...@@ -99,7 +102,13 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text" > <property name="text" >
<string>Play</string> <string/>
</property>
<property name="iconSize" >
<size>
<width>24</width>
<height>24</height>
</size>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -114,7 +123,13 @@ ...@@ -114,7 +123,13 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text" > <property name="text" >
<string>Stop</string> <string/>
</property>
<property name="iconSize" >
<size>
<width>24</width>
<height>24</height>
</size>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -129,7 +144,13 @@ ...@@ -129,7 +144,13 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text" > <property name="text" >
<string>Next</string> <string/>
</property>
<property name="iconSize" >
<size>
<width>24</width>
<height>24</height>
</size>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -146,6 +167,27 @@ ...@@ -146,6 +167,27 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item>
<widget class="QLabel" name="volLowLabel" >
<property name="text" >
<string/>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="volumeSlider" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="volHighLabel" >
<property name="text" >
<string/>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="playlistButton" > <widget class="QPushButton" name="playlistButton" >
<property name="text" > <property name="text" >
......
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