Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
ef1dfd89
Commit
ef1dfd89
authored
Jul 29, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgotten tooltips.
parent
a6423aab
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
60 additions
and
47 deletions
+60
-47
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+24
-15
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+6
-1
modules/gui/qt4/dialogs/mediainfo.cpp
modules/gui/qt4/dialogs/mediainfo.cpp
+1
-1
modules/gui/qt4/dialogs/podcast_configuration.cpp
modules/gui/qt4/dialogs/podcast_configuration.cpp
+3
-1
modules/gui/qt4/dialogs/preferences.cpp
modules/gui/qt4/dialogs/preferences.cpp
+2
-0
modules/gui/qt4/ui/open.ui
modules/gui/qt4/ui/open.ui
+4
-1
modules/gui/qt4/ui/open_disk.ui
modules/gui/qt4/ui/open_disk.ui
+20
-28
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
ef1dfd89
...
...
@@ -56,6 +56,8 @@
#include <math.h>
#define I_PLAY_TOOLTIP "Play\nIf the playlist is empty, open a media"
/**********************************************************************
* Video Widget. A simple frame on which video is drawn
* This class handles resize issues
...
...
@@ -303,11 +305,12 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) :
advLayout
->
setAlignment
(
Qt
::
AlignBottom
);
/* A to B Button */
ABButton
=
new
QPushButton
(
"AB"
)
;
ABButton
=
new
QPushButton
;
setupSmallButton
(
ABButton
);
advLayout
->
addWidget
(
ABButton
);
BUTTON_SET_ACT_I
(
ABButton
,
""
,
atob_nob
,
qtr
(
"Loop from point A to point B continuously
\n
Click to set point A"
),
fromAtoB
()
);
qtr
(
"Loop from point A to point B continuously.
\n
Click to set point A"
),
fromAtoB
()
);
timeA
=
timeB
=
0
;
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
this
,
AtoBLoop
(
float
,
int
,
int
)
);
...
...
@@ -319,14 +322,14 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) :
BUTTON_SET_ACT( frameButton, "Fr", qtr( "Frame by frame" ), frame() );
#endif
recordButton
=
new
QPushButton
(
"R"
)
;
recordButton
=
new
QPushButton
;
setupSmallButton
(
recordButton
);
advLayout
->
addWidget
(
recordButton
);
BUTTON_SET_ACT_I
(
recordButton
,
""
,
record
,
qtr
(
"Record"
),
record
()
);
/* Snapshot Button */
snapshotButton
=
new
QPushButton
(
"S"
)
;
snapshotButton
=
new
QPushButton
;
setupSmallButton
(
snapshotButton
);
advLayout
->
addWidget
(
snapshotButton
);
BUTTON_SET_ACT_I
(
snapshotButton
,
""
,
snapshot
,
...
...
@@ -569,19 +572,20 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
/* Add this block to the main layout */
BUTTON_SET_ACT_I
(
playButton
,
""
,
play_b
,
qtr
(
"Play"
),
play
()
);
BUTTON_SET_ACT_I
(
playButton
,
""
,
play_b
,
qtr
(
I_PLAY_TOOLTIP
),
play
()
);
BUTTON_SET_ACT_I
(
prevButton
,
""
,
previous_b
,
qtr
(
"Previous"
),
prev
()
);
BUTTON_SET_ACT_I
(
nextButton
,
""
,
next_b
,
qtr
(
"Next"
),
next
()
);
BUTTON_SET_ACT_I
(
stopButton
,
""
,
stop_b
,
qtr
(
"Stop"
),
stop
()
);
qtr
(
"Previous media in the playlist"
),
prev
()
);
BUTTON_SET_ACT_I
(
nextButton
,
""
,
next_b
,
qtr
(
"Next media in the playlist"
),
next
()
);
BUTTON_SET_ACT_I
(
stopButton
,
""
,
stop_b
,
qtr
(
"Stop playback"
),
stop
()
);
/*
* Other first Line buttons
*/
/** Fullscreen/Visualisation **/
fullscreenButton
=
new
QPushButton
;
BUTTON_SET_ACT_I
(
fullscreenButton
,
""
,
fullscreen
,
qtr
(
"Fullscreen"
),
fullscreen
()
);
BUTTON_SET_ACT_I
(
fullscreenButton
,
""
,
fullscreen
,
qtr
(
"Toggle the video in fullscreen"
),
fullscreen
()
);
setupSmallButton
(
fullscreenButton
);
if
(
!
b_fsCreation
)
...
...
@@ -595,7 +599,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
/** extended Settings **/
extSettingsButton
=
new
QPushButton
;
BUTTON_SET_ACT_I
(
extSettingsButton
,
""
,
extended
,
qtr
(
"
E
xtended settings"
),
extSettings
()
);
qtr
(
"
Show e
xtended settings"
),
extSettings
()
);
setupSmallButton
(
extSettingsButton
);
}
...
...
@@ -604,7 +608,6 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
volMuteLabel
=
new
QLabel
;
volMuteLabel
->
setPixmap
(
QPixmap
(
":/volume-medium"
)
);
volMuteLabel
->
setToolTip
(
qtr
(
"Mute"
)
);
volMuteLabel
->
installEventFilter
(
hVolLabel
);
if
(
b_shiny
)
...
...
@@ -779,12 +782,18 @@ void ControlsWidget::updateVolume( int i_sliderVolume )
aout_VolumeSet
(
p_intf
,
i_res
);
}
if
(
i_sliderVolume
==
0
)
{
volMuteLabel
->
setPixmap
(
QPixmap
(
":/volume-muted"
)
);
else
if
(
i_sliderVolume
<
VOLUME_MAX
/
3
)
volMuteLabel
->
setToolTip
(
qtr
(
"Unmute"
)
);
return
;
}
if
(
i_sliderVolume
<
VOLUME_MAX
/
3
)
volMuteLabel
->
setPixmap
(
QPixmap
(
":/volume-low"
)
);
else
if
(
i_sliderVolume
>
(
VOLUME_MAX
*
2
/
3
)
)
volMuteLabel
->
setPixmap
(
QPixmap
(
":/volume-high"
)
);
else
volMuteLabel
->
setPixmap
(
QPixmap
(
":/volume-medium"
)
);
volMuteLabel
->
setToolTip
(
qtr
(
"Mute"
)
);
}
void
ControlsWidget
::
updateVolume
()
...
...
@@ -815,12 +824,12 @@ void ControlsWidget::setStatus( int status )
if
(
status
==
PLAYING_S
)
/* Playing */
{
playButton
->
setIcon
(
QIcon
(
":/pause_b"
)
);
playButton
->
setToolTip
(
qtr
(
"Pause"
)
);
playButton
->
setToolTip
(
qtr
(
"Pause
the playback
"
)
);
}
else
{
playButton
->
setIcon
(
QIcon
(
":/play_b"
)
);
playButton
->
setToolTip
(
qtr
(
"Play"
)
);
playButton
->
setToolTip
(
qtr
(
I_PLAY_TOOLTIP
)
);
}
}
...
...
modules/gui/qt4/components/open_panels.cpp
View file @
ef1dfd89
...
...
@@ -46,6 +46,8 @@
#include <QUrl>
#include <QSettings>
#define I_DEVICE_TOOLTIP "Select the device or the VIDEO_TS directory"
/**************************************************************************
* Open Files and subtitles *
**************************************************************************/
...
...
@@ -227,6 +229,9 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
b_firstvcd
=
true
;
b_firstcdda
=
true
;
ui
.
browseDiscButton
->
setToolTip
(
I_DEVICE_TOOLTIP
);
ui
.
deviceCombo
->
setToolTip
(
I_DEVICE_TOOLTIP
);
#if WIN32
/* Disc drives probing for Windows */
char
szDrives
[
512
];
szDrives
[
0
]
=
'\0'
;
...
...
@@ -398,7 +403,7 @@ void DiscOpenPanel::updateMRL()
void
DiscOpenPanel
::
browseDevice
()
{
QString
dir
=
QFileDialog
::
getExistingDirectory
(
0
,
qtr
(
"Open a device or a VIDEO_TS directory"
)
);
qtr
(
I_DEVICE_TOOLTIP
)
);
if
(
!
dir
.
isEmpty
())
{
ui
.
deviceCombo
->
setEditText
(
dir
);
}
...
...
modules/gui/qt4/dialogs/mediainfo.cpp
View file @
ef1dfd89
...
...
@@ -89,7 +89,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
BUTTONACT
(
closeButton
,
close
()
);
/* The tabs buttons are shown in the main dialog for space and cosmetics */
CONNECT
(
saveMetaButton
,
clicked
(),
this
,
saveMeta
()
);
BUTTONACT
(
saveMetaButton
,
saveMeta
()
);
/* Let the MetaData Panel update the URI */
CONNECT
(
MP
,
uriSet
(
QString
),
uriLine
,
setText
(
QString
)
);
...
...
modules/gui/qt4/dialogs/podcast_configuration.cpp
View file @
ef1dfd89
...
...
@@ -34,10 +34,12 @@ PodcastConfigDialog::PodcastConfigDialog( QWidget *parent, intf_thread_t *_p_int
{
ui
.
setupUi
(
this
);
QPushButton
*
okButton
=
new
QPushButton
(
qtr
(
"OK"
),
this
);
ui
.
podcastDelete
->
setToolTip
(
qtr
(
"Delete the selected item"
)
);
QPushButton
*
okButton
=
new
QPushButton
(
qtr
(
"&Close"
),
this
);
QPushButton
*
cancelButton
=
new
QPushButton
(
qtr
(
"&Cancel"
),
this
);
ui
.
okCancel
->
addButton
(
okButton
,
QDialogButtonBox
::
AcceptRole
);
ui
.
okCancel
->
addButton
(
cancelButton
,
QDialogButtonBox
::
RejectRole
);
CONNECT
(
ui
.
podcastAdd
,
clicked
(),
this
,
add
()
);
CONNECT
(
ui
.
podcastDelete
,
clicked
(),
this
,
remove
()
);
...
...
modules/gui/qt4/dialogs/preferences.cpp
View file @
ef1dfd89
...
...
@@ -68,8 +68,10 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
QHBoxLayout
*
types_l
=
new
QHBoxLayout
;
types_l
->
setSpacing
(
3
);
types_l
->
setMargin
(
3
);
small
=
new
QRadioButton
(
qtr
(
"Simple"
),
types
);
small
->
setToolTip
(
qtr
(
"Switch to simple preferences"
)
);
types_l
->
addWidget
(
small
);
all
=
new
QRadioButton
(
qtr
(
"All"
),
types
);
types_l
->
addWidget
(
all
);
all
->
setToolTip
(
qtr
(
"Switch to complete preferences"
)
);
types
->
setLayout
(
types_l
);
small
->
setChecked
(
true
);
...
...
modules/gui/qt4/ui/open.ui
View file @
ef1dfd89
...
...
@@ -10,7 +10,7 @@
<x>0</x>
<y>0</y>
<width>520</width>
<height>66
5
</height>
<height>66
8
</height>
</rect>
</property>
<property name="sizePolicy" >
...
...
@@ -230,6 +230,9 @@
<property name="contextMenuPolicy" >
<enum>Qt::NoContextMenu</enum>
</property>
<property name="toolTip" >
<string>_("Select play mode")</string>
</property>
</widget>
</item>
<item>
...
...
modules/gui/qt4/ui/open_disk.ui
View file @
ef1dfd89
...
...
@@ -59,14 +59,7 @@
</property>
</spacer>
</item>
<item row="0" column="4" >
<widget class="QRadioButton" name="vcdRadioButton" >
<property name="text" >
<string>SVCD/VCD</string>
</property>
</widget>
</item>
<item row="0" column="5" >
<item row="0" column="6" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
...
...
@@ -79,14 +72,7 @@
</property>
</spacer>
</item>
<item row="0" column="6" colspan="2" >
<widget class="QRadioButton" name="audioCDRadioButton" >
<property name="text" >
<string>_("Audio CD")</string>
</property>
</widget>
</item>
<item row="0" column="8" >
<item row="0" column="9" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
...
...
@@ -109,7 +95,7 @@
</property>
</widget>
</item>
<item row="2" column="2" colspan="
7
" >
<item row="2" column="2" colspan="
8
" >
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
...
...
@@ -126,14 +112,14 @@
</property>
</widget>
</item>
<item row="3" column="3" colspan="
3
" >
<item row="3" column="3" colspan="
4
" >
<widget class="QComboBox" name="deviceCombo" >
<property name="editable" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="
6
" >
<item row="3" column="
7
" >
<widget class="QToolButton" name="ejectButton" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Minimum" hsizetype="Fixed" >
...
...
@@ -141,12 +127,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>E</string>
</property>
</widget>
</item>
<item row="3" column="
7
" colspan="2" >
<item row="3" column="
8
" colspan="2" >
<widget class="QPushButton" name="browseDiscButton" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
...
...
@@ -154,14 +137,25 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip" >
<string>_("Select the device or the VIDEO_TS directory")</string>
</property>
<property name="text" >
<string>_("Browse...")</string>
</property>
</widget>
</item>
<item row="0" column="4" >
<widget class="QRadioButton" name="audioCDRadioButton" >
<property name="text" >
<string>_("Audio CD")</string>
</property>
</widget>
</item>
<item row="0" column="8" >
<widget class="QRadioButton" name="vcdRadioButton" >
<property name="text" >
<string>SVCD/VCD</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
...
...
@@ -325,8 +319,6 @@
</widget>
<tabstops>
<tabstop>dvdRadioButton</tabstop>
<tabstop>vcdRadioButton</tabstop>
<tabstop>audioCDRadioButton</tabstop>
<tabstop>dvdsimple</tabstop>
<tabstop>deviceCombo</tabstop>
<tabstop>ejectButton</tabstop>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment