Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c5dde660
Commit
c5dde660
authored
Sep 17, 2006
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*Qt4: InfoTabs, the layout..
parent
187a6ea2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
159 additions
and
9 deletions
+159
-9
modules/gui/qt4/components/infopanels.cpp
modules/gui/qt4/components/infopanels.cpp
+49
-2
modules/gui/qt4/components/infopanels.hpp
modules/gui/qt4/components/infopanels.hpp
+38
-0
modules/gui/qt4/dialogs/streaminfo.cpp
modules/gui/qt4/dialogs/streaminfo.cpp
+48
-6
modules/gui/qt4/dialogs/streaminfo.hpp
modules/gui/qt4/dialogs/streaminfo.hpp
+24
-1
No files found.
modules/gui/qt4/components/infopanels.cpp
View file @
c5dde660
...
...
@@ -23,8 +23,9 @@
#include "components/infopanels.hpp"
#include "qt4.hpp"
#include "ui/input_stats.h"
#include <QWidget>
#include <QTreeWidget>
#include <QPushButton>
InputStatsPanel
::
InputStatsPanel
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
)
:
QWidget
(
parent
),
p_intf
(
_p_intf
)
...
...
@@ -71,3 +72,49 @@ void InputStatsPanel::Update( input_item_t *p_item )
vlc_mutex_unlock
(
&
p_item
->
p_stats
->
lock
);
}
void
InputStatsPanel
::
Clear
()
{
}
MetaPanel
::
MetaPanel
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
)
:
QWidget
(
parent
),
p_intf
(
_p_intf
)
{
}
MetaPanel
::~
MetaPanel
()
{
}
void
MetaPanel
::
Update
(
input_item_t
*
p_item
)
{
}
void
MetaPanel
::
Clear
()
{
}
char
*
MetaPanel
::
GetURI
()
{
char
*
URI
;
return
URI
;
}
char
*
MetaPanel
::
GetName
()
{
char
*
Name
;
return
Name
;
}
InfoPanel
::
InfoPanel
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
)
:
QWidget
(
parent
),
p_intf
(
_p_intf
)
{
}
InfoPanel
::~
InfoPanel
()
{
}
void
InfoPanel
::
Update
(
input_item_t
*
p_item
)
{
}
void
InfoPanel
::
Clear
()
{
}
modules/gui/qt4/components/infopanels.hpp
View file @
c5dde660
...
...
@@ -23,10 +23,17 @@
#ifndef _INFOPANELS_H_
#define _INFOPANELS_H_
#include <vlc/vlc.h>
#include <vlc_meta.h>
#include <QWidget>
#include "ui/input_stats.h"
class
QTreeWidget
;
class
InputStatsPanel
:
public
QWidget
{
Q_OBJECT
;
...
...
@@ -39,7 +46,38 @@ private:
public
slots
:
void
Update
(
input_item_t
*
);
void
Clear
();
};
class
MetaPanel
:
public
QWidget
{
Q_OBJECT
;
public:
MetaPanel
(
QWidget
*
,
intf_thread_t
*
);
virtual
~
MetaPanel
();
private:
intf_thread_t
*
p_intf
;
public
slots
:
void
Update
(
input_item_t
*
);
void
Clear
();
char
*
GetURI
();
char
*
GetName
();
};
class
InfoPanel
:
public
QWidget
{
Q_OBJECT
;
public:
InfoPanel
(
QWidget
*
,
intf_thread_t
*
);
virtual
~
InfoPanel
();
private:
intf_thread_t
*
p_intf
;
public
slots
:
void
Update
(
input_item_t
*
);
void
Clear
();
};
#endif
modules/gui/qt4/dialogs/streaminfo.cpp
View file @
c5dde660
...
...
@@ -20,32 +20,74 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/
#include "input_manager.hpp"
#include <QTabWidget>
#include <QBoxLayout>
#include "dialogs/streaminfo.hpp"
#include "input_manager.hpp"
#include "dialogs_provider.hpp"
#include "util/qvlcframe.hpp"
#include "components/infopanels.hpp"
#include "qt4.hpp"
/* This is the dialog Windows */
StreamInfoDialog
*
StreamInfoDialog
::
instance
=
NULL
;
StreamInfoDialog
::
StreamInfoDialog
(
intf_thread_t
*
_p_intf
,
bool
_main_input
)
:
QVLCFrame
(
_p_intf
),
main_input
(
_main_input
)
{
setWindowTitle
(
_
(
"Stream information"
)
);
ISP
=
new
InputStatsPanel
(
this
,
p_intf
);
QBoxLayout
*
layout
=
new
QBoxLayout
(
QBoxLayout
::
TopToBottom
,
this
);
setGeometry
(
0
,
0
,
470
,
550
);
IT
=
new
InfoTab
(
this
,
p_intf
)
;
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"&Close"
));
layout
->
addWidget
(
IT
);
layout
->
addWidget
(
closeButton
);
BUTTONACT
(
closeButton
,
close
()
);
ON_TIMEOUT
(
update
()
);
p_input
=
NULL
;
}
void
StreamInfoDialog
::
update
()
{
if
(
main_input
)
p_input
=
MainInputManager
::
getInstance
(
p_intf
)
->
getInput
();
if
(
p_input
&&
!
p_input
->
b_dead
)
ISP
->
Update
(
p_input
->
input
.
p_item
);
IT
->
update
();
}
StreamInfoDialog
::~
StreamInfoDialog
()
{
}
void
StreamInfoDialog
::
close
()
{
this
->
toggleVisible
();
}
/* This is the tab Widget Inside the windows*/
InfoTab
::
InfoTab
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
)
:
QTabWidget
(
parent
),
p_intf
(
_p_intf
)
{
setGeometry
(
0
,
0
,
400
,
500
);
ISP
=
new
InputStatsPanel
(
NULL
,
p_intf
);
MP
=
new
MetaPanel
(
NULL
,
p_intf
);
IP
=
new
InfoPanel
(
NULL
,
p_intf
);
addTab
(
MP
,
qtr
(
"&Meta"
));
addTab
(
ISP
,
qtr
(
"&Stats"
));
addTab
(
IP
,
qtr
(
"&Info"
));
}
InfoTab
::~
InfoTab
()
{
}
void
InfoTab
::
update
()
{
if
(
p_intf
)
p_input
=
MainInputManager
::
getInstance
(
p_intf
)
->
getInput
();
if
(
p_input
&&
!
p_input
->
b_dead
)
ISP
->
Update
(
p_input
->
input
.
p_item
);
}
modules/gui/qt4/dialogs/streaminfo.hpp
View file @
c5dde660
...
...
@@ -24,8 +24,30 @@
#define _STREAMINFO_DIALOG_H_
#include "util/qvlcframe.hpp"
#include <QTabWidget>
#include <QBoxLayout>
class
InputStatsPanel
;
class
MetaPanel
;
class
InfoPanel
;
class
InfoTab
:
public
QTabWidget
{
Q_OBJECT
;
public:
InfoTab
(
QWidget
*
,
intf_thread_t
*
);
virtual
~
InfoTab
();
private:
intf_thread_t
*
p_intf
;
input_thread_t
*
p_input
;
InputStatsPanel
*
ISP
;
MetaPanel
*
MP
;
InfoPanel
*
IP
;
public
slots
:
void
update
();
};
class
StreamInfoDialog
:
public
QVLCFrame
{
...
...
@@ -41,11 +63,12 @@ public:
private:
StreamInfoDialog
(
intf_thread_t
*
,
bool
);
input_thread_t
*
p_input
;
In
putStatsPanel
*
ISP
;
In
foTab
*
IT
;
bool
main_input
;
static
StreamInfoDialog
*
instance
;
public
slots
:
void
update
();
void
close
();
};
#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