Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
346d8b8d
Commit
346d8b8d
authored
Sep 07, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Media Info: cleanup, and move public => private.
parent
9b14cc45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
15 deletions
+20
-15
modules/gui/qt4/dialogs/mediainfo.cpp
modules/gui/qt4/dialogs/mediainfo.cpp
+4
-6
modules/gui/qt4/dialogs/mediainfo.hpp
modules/gui/qt4/dialogs/mediainfo.hpp
+16
-9
No files found.
modules/gui/qt4/dialogs/mediainfo.cpp
View file @
346d8b8d
...
...
@@ -45,7 +45,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf, bool _mainInput,
{
i_runs
=
0
;
p_input
=
NULL
;
need_update
=
true
;
b_
need_update
=
true
;
setWindowTitle
(
qtr
(
"Media information"
)
);
resize
(
600
,
300
);
...
...
@@ -113,8 +113,6 @@ void MediaInfoDialog::showTab( int i_tab = 0 )
IT
->
setCurrentIndex
(
i_tab
);
}
/**/
void
MediaInfoDialog
::
editMeta
()
{
saveMetaButton
->
show
();
...
...
@@ -130,7 +128,7 @@ static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
)
{
MediaInfoDialog
*
p_d
=
(
MediaInfoDialog
*
)
param
;
p_d
->
need_update
=
VLC_TRUE
;
p_d
->
b_
need_update
=
VLC_TRUE
;
return
VLC_SUCCESS
;
}
...
...
@@ -166,8 +164,8 @@ void MediaInfoDialog::update()
vlc_object_yield
(
p_input
);
update
(
input_GetItem
(
p_input
),
need_update
,
need_update
);
need_update
=
false
;
update
(
input_GetItem
(
p_input
),
b_need_update
,
b_
need_update
);
b_
need_update
=
false
;
vlc_object_release
(
p_input
);
}
...
...
modules/gui/qt4/dialogs/mediainfo.hpp
View file @
346d8b8d
...
...
@@ -36,12 +36,10 @@ class MediaInfoDialog : public QVLCFrame
{
Q_OBJECT
;
public:
MediaInfoDialog
(
intf_thread_t
*
,
bool
stats
=
true
,
bool
mainInput
=
false
);
MediaInfoDialog
(
intf_thread_t
*
,
bool
stats
=
true
,
bool
mainInput
=
false
);
static
MediaInfoDialog
*
getInstance
(
intf_thread_t
*
p_intf
)
{
if
(
!
instance
)
instance
=
new
MediaInfoDialog
(
p_intf
,
true
,
true
);
if
(
!
instance
)
instance
=
new
MediaInfoDialog
(
p_intf
,
true
,
true
);
return
instance
;
}
static
void
killInstance
()
...
...
@@ -51,30 +49,39 @@ public:
}
virtual
~
MediaInfoDialog
();
void
showTab
(
int
);
bool
need_update
;
void
showTab
(
int
);
void
setInput
(
input_item_t
*
);
QLineEdit
*
uriLine
;
bool
b_need_update
;
private:
input_thread_t
*
p_input
;
QTabWidget
*
IT
;
static
MediaInfoDialog
*
instance
;
int
i_runs
;
bool
mainInput
;
bool
stats
;
QTabWidget
*
IT
;
InputStatsPanel
*
ISP
;
MetaPanel
*
MP
;
InfoPanel
*
IP
;
ExtraMetaPanel
*
EMP
;
QPushButton
*
saveMetaButton
;
QLineEdit
*
uriLine
;
public
slots
:
void
update
();
void
saveMeta
();
void
editMeta
();
void
update
(
input_item_t
*
,
bool
,
bool
);
void
updateButtons
(
int
i_tab
);
private
slots
:
void
close
();
void
clear
();
void
updateButtons
(
int
i_tab
);
};
#endif
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