Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
5aebc3b8
Commit
5aebc3b8
authored
Aug 31, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Main Interface: Advanced buttons are correctly integrated, cosmetic,
cleanup and fixes.
parent
ac443292
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
444 additions
and
360 deletions
+444
-360
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+110
-37
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+17
-9
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+295
-292
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+22
-22
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
5aebc3b8
This diff is collapsed.
Click to expand it.
modules/gui/qt4/components/interface_widgets.hpp
View file @
5aebc3b8
...
...
@@ -114,12 +114,14 @@ public:
void
enableVideo
(
bool
);
private:
intf_thread_t
*
p_intf
;
QPushButton
*
normalButton
;
QPushButton
*
snapshotButton
;
QPushButton
*
normalButton
,
*
recordButton
,
*
ABButton
;
QPushButton
*
snapshotButton
,
*
frameButton
;
private
slots
:
void
normal
();
void
snapshot
();
void
fullscreen
();
void
frame
();
void
record
();
};
class
InputSlider
;
...
...
@@ -130,7 +132,7 @@ class ControlsWidget : public QFrame
{
Q_OBJECT
public:
ControlsWidget
(
intf_thread_t
*
);
ControlsWidget
(
intf_thread_t
*
,
bool
);
virtual
~
ControlsWidget
();
QPushButton
*
playlistButton
;
...
...
@@ -145,13 +147,16 @@ protected:
friend
class
MainInterface
;
friend
class
VolumeClickHandler
;
private:
intf_thread_t
*
p_intf
;
QFrame
*
discFrame
;
QGridLayout
*
controlLayout
;
intf_thread_t
*
p_intf
;
QFrame
*
discFrame
;
QGridLayout
*
controlLayout
;
InputSlider
*
slider
;
QPushButton
*
prevSectionButton
,
*
nextSectionButton
,
*
menuButton
;
QPushButton
*
playButton
,
*
fullscreenButton
;
QPushButton
*
slowerButton
,
*
fasterButton
;
QPushButton
*
prevSectionButton
,
*
nextSectionButton
,
*
menuButton
;
QPushButton
*
playButton
,
*
fullscreenButton
;
QPushButton
*
slowerButton
,
*
fasterButton
;
AdvControlsWidget
*
advControls
;
bool
b_advancedVisible
;
private
slots
:
void
play
();
void
stop
();
...
...
@@ -163,6 +168,9 @@ private slots:
void
prefs
();
void
faster
();
void
slower
();
void
toggleAdvanced
();
signals:
void
advancedControlsShowed
(
bool
);
};
class
VolumeClickHandler
:
public
QObject
...
...
modules/gui/qt4/main_interface.cpp
View file @
5aebc3b8
This diff is collapsed.
Click to expand it.
modules/gui/qt4/main_interface.hpp
View file @
5aebc3b8
...
...
@@ -25,7 +25,6 @@
#ifndef _MAIN_INTERFACE_H_
#define _MAIN_INTERFACE_H_
#include "qt4.hpp"
#include "util/qvlcframe.hpp"
...
...
@@ -54,14 +53,16 @@ class MainInterface : public QVLCMW
public:
MainInterface
(
intf_thread_t
*
);
virtual
~
MainInterface
();
void
*
requestVideo
(
vout_thread_t
*
p_nvout
,
int
*
pi_x
,
int
*
pi_y
,
unsigned
int
*
pi_width
,
unsigned
int
*
pi_height
);
void
releaseVideo
(
void
*
);
void
releaseVideo
(
void
*
);
int
controlVideo
(
void
*
p_window
,
int
i_query
,
va_list
args
);
QSystemTrayIcon
*
getSysTray
()
{
return
sysTray
;
};
QMenu
*
getSysTrayMenu
()
{
return
systrayMenu
;
};
bool
isAdvancedVisible
();
protected:
void
resizeEvent
(
QResizeEvent
*
);
void
dropEvent
(
QDropEvent
*
);
...
...
@@ -69,18 +70,18 @@ protected:
void
dragMoveEvent
(
QDragMoveEvent
*
);
void
dragLeaveEvent
(
QDragLeaveEvent
*
);
void
closeEvent
(
QCloseEvent
*
);
//Ui::MainInterfaceUI ui;
friend
class
VolumeClickHandler
;
private:
QSettings
*
settings
;
QSize
mainSize
,
addSize
;
QSystemTrayIcon
*
sysTray
;
QMenu
*
systrayMenu
;
QString
input_name
;
QVBoxLayout
*
mainLayout
;
ControlsWidget
*
controls
;
bool
need_components_update
;
QSettings
*
settings
;
QSize
mainSize
,
addSize
;
QSystemTrayIcon
*
sysTray
;
QMenu
*
systrayMenu
;
QString
input_name
;
QVBoxLayout
*
mainLayout
;
ControlsWidget
*
controls
;
bool
need_components_update
;
void
calculateInterfaceSize
();
void
handleMainUi
(
QSettings
*
);
void
handleSystray
();
...
...
@@ -92,20 +93,17 @@ private:
virtual
void
keyPressEvent
(
QKeyEvent
*
);
virtual
void
wheelEvent
(
QWheelEvent
*
);
bool
embeddedPlaylistWasActive
;
bool
videoIsActive
;
QSize
savedVideoSize
;
bool
embeddedPlaylistWasActive
;
bool
videoIsActive
;
QSize
savedVideoSize
;
BackgroundWidget
*
bgWidget
;
VisualSelector
*
visualSelector
;
AdvControlsWidget
*
advControls
;
PlaylistWidget
*
playlistWidget
;
bool
playlistEmbeddedFlag
;
bool
videoEmbeddedFlag
;
bool
alwaysVideoFlag
;
bool
advControlsEnabled
;
bool
visualSelectorEnabled
;
InputManager
*
main_input_manager
;
...
...
@@ -119,17 +117,19 @@ private:
public
slots
:
void
undockPlaylist
();
void
toggleMenus
();
void
p
laylist
();
void
toggleP
laylist
();
void
toggleUpdateSystrayMenu
();
void
toggleAdvanced
();
private
slots
:
void
updateOnTimer
();
void
setStatus
(
int
);
void
setName
(
QString
);
void
setVLCWindowsTitle
(
QString
title
=
""
);
void
setDisplay
(
float
,
int
,
int
);
void
updateOnTimer
();
#if 0
void visual();
void
advanced
();
void
handleSystrayClick
(
QSystemTrayIcon
::
ActivationReason
);
#endif
void
handleSystrayClick
(
QSystemTrayIcon
::
ActivationReason
);
void
updateSystrayMenu
(
int
);
void
updateSystrayTooltipName
(
QString
);
void
updateSystrayTooltipStatus
(
int
);
...
...
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