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
ca7f6e8f
Commit
ca7f6e8f
authored
Jun 02, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Info Panels: Rewrite Meta Data and Dionoea's feature request. (1)
parent
298291bb
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
215 additions
and
76 deletions
+215
-76
modules/gui/qt4/components/infopanels.cpp
modules/gui/qt4/components/infopanels.cpp
+172
-59
modules/gui/qt4/components/infopanels.hpp
modules/gui/qt4/components/infopanels.hpp
+41
-15
modules/gui/qt4/dialogs/mediainfo.cpp
modules/gui/qt4/dialogs/mediainfo.cpp
+2
-2
No files found.
modules/gui/qt4/components/infopanels.cpp
View file @
ca7f6e8f
This diff is collapsed.
Click to expand it.
modules/gui/qt4/components/infopanels.hpp
View file @
ca7f6e8f
...
...
@@ -30,10 +30,22 @@
#include <QWidget>
#include <QTabWidget>
#include <QLabel>
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#define setSpinBounds( spinbox ) { \
spinbox->setRange( 0, INT_MAX ); \
spinbox->setAccelerated( true ) ; \
spinbox->setAlignment( Qt::AlignRight ); \
spinbox->setSpecialValueText(""); }
class
QTreeWidget
;
class
QTreeWidgetItem
;
class
QTreeView
;
class
QSpinBox
;
class
QLineEdit
;
class
MetaPanel
:
public
QWidget
{
...
...
@@ -43,26 +55,39 @@ public:
virtual
~
MetaPanel
();
private:
intf_thread_t
*
p_intf
;
QL
abel
*
uri_text
;
QL
abel
*
nam
e_text
;
QL
abel
*
artist_text
;
QL
abel
*
genre_text
;
QL
abel
*
copyright_text
;
QL
abel
*
collection_text
;
Q
Label
*
seqnum_text
;
QL
abel
*
description_text
;
Q
Label
*
rating_text
;
Q
Label
*
date_text
;
QL
abel
*
setting_text
;
QL
abel
*
language_text
;
QL
abel
*
nowplaying_text
;
QL
abel
*
publisher_text
;
QL
ineEdit
*
uri_text
;
QL
ineEdit
*
titl
e_text
;
QL
ineEdit
*
artist_text
;
QL
ineEdit
*
genre_text
;
QL
ineEdit
*
copyright_text
;
QL
ineEdit
*
collection_text
;
Q
SpinBox
*
seqnum_text
;
QL
ineEdit
*
description_text
;
Q
SpinBox
*
rating_text
;
Q
SpinBox
*
date_text
;
QL
ineEdit
*
setting_text
;
QL
ineEdit
*
language_text
;
QL
ineEdit
*
nowplaying_text
;
QL
ineEdit
*
publisher_text
;
public
slots
:
void
update
(
input_item_t
*
);
void
clear
();
};
class
ExtraMetaPanel
:
public
QWidget
{
Q_OBJECT
;
public:
ExtraMetaPanel
(
QWidget
*
,
intf_thread_t
*
);
virtual
~
ExtraMetaPanel
()
{};
private:
intf_thread_t
*
p_intf
;
QTreeWidget
*
extraMetaTree
;
public
slots
:
void
update
(
input_item_t
*
);
void
clear
();
};
class
InputStatsPanel
:
public
QWidget
{
...
...
@@ -128,6 +153,7 @@ private:
InputStatsPanel
*
ISP
;
MetaPanel
*
MP
;
InfoPanel
*
IP
;
ExtraMetaPanel
*
EMP
;
int
i_runs
;
};
...
...
modules/gui/qt4/dialogs/mediainfo.cpp
View file @
ca7f6e8f
...
...
@@ -44,7 +44,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf, bool _mainInput ) :
p_input
=
NULL
;
setWindowTitle
(
qtr
(
"Media information"
)
);
resize
(
5
00
,
450
);
resize
(
6
00
,
450
);
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
IT
=
new
InfoTab
(
this
,
p_intf
,
true
)
;
...
...
@@ -95,8 +95,8 @@ void MediaInfoDialog::setInput(input_item_t *p_input)
void
MediaInfoDialog
::
update
()
{
/* Timer runs at 150 ms, dont' update more than 2 times per second */
i_runs
++
;
if
(
i_runs
%
3
!=
0
)
return
;
i_runs
++
;
input_thread_t
*
p_input
=
MainInputManager
::
getInstance
(
p_intf
)
->
getInput
();
...
...
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