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
75c86db7
Commit
75c86db7
authored
Nov 20, 2006
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Qt4: added network and disk UIs to Open
Still not functionnal and ugly code.
parent
4b9be2f7
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
77 additions
and
8 deletions
+77
-8
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+33
-6
modules/gui/qt4/components/open.hpp
modules/gui/qt4/components/open.hpp
+36
-0
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+5
-1
modules/gui/qt4/dialogs/open.hpp
modules/gui/qt4/dialogs/open.hpp
+2
-0
modules/gui/qt4/ui/open_net.ui
modules/gui/qt4/ui/open_net.ui
+1
-1
No files found.
modules/gui/qt4/components/open.cpp
View file @
75c86db7
...
@@ -51,29 +51,56 @@ QString FileOpenPanel::getUpdatedMRL()
...
@@ -51,29 +51,56 @@ QString FileOpenPanel::getUpdatedMRL()
return
ui
.
fileInput
->
currentText
();
return
ui
.
fileInput
->
currentText
();
}
}
/**************************************************************************
/**************************************************************************
*
Net
open
*
Disk
open
**************************************************************************/
**************************************************************************/
#if 0
DiskOpenPanel
::
DiskOpenPanel
(
QWidget
*
_parent
,
intf_thread_t
*
_p_intf
)
:
NetOpenPanel::NetOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
OpenPanel
(
_parent
,
_p_intf
)
OpenPanel
(
_parent
,
_p_intf
)
{
{
ui
.
setupUi
(
this
);
ui
.
setupUi
(
this
);
}
}
NetOpenPanel::~NetOpenPanel()
DiskOpenPanel
::~
DiskOpenPanel
()
{}
void
DiskOpenPanel
::
sendUpdate
()
{}
{}
QString
NetOpenPanel::getUpdatedMRL(
)
QString
DiskOpenPanel
::
getUpdatedMRL
(
)
{
{
//return ui.DiskInput->currentText();
return
NULL
;
}
/**************************************************************************
* Net open
**************************************************************************/
NetOpenPanel
::
NetOpenPanel
(
QWidget
*
_parent
,
intf_thread_t
*
_p_intf
)
:
OpenPanel
(
_parent
,
_p_intf
)
{
ui
.
setupUi
(
this
);
}
}
NetOpenPanel
::~
NetOpenPanel
()
{}
void
NetOpenPanel
::
sendUpdate
()
{}
/*
void NetOpenPanel::sendUpdate()
void NetOpenPanel::sendUpdate()
{
{
QString *mrl = new QString();
QString *mrl = new QString();
QString *cache = new QString();
QString *cache = new QString();
getUpdatedMRL( mrl, cache );,
getUpdatedMRL( mrl, cache );,
emit dataUpdated( mrl, cache );
emit dataUpdated( mrl, cache );
}*/
QString
NetOpenPanel
::
getUpdatedMRL
()
{
// return ui.NetInput->currentText();
return
NULL
;
}
}
#endif
modules/gui/qt4/components/open.hpp
View file @
75c86db7
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
#include <QWidget>
#include <QWidget>
#include <QString>
#include <QString>
#include "ui/open_file.h"
#include "ui/open_file.h"
#include "ui/open_disk.h"
#include "ui/open_net.h"
class
OpenPanel
:
public
QWidget
class
OpenPanel
:
public
QWidget
{
{
...
@@ -62,4 +64,38 @@ signals:
...
@@ -62,4 +64,38 @@ signals:
};
};
class
NetOpenPanel
:
public
OpenPanel
{
Q_OBJECT
;
public:
NetOpenPanel
(
QWidget
*
,
intf_thread_t
*
);
virtual
~
NetOpenPanel
();
virtual
QString
getUpdatedMRL
();
private:
Ui
::
OpenNet
ui
;
public
slots
:
virtual
void
sendUpdate
()
;
signals:
void
dataUpdated
(
QString
,
QString
)
;
};
class
DiskOpenPanel
:
public
OpenPanel
{
Q_OBJECT
;
public:
DiskOpenPanel
(
QWidget
*
,
intf_thread_t
*
);
virtual
~
DiskOpenPanel
();
virtual
QString
getUpdatedMRL
();
private:
Ui
::
OpenDisk
ui
;
public
slots
:
virtual
void
sendUpdate
()
;
signals:
void
dataUpdated
(
QString
,
QString
)
;
};
#endif
#endif
modules/gui/qt4/dialogs/open.cpp
View file @
75c86db7
...
@@ -39,7 +39,11 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
...
@@ -39,7 +39,11 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
setWindowTitle
(
_
(
"Open"
)
);
setWindowTitle
(
_
(
"Open"
)
);
ui
.
setupUi
(
this
);
ui
.
setupUi
(
this
);
fileOpenPanel
=
new
FileOpenPanel
(
this
,
_p_intf
);
fileOpenPanel
=
new
FileOpenPanel
(
this
,
_p_intf
);
ui
.
Tab
->
addTab
(
fileOpenPanel
,
"Test"
);
diskOpenPanel
=
new
DiskOpenPanel
(
this
,
_p_intf
);
netOpenPanel
=
new
NetOpenPanel
(
this
,
_p_intf
);
ui
.
Tab
->
addTab
(
fileOpenPanel
,
"File"
);
ui
.
Tab
->
addTab
(
diskOpenPanel
,
"Disk"
);
ui
.
Tab
->
addTab
(
netOpenPanel
,
"Network"
);
}
}
OpenDialog
::~
OpenDialog
()
OpenDialog
::~
OpenDialog
()
...
...
modules/gui/qt4/dialogs/open.hpp
View file @
75c86db7
...
@@ -52,6 +52,8 @@ private:
...
@@ -52,6 +52,8 @@ private:
input_thread_t
*
p_input
;
input_thread_t
*
p_input
;
Ui
::
Open
ui
;
Ui
::
Open
ui
;
FileOpenPanel
*
fileOpenPanel
;
FileOpenPanel
*
fileOpenPanel
;
NetOpenPanel
*
netOpenPanel
;
DiskOpenPanel
*
diskOpenPanel
;
public
slots
:
public
slots
:
void
cancel
();
void
cancel
();
void
ok
();
void
ok
();
...
...
modules/gui/qt4/ui/open_net.ui
View file @
75c86db7
<ui version="4.0" >
<ui version="4.0" >
<author>Jean-Baptiste Kempf</author>
<author>Jean-Baptiste Kempf</author>
<class>OpenNet
work
</class>
<class>OpenNet</class>
<widget class="QWidget" name="OpenNetwork" >
<widget class="QWidget" name="OpenNetwork" >
<property name="geometry" >
<property name="geometry" >
<rect>
<rect>
...
...
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