Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2ec741cc
Commit
2ec741cc
authored
Sep 20, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
f183c686
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+18
-1
No files found.
modules/gui/qt4/main_interface.cpp
View file @
2ec741cc
...
...
@@ -47,6 +47,10 @@
#define PREF_H 125
#endif
#define BUTTON_SET( button, image, tooltip ) ui.button##Button->setText(""); \
ui.button##Button->setIcon( QIcon( ":/pixmaps/"#image ) ); \
ui.button##Button->setToolTip( tooltip );
static
int
InteractCallback
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
/* Video handling */
...
...
@@ -137,6 +141,10 @@ void MainInterface::handleMainUi( QSettings *settings )
slider
=
new
InputSlider
(
Qt
::
Horizontal
,
NULL
);
ui
.
hboxLayout
->
insertWidget
(
0
,
slider
);
BUTTON_SET
(
prev
,
previous
.
png
,
qtr
(
"Previous"
)
);
BUTTON_SET
(
next
,
next
.
png
,
qtr
(
"Next"
)
);
BUTTON_SET
(
play
,
play
.
png
,
qtr
(
"Play"
)
);
BUTTON_SET
(
stop
,
stop
.
png
,
qtr
(
"Stop"
)
);
ui
.
discFrame
->
setFrameStyle
(
QFrame
::
StyledPanel
|
QFrame
::
Sunken
);
#define SET( button, image ) ui.button##Button->setText(""); \
...
...
@@ -165,6 +173,9 @@ void MainInterface::handleMainUi( QSettings *settings )
playlistEmbeddedFlag
=
true
;
/// \todo fetch playlist settings
BUTTON_SET
(
playlist
,
volume
-
low
.
png
,
playlistEmbeddedFlag
?
qtr
(
"Show playlist"
)
:
qtr
(
"Open playlist"
)
);
/* Set initial size */
resize
(
PREF_W
,
PREF_H
);
...
...
@@ -173,7 +184,7 @@ void MainInterface::handleMainUi( QSettings *settings )
if
(
videoEmbeddedFlag
)
{
videoWidget
=
new
VideoWidget
(
p_intf
);
videoWidget
->
widgetSize
=
QSize
(
1
,
1
);
videoWidget
->
widgetSize
=
QSize
(
PREF_W
,
1
);
videoWidget
->
resize
(
videoWidget
->
widgetSize
);
videoWidget
->
hide
();
ui
.
vboxLayout
->
insertWidget
(
0
,
videoWidget
);
...
...
@@ -194,6 +205,7 @@ void MainInterface::handleMainUi( QSettings *settings )
// visualSelector->hide();
calculateInterfaceSize
();
fprintf
(
stderr
,
"Resize to %ix%i
\n
"
,
mainSize
.
width
(),
mainSize
.
height
()
);
resize
(
mainSize
);
mainSize
=
size
();
...
...
@@ -225,6 +237,11 @@ void MainInterface::calculateInterfaceSize()
height
=
videoWidget
->
widgetSize
.
height
();
fprintf
(
stderr
,
"Video Size %ix%i
\n
"
,
videoWidget
->
widgetSize
.
width
(),
videoWidget
->
widgetSize
.
height
()
);
}
else
{
width
=
PREF_W
-
addSize
.
width
();
height
=
PREF_H
-
addSize
.
height
();
}
mainSize
.
setWidth
(
width
+
addSize
.
width
()
);
mainSize
.
setHeight
(
height
+
addSize
.
height
()
);
}
...
...
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