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
9effad54
Commit
9effad54
authored
Sep 20, 2006
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*Qt4: InfoTree for files. The timer does not function correctly yet. :D
parent
31d8bdd4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
modules/gui/qt4/components/infopanels.cpp
modules/gui/qt4/components/infopanels.cpp
+37
-0
modules/gui/qt4/components/infopanels.hpp
modules/gui/qt4/components/infopanels.hpp
+2
-0
modules/gui/qt4/dialogs/streaminfo.cpp
modules/gui/qt4/dialogs/streaminfo.cpp
+4
-0
No files found.
modules/gui/qt4/components/infopanels.cpp
View file @
9effad54
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#include <QTreeWidget>
#include <QTreeWidget>
#include <QPushButton>
#include <QPushButton>
#include <QHeaderView>
#include <QList>
InputStatsPanel
::
InputStatsPanel
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
)
:
InputStatsPanel
::
InputStatsPanel
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
)
:
QWidget
(
parent
),
p_intf
(
_p_intf
)
QWidget
(
parent
),
p_intf
(
_p_intf
)
...
@@ -107,13 +109,48 @@ char* MetaPanel::GetName()
...
@@ -107,13 +109,48 @@ char* MetaPanel::GetName()
InfoPanel
::
InfoPanel
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
)
:
InfoPanel
::
InfoPanel
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
)
:
QWidget
(
parent
),
p_intf
(
_p_intf
)
QWidget
(
parent
),
p_intf
(
_p_intf
)
{
{
resize
(
400
,
500
);
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
InfoTree
=
new
QTreeWidget
(
this
);
QList
<
QTreeWidgetItem
*>
items
;
layout
->
addWidget
(
InfoTree
,
0
,
0
);
InfoTree
->
setColumnCount
(
1
);
InfoTree
->
header
()
->
hide
();
InfoTree
->
resize
(
400
,
400
);
}
}
InfoPanel
::~
InfoPanel
()
InfoPanel
::~
InfoPanel
()
{
{
}
}
void
InfoPanel
::
Update
(
input_item_t
*
p_item
)
void
InfoPanel
::
Update
(
input_item_t
*
p_item
)
{
{
InfoTree
->
clear
();
QTreeWidgetItem
*
current_item
=
NULL
;
QTreeWidgetItem
*
child_item
=
NULL
;
for
(
int
i
=
0
;
i
<
p_item
->
i_categories
;
i
++
)
{
current_item
=
new
QTreeWidgetItem
();
current_item
->
setText
(
0
,
qfu
(
p_item
->
pp_categories
[
i
]
->
psz_name
)
);
InfoTree
->
addTopLevelItem
(
current_item
);
for
(
int
j
=
0
;
j
<
p_item
->
pp_categories
[
i
]
->
i_infos
;
j
++
)
{
child_item
=
new
QTreeWidgetItem
();
child_item
->
setText
(
0
,
qfu
(
p_item
->
pp_categories
[
i
]
->
pp_infos
[
j
]
->
psz_name
)
+
": "
+
qfu
(
p_item
->
pp_categories
[
i
]
->
pp_infos
[
j
]
->
psz_value
));
current_item
->
addChild
(
child_item
);
}
InfoTree
->
setItemExpanded
(
current_item
,
true
);
}
}
}
void
InfoPanel
::
Clear
()
void
InfoPanel
::
Clear
()
{
{
}
}
...
...
modules/gui/qt4/components/infopanels.hpp
View file @
9effad54
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
class
QTreeWidget
;
class
QTreeWidget
;
class
QTreeWidgetItem
;
class
InputStatsPanel
:
public
QWidget
class
InputStatsPanel
:
public
QWidget
{
{
...
@@ -74,6 +75,7 @@ public:
...
@@ -74,6 +75,7 @@ public:
virtual
~
InfoPanel
();
virtual
~
InfoPanel
();
private:
private:
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
QTreeWidget
*
InfoTree
;
public
slots
:
public
slots
:
void
Update
(
input_item_t
*
);
void
Update
(
input_item_t
*
);
...
...
modules/gui/qt4/dialogs/streaminfo.cpp
View file @
9effad54
...
@@ -88,6 +88,10 @@ void InfoTab::update()
...
@@ -88,6 +88,10 @@ void InfoTab::update()
if
(
p_intf
)
if
(
p_intf
)
p_input
=
MainInputManager
::
getInstance
(
p_intf
)
->
getInput
();
p_input
=
MainInputManager
::
getInstance
(
p_intf
)
->
getInput
();
if
(
p_input
&&
!
p_input
->
b_dead
)
if
(
p_input
&&
!
p_input
->
b_dead
)
{
ISP
->
Update
(
p_input
->
input
.
p_item
);
ISP
->
Update
(
p_input
->
input
.
p_item
);
// FIXME should not be updated here
IP
->
Update
(
p_input
->
input
.
p_item
);
}
}
}
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