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
360fe5b2
Commit
360fe5b2
authored
Jan 27, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt EPG: design and functionnalities improvements
parent
0a03829d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
9 deletions
+35
-9
modules/gui/qt4/components/epg/EPGWidget.cpp
modules/gui/qt4/components/epg/EPGWidget.cpp
+0
-4
modules/gui/qt4/components/epg/EPGWidget.hpp
modules/gui/qt4/components/epg/EPGWidget.hpp
+3
-2
modules/gui/qt4/dialogs/epg.cpp
modules/gui/qt4/dialogs/epg.cpp
+26
-2
modules/gui/qt4/dialogs/epg.hpp
modules/gui/qt4/dialogs/epg.hpp
+3
-1
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+3
-0
No files found.
modules/gui/qt4/components/epg/EPGWidget.cpp
View file @
360fe5b2
...
@@ -41,11 +41,8 @@ EPGWidget::EPGWidget( QWidget *parent ) : QWidget( parent )
...
@@ -41,11 +41,8 @@ EPGWidget::EPGWidget( QWidget *parent ) : QWidget( parent )
m_rulerWidget
=
new
EPGRuler
(
this
);
m_rulerWidget
=
new
EPGRuler
(
this
);
m_channelsWidget
=
new
ChannelsWidget
(
this
);
m_channelsWidget
=
new
ChannelsWidget
(
this
);
m_epgView
=
new
EPGView
(
this
);
m_epgView
=
new
EPGView
(
this
);
m_description
=
new
QLabel
(
"<b>Hello world</b><br/>blablabla"
);
m_channelsWidget
->
setMinimumWidth
(
40
);
m_channelsWidget
->
setMinimumWidth
(
40
);
m_description
->
setAlignment
(
Qt
::
AlignTop
|
Qt
::
AlignLeft
);
m_description
->
setMinimumHeight
(
70
);
m_epgView
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Expanding
);
m_epgView
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Expanding
);
setZoom
(
1
);
setZoom
(
1
);
...
@@ -53,7 +50,6 @@ EPGWidget::EPGWidget( QWidget *parent ) : QWidget( parent )
...
@@ -53,7 +50,6 @@ EPGWidget::EPGWidget( QWidget *parent ) : QWidget( parent )
layout
->
addWidget
(
m_rulerWidget
,
0
,
1
);
layout
->
addWidget
(
m_rulerWidget
,
0
,
1
);
layout
->
addWidget
(
m_channelsWidget
,
1
,
0
);
layout
->
addWidget
(
m_channelsWidget
,
1
,
0
);
layout
->
addWidget
(
m_epgView
,
1
,
1
);
layout
->
addWidget
(
m_epgView
,
1
,
1
);
layout
->
addWidget
(
m_description
,
2
,
1
);
layout
->
setSpacing
(
0
);
layout
->
setSpacing
(
0
);
setLayout
(
layout
);
setLayout
(
layout
);
...
...
modules/gui/qt4/components/epg/EPGWidget.hpp
View file @
360fe5b2
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
#include <QMultiMap>
#include <QMultiMap>
class
QDateTime
;
class
QDateTime
;
class
QLabel
;
class
ChannelsWidget
:
public
QWidget
class
ChannelsWidget
:
public
QWidget
{
{
...
@@ -58,9 +57,11 @@ private:
...
@@ -58,9 +57,11 @@ private:
ChannelsWidget
*
m_channelsWidget
;
ChannelsWidget
*
m_channelsWidget
;
EPGRuler
*
m_rulerWidget
;
EPGRuler
*
m_rulerWidget
;
EPGView
*
m_epgView
;
EPGView
*
m_epgView
;
QLabel
*
m_description
;
QMultiMap
<
QString
,
EPGEvent
*>
m_events
;
QMultiMap
<
QString
,
EPGEvent
*>
m_events
;
signals:
void
descriptionChanged
(
const
QString
&
);
};
};
#endif // EPGWIDGET_H
#endif // EPGWIDGET_H
modules/gui/qt4/dialogs/epg.cpp
View file @
360fe5b2
...
@@ -29,15 +29,39 @@
...
@@ -29,15 +29,39 @@
#include "components/epg/EPGWidget.hpp"
#include "components/epg/EPGWidget.hpp"
#include <QHBoxLayout>
#include <QHBoxLayout>
#include <QSplitter>
#include <QLabel>
#include <QGroupBox>
EpgDialog
::
EpgDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
EpgDialog
::
EpgDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
{
setTitle
(
"Program Guide"
);
set
Window
Title
(
"Program Guide"
);
QHBoxLayout
*
layout
=
new
QHBoxLayout
(
this
);
QHBoxLayout
*
layout
=
new
QHBoxLayout
(
this
);
QSplitter
*
splitter
=
new
QSplitter
(
this
);
EPGWidget
*
epg
=
new
EPGWidget
(
this
);
EPGWidget
*
epg
=
new
EPGWidget
(
this
);
splitter
->
addWidget
(
epg
);
splitter
->
setOrientation
(
Qt
::
Vertical
);
layout
->
addWidget
(
epg
);
QGroupBox
*
descBox
=
new
QGroupBox
(
qtr
(
"Description"
),
this
);
QHBoxLayout
*
boxLayout
=
new
QHBoxLayout
(
descBox
);
description
=
new
QLabel
(
this
);
description
->
setFrameStyle
(
QFrame
::
Sunken
|
QFrame
::
StyledPanel
);
description
->
setAutoFillBackground
(
true
);
QPalette
palette
;
palette
.
setBrush
(
QPalette
::
Active
,
QPalette
::
Window
,
palette
.
brush
(
QPalette
::
Base
)
);
description
->
setPalette
(
palette
);
boxLayout
->
addWidget
(
description
);
splitter
->
addWidget
(
epg
);
splitter
->
addWidget
(
descBox
);
layout
->
addWidget
(
splitter
);
CONNECT
(
epg
,
descriptionChanged
(
const
QString
&
),
description
,
setText
(
const
QString
&
)
);
}
}
EpgDialog
::~
EpgDialog
()
EpgDialog
::~
EpgDialog
()
...
...
modules/gui/qt4/dialogs/epg.hpp
View file @
360fe5b2
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "util/singleton.hpp"
#include "util/singleton.hpp"
class
QLabel
;
class
EpgDialog
:
public
QVLCFrame
,
public
Singleton
<
EpgDialog
>
class
EpgDialog
:
public
QVLCFrame
,
public
Singleton
<
EpgDialog
>
{
{
Q_OBJECT
;
Q_OBJECT
;
...
@@ -35,6 +35,8 @@ private:
...
@@ -35,6 +35,8 @@ private:
EpgDialog
(
intf_thread_t
*
);
EpgDialog
(
intf_thread_t
*
);
virtual
~
EpgDialog
();
virtual
~
EpgDialog
();
QLabel
*
description
;
friend
class
Singleton
<
EpgDialog
>
;
friend
class
Singleton
<
EpgDialog
>
;
};
};
...
...
modules/gui/qt4/menus.cpp
View file @
360fe5b2
...
@@ -375,6 +375,9 @@ QMenu *QVLCMenu::ToolsMenu( QMenu *menu )
...
@@ -375,6 +375,9 @@ QMenu *QVLCMenu::ToolsMenu( QMenu *menu )
"Ctrl+W"
);
"Ctrl+W"
);
#endif
#endif
addDPStaticEntry
(
menu
,
qtr
(
"Program Guide"
),
""
,
SLOT
(
epgDialog
()
),
""
);
addDPStaticEntry
(
menu
,
qtr
(
I_MENU_MSG
),
addDPStaticEntry
(
menu
,
qtr
(
I_MENU_MSG
),
":/menu/messages"
,
SLOT
(
messagesDialog
()
),
":/menu/messages"
,
SLOT
(
messagesDialog
()
),
"Ctrl+M"
);
"Ctrl+M"
);
...
...
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