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
890b8c21
Commit
890b8c21
authored
Dec 22, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - remember if the playlist was inside or not. Clean.
parent
8fc1be22
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
21 deletions
+34
-21
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+3
-2
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+13
-1
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+18
-18
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
890b8c21
...
@@ -160,7 +160,8 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i ) :
...
@@ -160,7 +160,8 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i ) :
resize
(
300
,
150
);
resize
(
300
,
150
);
updateGeometry
();
updateGeometry
();
CONNECT
(
THEMIM
,
inputChanged
(
input_thread_t
*
),
this
,
update
(
input_thread_t
*
)
);
CONNECT
(
THEMIM
,
inputChanged
(
input_thread_t
*
),
this
,
update
(
input_thread_t
*
)
);
}
}
BackgroundWidget
::~
BackgroundWidget
()
BackgroundWidget
::~
BackgroundWidget
()
...
...
modules/gui/qt4/main_interface.cpp
View file @
890b8c21
...
@@ -91,6 +91,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -91,6 +91,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
bgWidget
=
NULL
;
videoWidget
=
NULL
;
playlistWidget
=
NULL
;
bgWidget
=
NULL
;
videoWidget
=
NULL
;
playlistWidget
=
NULL
;
videoIsActive
=
false
;
videoIsActive
=
false
;
input_name
=
""
;
input_name
=
""
;
playlistVisible
=
false
;
/* Ask for privacy */
/* Ask for privacy */
privacy
();
privacy
();
...
@@ -286,9 +287,17 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -286,9 +287,17 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
move
(
settings
->
value
(
"pos"
,
QPoint
(
0
,
0
)
).
toPoint
()
);
move
(
settings
->
value
(
"pos"
,
QPoint
(
0
,
0
)
).
toPoint
()
);
resize
(
settings
->
value
(
"size"
,
QSize
(
350
,
60
)
).
toSize
()
);
resize
(
settings
->
value
(
"size"
,
QSize
(
350
,
60
)
).
toSize
()
);
updateGeometry
();
int
tgPlay
=
settings
->
value
(
"playlist-visible"
,
0
).
toInt
();
settings
->
endGroup
();
settings
->
endGroup
();
if
(
tgPlay
)
{
togglePlaylist
();
}
updateGeometry
();
}
}
MainInterface
::~
MainInterface
()
MainInterface
::~
MainInterface
()
...
@@ -299,6 +308,7 @@ MainInterface::~MainInterface()
...
@@ -299,6 +308,7 @@ MainInterface::~MainInterface()
settings
->
beginGroup
(
"MainWindow"
);
settings
->
beginGroup
(
"MainWindow"
);
settings
->
setValue
(
"playlist-floats"
,
(
int
)(
dockPL
->
isFloating
())
);
settings
->
setValue
(
"playlist-floats"
,
(
int
)(
dockPL
->
isFloating
())
);
settings
->
setValue
(
"playlist-visible"
,
(
int
)
playlistVisible
);
settings
->
setValue
(
"adv-controls"
,
settings
->
setValue
(
"adv-controls"
,
getControlsVisibilityStatus
()
&
CONTROLS_ADVANCED
);
getControlsVisibilityStatus
()
&
CONTROLS_ADVANCED
);
settings
->
setValue
(
"pos"
,
pos
()
);
settings
->
setValue
(
"pos"
,
pos
()
);
...
@@ -720,12 +730,14 @@ void MainInterface::togglePlaylist()
...
@@ -720,12 +730,14 @@ void MainInterface::togglePlaylist()
dockPL
->
resize
(
settings
->
value
(
"size"
,
QSize
(
400
,
300
)
).
toSize
()
);
dockPL
->
resize
(
settings
->
value
(
"size"
,
QSize
(
400
,
300
)
).
toSize
()
);
settings
->
endGroup
();
settings
->
endGroup
();
dockPL
->
show
();
dockPL
->
show
();
playlistVisible
=
true
;
}
}
else
else
{
{
/* toggle the visibility of the playlist */
/* toggle the visibility of the playlist */
TOGGLEV
(
dockPL
);
TOGGLEV
(
dockPL
);
resize
(
sizeHint
()
);
resize
(
sizeHint
()
);
playlistVisible
=
!
playlistVisible
;
}
}
}
}
...
...
modules/gui/qt4/main_interface.hpp
View file @
890b8c21
...
@@ -63,15 +63,19 @@ public:
...
@@ -63,15 +63,19 @@ public:
MainInterface
(
intf_thread_t
*
);
MainInterface
(
intf_thread_t
*
);
virtual
~
MainInterface
();
virtual
~
MainInterface
();
/* Video requests from core */
void
*
requestVideo
(
vout_thread_t
*
p_nvout
,
int
*
pi_x
,
void
*
requestVideo
(
vout_thread_t
*
p_nvout
,
int
*
pi_x
,
int
*
pi_y
,
unsigned
int
*
pi_width
,
int
*
pi_y
,
unsigned
int
*
pi_width
,
unsigned
int
*
pi_height
);
unsigned
int
*
pi_height
);
void
releaseVideo
(
void
*
);
void
releaseVideo
(
void
*
);
int
controlVideo
(
void
*
p_window
,
int
i_query
,
va_list
args
);
int
controlVideo
(
void
*
p_window
,
int
i_query
,
va_list
args
);
/* Getters */
QSystemTrayIcon
*
getSysTray
()
{
return
sysTray
;
};
QSystemTrayIcon
*
getSysTray
()
{
return
sysTray
;
};
QMenu
*
getSysTrayMenu
()
{
return
systrayMenu
;
};
QMenu
*
getSysTrayMenu
()
{
return
systrayMenu
;
};
int
getControlsVisibilityStatus
();
int
getControlsVisibilityStatus
();
/* Sizehint() */
QSize
sizeHint
()
const
;
QSize
sizeHint
()
const
;
protected:
protected:
// void resizeEvent( QResizeEvent * );
// void resizeEvent( QResizeEvent * );
...
@@ -84,7 +88,6 @@ protected:
...
@@ -84,7 +88,6 @@ protected:
friend
class
VolumeClickHandler
;
friend
class
VolumeClickHandler
;
private:
private:
QSettings
*
settings
;
QSettings
*
settings
;
QSize
mainSize
,
addSize
;
QSystemTrayIcon
*
sysTray
;
QSystemTrayIcon
*
sysTray
;
QMenu
*
systrayMenu
;
QMenu
*
systrayMenu
;
QString
input_name
;
QString
input_name
;
...
@@ -93,35 +96,31 @@ private:
...
@@ -93,35 +96,31 @@ private:
QMenu
*
speedControlMenu
;
QMenu
*
speedControlMenu
;
SpeedControlWidget
*
speedControl
;
SpeedControlWidget
*
speedControl
;
bool
need_components_update
;
void
handleMainUi
(
QSettings
*
);
void
handleMainUi
(
QSettings
*
);
void
privacy
();
void
privacy
();
void
handleSystray
();
int
privacyDialog
(
QList
<
ConfigControl
*>
controls
);
//void buildStatus();
/* Systray */
void
handleSystray
();
void
createSystray
();
void
createSystray
();
int
privacyDialog
(
QList
<
ConfigControl
*>
controls
);
/* Video */
/* Video */
VideoWidget
*
videoWidget
;
VideoWidget
*
videoWidget
;
virtual
void
keyPressEvent
(
QKeyEvent
*
);
// QSize savedVideoSize;
virtual
void
wheelEvent
(
QWheelEvent
*
);
bool
videoIsActive
;
QSize
savedVideoSize
;
BackgroundWidget
*
bgWidget
;
BackgroundWidget
*
bgWidget
;
VisualSelector
*
visualSelector
;
VisualSelector
*
visualSelector
;
PlaylistWidget
*
playlistWidget
;
PlaylistWidget
*
playlistWidget
;
QDockWidget
*
dockPL
;
QDockWidget
*
dockPL
;
bool
videoEmbeddedFlag
;
bool
videoIsActive
;
///< Having a video now / THEMIM->hasV
bool
alwaysVideoFlag
;
bool
videoEmbeddedFlag
;
///< Want an external Video Window
bool
playlistVisible
;
///< Is the playlist visible ?
bool
alwaysVideoFlag
;
///< Always show the background
bool
visualSelectorEnabled
;
bool
visualSelectorEnabled
;
bool
notificationEnabled
;
bool
notificationEnabled
;
/// Systray Notifications
bool
b_remainingTime
;
/* showing elapsed or remaining time */
InputManager
*
main_input_manager
;
input_thread_t
*
p_input
;
///< Main input associated to the playlist
input_thread_t
*
p_input
;
///< Main input associated to the playlist
/* Status Bar */
/* Status Bar */
...
@@ -129,9 +128,10 @@ private:
...
@@ -129,9 +128,10 @@ private:
QLabel
*
speedLabel
;
QLabel
*
speedLabel
;
QLabel
*
nameLabel
;
QLabel
*
nameLabel
;
bool
b_remainingTime
;
/* showing elapsed or remaining time */
virtual
void
customEvent
(
QEvent
*
);
virtual
void
keyPressEvent
(
QKeyEvent
*
);
virtual
void
wheelEvent
(
QWheelEvent
*
);
void
customEvent
(
QEvent
*
);
public
slots
:
public
slots
:
void
undockPlaylist
();
void
undockPlaylist
();
void
toggleMinimalView
();
void
toggleMinimalView
();
...
...
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