Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d0f00ee6
Commit
d0f00ee6
authored
Oct 06, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: podcast configuration, don't use a modal window, don't use a Qdailog but a QVLCFrame.
parent
f913159d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
27 deletions
+36
-27
modules/gui/qt4/dialogs/podcast_configuration.cpp
modules/gui/qt4/dialogs/podcast_configuration.cpp
+13
-8
modules/gui/qt4/dialogs/podcast_configuration.hpp
modules/gui/qt4/dialogs/podcast_configuration.hpp
+12
-7
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+10
-11
modules/gui/qt4/ui/podcast_configuration.ui
modules/gui/qt4/ui/podcast_configuration.ui
+1
-1
No files found.
modules/gui/qt4/dialogs/podcast_configuration.cpp
View file @
d0f00ee6
...
@@ -23,8 +23,11 @@
...
@@ -23,8 +23,11 @@
#include "podcast_configuration.hpp"
#include "podcast_configuration.hpp"
PodcastConfigurationDialog
::
PodcastConfigurationDialog
(
intf_thread_t
*
_p_intf
)
PodcastConfigDialog
*
PodcastConfigDialog
::
instance
=
NULL
;
:
p_intf
(
_p_intf
)
PodcastConfigDialog
::
PodcastConfigDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
{
ui
.
setupUi
(
this
);
ui
.
setupUi
(
this
);
...
@@ -51,7 +54,11 @@ PodcastConfigurationDialog::PodcastConfigurationDialog( intf_thread_t *_p_intf )
...
@@ -51,7 +54,11 @@ PodcastConfigurationDialog::PodcastConfigurationDialog( intf_thread_t *_p_intf )
}
}
}
}
void
PodcastConfigurationDialog
::
accept
()
PodcastConfigDialog
::~
PodcastConfigDialog
()
{
}
void
PodcastConfigDialog
::
accept
()
{
{
QString
urls
=
""
;
QString
urls
=
""
;
for
(
int
i
=
0
;
i
<
ui
.
podcastList
->
count
();
i
++
)
for
(
int
i
=
0
;
i
<
ui
.
podcastList
->
count
();
i
++
)
...
@@ -74,11 +81,9 @@ void PodcastConfigurationDialog::accept()
...
@@ -74,11 +81,9 @@ void PodcastConfigurationDialog::accept()
{
{
msg_Dbg
(
p_intf
,
"You will need to reload the podcast module to take into account deleted podcast urls"
);
msg_Dbg
(
p_intf
,
"You will need to reload the podcast module to take into account deleted podcast urls"
);
}
}
QDialog
::
accept
();
}
}
void
PodcastConfig
uration
Dialog
::
add
()
void
PodcastConfigDialog
::
add
()
{
{
if
(
ui
.
podcastURL
->
text
()
!=
QString
(
""
)
)
if
(
ui
.
podcastURL
->
text
()
!=
QString
(
""
)
)
{
{
...
@@ -87,7 +92,7 @@ void PodcastConfigurationDialog::add()
...
@@ -87,7 +92,7 @@ void PodcastConfigurationDialog::add()
}
}
}
}
void
PodcastConfig
uration
Dialog
::
remove
()
void
PodcastConfigDialog
::
remove
()
{
{
delete
ui
.
podcastList
->
currentItem
();
delete
ui
.
podcastList
->
currentItem
();
}
}
modules/gui/qt4/dialogs/podcast_configuration.hpp
View file @
d0f00ee6
...
@@ -24,21 +24,26 @@
...
@@ -24,21 +24,26 @@
#ifndef _PODCAST_CONFIGURATION_DIALOG_H_
#ifndef _PODCAST_CONFIGURATION_DIALOG_H_
#define _PODCAST_CONFIGURATION_DIALOG_H_
#define _PODCAST_CONFIGURATION_DIALOG_H_
#include "
qt4
.hpp"
#include "
util/qvlcframe
.hpp"
#include "ui/podcast_configuration.h"
#include "ui/podcast_configuration.h"
class
PodcastConfig
urationDialog
:
public
QDialog
class
PodcastConfig
Dialog
:
public
QVLCFrame
{
{
Q_OBJECT
;
Q_OBJECT
;
public:
public:
PodcastConfigurationDialog
(
intf_thread_t
*
p_intf
);
static
PodcastConfigDialog
*
getInstance
(
intf_thread_t
*
p_intf
)
{
if
(
!
instance
)
instance
=
new
PodcastConfigDialog
(
p_intf
);
return
instance
;
}
virtual
~
PodcastConfigDialog
();
private:
private:
PodcastConfigDialog
(
intf_thread_t
*
);
static
PodcastConfigDialog
*
instance
;
Ui
::
PodcastConfiguration
ui
;
Ui
::
PodcastConfiguration
ui
;
intf_thread_t
*
p_intf
;
public
slots
:
private
slots
:
void
accept
();
void
accept
();
void
add
();
void
add
();
void
remove
();
void
remove
();
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
d0f00ee6
...
@@ -110,7 +110,10 @@ void DialogsProvider::customEvent( QEvent *event )
...
@@ -110,7 +110,10 @@ void DialogsProvider::customEvent( QEvent *event )
bookmarksDialog
();
break
;
bookmarksDialog
();
break
;
case
INTF_DIALOG_EXTENDED
:
case
INTF_DIALOG_EXTENDED
:
extendedDialog
();
break
;
extendedDialog
();
break
;
/* We might want to make it better with custom functions */
case
INTF_DIALOG_VLM
:
vlmDialog
();
break
;
case
INTF_DIALOG_INTERACTION
:
doInteraction
(
de
->
p_arg
);
break
;
case
INTF_DIALOG_POPUPMENU
:
case
INTF_DIALOG_POPUPMENU
:
QVLCMenu
::
PopupMenu
(
p_intf
,
(
de
->
i_arg
!=
0
)
);
break
;
QVLCMenu
::
PopupMenu
(
p_intf
,
(
de
->
i_arg
!=
0
)
);
break
;
case
INTF_DIALOG_AUDIOPOPUPMENU
:
case
INTF_DIALOG_AUDIOPOPUPMENU
:
...
@@ -119,10 +122,6 @@ void DialogsProvider::customEvent( QEvent *event )
...
@@ -119,10 +122,6 @@ void DialogsProvider::customEvent( QEvent *event )
QVLCMenu
::
VideoPopupMenu
(
p_intf
);
break
;
QVLCMenu
::
VideoPopupMenu
(
p_intf
);
break
;
case
INTF_DIALOG_MISCPOPUPMENU
:
case
INTF_DIALOG_MISCPOPUPMENU
:
QVLCMenu
::
MiscPopupMenu
(
p_intf
);
break
;
QVLCMenu
::
MiscPopupMenu
(
p_intf
);
break
;
case
INTF_DIALOG_INTERACTION
:
doInteraction
(
de
->
p_arg
);
break
;
case
INTF_DIALOG_VLM
:
vlmDialog
();
break
;
case
INTF_DIALOG_WIZARD
:
case
INTF_DIALOG_WIZARD
:
case
INTF_DIALOG_STREAMWIZARD
:
case
INTF_DIALOG_STREAMWIZARD
:
case
INTF_DIALOG_UPDATEVLC
:
case
INTF_DIALOG_UPDATEVLC
:
...
@@ -191,6 +190,12 @@ void DialogsProvider::bookmarksDialog()
...
@@ -191,6 +190,12 @@ void DialogsProvider::bookmarksDialog()
/* BookmarkDialog::getInstance( p_intf )->toggleVisible(); */
/* BookmarkDialog::getInstance( p_intf )->toggleVisible(); */
}
}
void
DialogsProvider
::
podcastConfigureDialog
()
{
PodcastConfigDialog
::
getInstance
(
p_intf
)
->
toggleVisible
();
}
/****************************************************************************
/****************************************************************************
* All the open/add stuff
* All the open/add stuff
* Open Dialog first - Simple Open then
* Open Dialog first - Simple Open then
...
@@ -503,12 +508,6 @@ void DialogsProvider::doInteraction( intf_dialog_args_t *p_arg )
...
@@ -503,12 +508,6 @@ void DialogsProvider::doInteraction( intf_dialog_args_t *p_arg )
}
}
}
}
void
DialogsProvider
::
podcastConfigureDialog
()
{
PodcastConfigurationDialog
c
(
p_intf
);
c
.
exec
();
}
void
DialogsProvider
::
switchToSkins
()
void
DialogsProvider
::
switchToSkins
()
{
{
var_SetString
(
p_intf
,
"intf-switch"
,
"skins2"
);
var_SetString
(
p_intf
,
"intf-switch"
,
"skins2"
);
...
...
modules/gui/qt4/ui/podcast_configuration.ui
View file @
d0f00ee6
<ui version="4.0" >
<ui version="4.0" >
<class>PodcastConfiguration</class>
<class>PodcastConfiguration</class>
<widget class="Q
Dialog
" name="PodcastConfiguration" >
<widget class="Q
Widget
" name="PodcastConfiguration" >
<property name="geometry" >
<property name="geometry" >
<rect>
<rect>
<x>0</x>
<x>0</x>
...
...
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