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

Icons

parent f28b106b
......@@ -42,12 +42,16 @@ nodist_SOURCES_qt4 = \
components/preferences.moc.cpp \
components/open.moc.cpp \
components/playlist/panels.moc.cpp \
util/input_slider.moc.cpp
util/input_slider.moc.cpp \
resources.cpp
if ENABLE_QT4
BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
endif
resources.cpp:
rm -f resources.cpp
$(RCC) res.qrc > resources.cpp
$(MOCCPP): %.moc.cpp: %.hpp
@echo "$(MOC) $< -> $@"
......
......@@ -37,12 +37,22 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QMainWindow(), p_intf(
setCentralWidget( main );
setWindowTitle( _("VLC media player") );
ui.setupUi( centralWidget() );
slider = new InputSlider( Qt::Horizontal, ui.sliderBox );
QVBoxLayout *box_layout = new QVBoxLayout();
box_layout->addWidget( slider );
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 ) );
//QVLCMenu::createMenuBar();
/* Init input manager */
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 @@
<rect>
<x>0</x>
<y>0</y>
<width>450</width>
<height>80</height>
<width>428</width>
<height>79</height>
</rect>
</property>
<property name="windowTitle" >
......@@ -46,7 +46,7 @@
</widget>
</item>
<item>
<widget class="QFrame" name="frame" >
<widget class="QFrame" name="discFrame" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
......@@ -83,8 +83,11 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Prev</string>
<property name="iconSize" >
<size>
<width>24</width>
<height>24</height>
</size>
</property>
</widget>
</item>
......@@ -99,7 +102,13 @@
</sizepolicy>
</property>
<property name="text" >
<string>Play</string>
<string/>
</property>
<property name="iconSize" >
<size>
<width>24</width>
<height>24</height>
</size>
</property>
</widget>
</item>
......@@ -114,7 +123,13 @@
</sizepolicy>
</property>
<property name="text" >
<string>Stop</string>
<string/>
</property>
<property name="iconSize" >
<size>
<width>24</width>
<height>24</height>
</size>
</property>
</widget>
</item>
......@@ -129,7 +144,13 @@
</sizepolicy>
</property>
<property name="text" >
<string>Next</string>
<string/>
</property>
<property name="iconSize" >
<size>
<width>24</width>
<height>24</height>
</size>
</property>
</widget>
</item>
......@@ -146,6 +167,27 @@
</property>
</spacer>
</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>
<widget class="QPushButton" name="playlistButton" >
<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