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) $< -> $@"
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 );
--- /dev/null
+<!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>
<rect>
<x>0</x>
<y>0</y>
- <width>450</width>
- <height>80</height>
+ <width>428</width>
+ <height>79</height>
</rect>
</property>
<property name="windowTitle" >
</widget>
</item>
<item>
- <widget class="QFrame" name="frame" >
+ <widget class="QFrame" name="discFrame" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<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>
</sizepolicy>
</property>
<property name="text" >
- <string>Play</string>
+ <string/>
+ </property>
+ <property name="iconSize" >
+ <size>
+ <width>24</width>
+ <height>24</height>
+ </size>
</property>
</widget>
</item>
</sizepolicy>
</property>
<property name="text" >
- <string>Stop</string>
+ <string/>
+ </property>
+ <property name="iconSize" >
+ <size>
+ <width>24</width>
+ <height>24</height>
+ </size>
</property>
</widget>
</item>
</sizepolicy>
</property>
<property name="text" >
- <string>Next</string>
+ <string/>
+ </property>
+ <property name="iconSize" >
+ <size>
+ <width>24</width>
+ <height>24</height>
+ </size>
</property>
</widget>
</item>
</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" >