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
a1fe3a13
Commit
a1fe3a13
authored
Nov 23, 2006
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 : Various changes especially about StreamInfo => MediaInfo
parent
2ddfa868
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
24 deletions
+27
-24
modules/gui/qt4/dialogs/streaminfo.cpp
modules/gui/qt4/dialogs/streaminfo.cpp
+12
-10
modules/gui/qt4/dialogs/streaminfo.hpp
modules/gui/qt4/dialogs/streaminfo.hpp
+9
-8
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+4
-4
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/dialogs_provider.hpp
+1
-1
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+1
-1
No files found.
modules/gui/qt4/dialogs/streaminfo.cpp
View file @
a1fe3a13
...
...
@@ -5,6 +5,7 @@
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Jean-Baptiste Kempf <jb@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -32,29 +33,30 @@
static
int
ItemChanged
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
);
StreamInfoDialog
*
Stream
InfoDialog
::
instance
=
NULL
;
MediaInfoDialog
*
Media
InfoDialog
::
instance
=
NULL
;
StreamInfoDialog
::
Stream
InfoDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
MediaInfoDialog
::
Media
InfoDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
i_runs
=
0
;
setWindowTitle
(
qtr
(
"Stream information"
)
);
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
p_input
=
NULL
;
setWindowTitle
(
qtr
(
"Media information"
)
);
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
IT
=
new
InfoTab
(
this
,
p_intf
,
true
)
;
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"&Close"
));
layout
->
addWidget
(
IT
,
0
,
0
,
1
,
3
);
layout
->
addWidget
(
closeButton
,
1
,
2
);
BUTTONACT
(
closeButton
,
close
()
);
ON_TIMEOUT
(
update
()
);
p_input
=
NULL
;
var_AddCallback
(
THEPL
,
"item-change"
,
ItemChanged
,
this
);
readSettings
(
"StreamInfo"
,
QSize
(
500
,
450
)
);
}
StreamInfoDialog
::~
Stream
InfoDialog
()
MediaInfoDialog
::~
Media
InfoDialog
()
{
var_DelCallback
(
THEPL
,
"item-change"
,
ItemChanged
,
this
);
writeSettings
(
"StreamInfo"
);
...
...
@@ -63,12 +65,12 @@ StreamInfoDialog::~StreamInfoDialog()
static
int
ItemChanged
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
)
{
StreamInfoDialog
*
p_d
=
(
Stream
InfoDialog
*
)
param
;
MediaInfoDialog
*
p_d
=
(
Media
InfoDialog
*
)
param
;
p_d
->
need_update
=
VLC_TRUE
;
return
VLC_SUCCESS
;
}
void
Stream
InfoDialog
::
update
()
void
Media
InfoDialog
::
update
()
{
// Timer runs at 150 ms, dont' update more than 2 times per second
i_runs
++
;
...
...
@@ -91,7 +93,7 @@ void StreamInfoDialog::update()
vlc_object_release
(
p_input
);
}
void
Stream
InfoDialog
::
close
()
void
Media
InfoDialog
::
close
()
{
this
->
toggleVisible
();
}
modules/gui/qt4/dialogs/streaminfo.hpp
View file @
a1fe3a13
...
...
@@ -5,6 +5,7 @@
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Jean-Baptiste Kempf <jb@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -21,8 +22,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
******************************************************************************/
#ifndef _
STREAM
INFO_DIALOG_H_
#define _
STREAM
INFO_DIALOG_H_
#ifndef _
MEDIA
INFO_DIALOG_H_
#define _
MEDIA
INFO_DIALOG_H_
#include "util/qvlcframe.hpp"
#include <QTabWidget>
...
...
@@ -30,14 +31,14 @@
class
InfoTab
;
class
Stream
InfoDialog
:
public
QVLCFrame
class
Media
InfoDialog
:
public
QVLCFrame
{
Q_OBJECT
;
public:
static
Stream
InfoDialog
*
getInstance
(
intf_thread_t
*
p_intf
)
static
Media
InfoDialog
*
getInstance
(
intf_thread_t
*
p_intf
)
{
if
(
!
instance
)
instance
=
new
Stream
InfoDialog
(
p_intf
);
instance
=
new
Media
InfoDialog
(
p_intf
);
return
instance
;
}
static
void
killInstance
()
...
...
@@ -45,13 +46,13 @@ public:
if
(
instance
)
delete
instance
;
instance
=
NULL
;
}
virtual
~
Stream
InfoDialog
();
virtual
~
Media
InfoDialog
();
bool
need_update
;
private:
Stream
InfoDialog
(
intf_thread_t
*
);
Media
InfoDialog
(
intf_thread_t
*
);
input_thread_t
*
p_input
;
InfoTab
*
IT
;
static
Stream
InfoDialog
*
instance
;
static
Media
InfoDialog
*
instance
;
int
i_runs
;
public
slots
:
void
update
();
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
a1fe3a13
...
...
@@ -61,7 +61,7 @@ DialogsProvider::DialogsProvider( intf_thread_t *_p_intf ) :
DialogsProvider
::~
DialogsProvider
()
{
PlaylistDialog
::
killInstance
();
Stream
InfoDialog
::
killInstance
();
Media
InfoDialog
::
killInstance
();
}
void
DialogsProvider
::
customEvent
(
QEvent
*
event
)
...
...
@@ -88,7 +88,7 @@ void DialogsProvider::customEvent( QEvent *event )
case
INTF_DIALOG_MISCPOPUPMENU
:
popupMenu
(
de
->
i_dialog
);
break
;
case
INTF_DIALOG_FILEINFO
:
streami
nfoDialog
();
break
;
MediaI
nfoDialog
();
break
;
case
INTF_DIALOG_INTERACTION
:
doInteraction
(
de
->
p_arg
);
break
;
case
INTF_DIALOG_VLM
:
...
...
@@ -159,9 +159,9 @@ void DialogsProvider::quit()
QApplication
::
quit
();
}
void
DialogsProvider
::
streami
nfoDialog
()
void
DialogsProvider
::
MediaI
nfoDialog
()
{
Stream
InfoDialog
::
getInstance
(
p_intf
)
->
toggleVisible
();
Media
InfoDialog
::
getInstance
(
p_intf
)
->
toggleVisible
();
}
void
DialogsProvider
::
streamingDialog
()
...
...
modules/gui/qt4/dialogs_provider.hpp
View file @
a1fe3a13
...
...
@@ -74,7 +74,7 @@ private:
public
slots
:
void
playlistDialog
();
void
bookmarksDialog
();
void
streami
nfoDialog
();
void
MediaI
nfoDialog
();
void
prefsDialog
();
void
extendedDialog
();
void
messagesDialog
();
...
...
modules/gui/qt4/menus.cpp
View file @
a1fe3a13
...
...
@@ -176,7 +176,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
menu
->
addSeparator
();
}
DP_SADD
(
qtr
(
"Messages"
),
""
,
""
,
messagesDialog
()
);
DP_SADD
(
qtr
(
"Information"
)
,
""
,
""
,
streami
nfoDialog
()
);
DP_SADD
(
qtr
(
"Information"
)
,
""
,
""
,
MediaI
nfoDialog
()
);
DP_SADD
(
qtr
(
"Bookmarks"
),
""
,
""
,
bookmarksDialog
()
);
DP_SADD
(
qtr
(
"Extended settings"
),
""
,
""
,
extendedDialog
()
);
if
(
mi
)
...
...
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