Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
fc383e22
Commit
fc383e22
authored
Oct 09, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Open: start to use a completer, use an enum and no stupid #define.
parent
d5ef9279
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
12 deletions
+22
-12
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+12
-5
modules/gui/qt4/components/open.hpp
modules/gui/qt4/components/open.hpp
+10
-7
No files found.
modules/gui/qt4/components/open.cpp
View file @
fc383e22
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include <QLineEdit>
#include <QLineEdit>
#include <QStackedLayout>
#include <QStackedLayout>
#include <QListView>
#include <QListView>
#include <QCompleter>
/**************************************************************************
/**************************************************************************
* Open Files and subtitles *
* Open Files and subtitles *
...
@@ -96,6 +97,12 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -96,6 +97,12 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
#else
#else
lineFileEdit
=
findChildren
<
QLineEdit
*>
()[
3
];
lineFileEdit
=
findChildren
<
QLineEdit
*>
()[
3
];
#endif
#endif
QStringList
fileCompleteList
;
QCompleter
*
fileCompleter
=
new
QCompleter
(
fileCompleteList
,
this
);
lineFileEdit
->
setCompleter
(
fileCompleter
);
// lineFileEdit->hide();
// lineFileEdit->hide();
/* Make a list of QLabel inside the QFileDialog to access the good ones */
/* Make a list of QLabel inside the QFileDialog to access the good ones */
...
@@ -564,7 +571,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -564,7 +571,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
jackDevLayout
->
addWidget
(
jackChannels
,
1
,
1
);
jackDevLayout
->
addWidget
(
jackChannels
,
1
,
1
);
/* Jack Props panel */
/* Jack Props panel */
/* Selected ports */
/* Selected ports */
QLabel
*
jackPortsLabel
=
new
QLabel
(
qtr
(
"Selected ports :"
)
);
QLabel
*
jackPortsLabel
=
new
QLabel
(
qtr
(
"Selected ports :"
)
);
jackPropLayout
->
addWidget
(
jackPortsLabel
,
0
,
0
);
jackPropLayout
->
addWidget
(
jackPortsLabel
,
0
,
0
);
...
@@ -572,7 +579,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -572,7 +579,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
jackPortsSelected
=
new
QLineEdit
(
qtr
(
".*"
)
);
jackPortsSelected
=
new
QLineEdit
(
qtr
(
".*"
)
);
jackPortsSelected
->
setAlignment
(
Qt
::
AlignRight
);
jackPortsSelected
->
setAlignment
(
Qt
::
AlignRight
);
jackPropLayout
->
addWidget
(
jackPortsSelected
,
0
,
1
);
jackPropLayout
->
addWidget
(
jackPortsSelected
,
0
,
1
);
/* Caching */
/* Caching */
QLabel
*
jackCachingLabel
=
new
QLabel
(
qtr
(
"Input caching :"
)
);
QLabel
*
jackCachingLabel
=
new
QLabel
(
qtr
(
"Input caching :"
)
);
jackPropLayout
->
addWidget
(
jackCachingLabel
,
1
,
0
);
jackPropLayout
->
addWidget
(
jackCachingLabel
,
1
,
0
);
...
@@ -582,15 +589,15 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -582,15 +589,15 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
jackCaching
->
setValue
(
1000
);
jackCaching
->
setValue
(
1000
);
jackCaching
->
setAlignment
(
Qt
::
AlignRight
);
jackCaching
->
setAlignment
(
Qt
::
AlignRight
);
jackPropLayout
->
addWidget
(
jackCaching
,
1
,
1
);
jackPropLayout
->
addWidget
(
jackCaching
,
1
,
1
);
/* Pace */
/* Pace */
jackPace
=
new
QCheckBox
(
qtr
(
"Use VLC pace"
));
jackPace
=
new
QCheckBox
(
qtr
(
"Use VLC pace"
));
jackPropLayout
->
addWidget
(
jackPace
,
2
,
1
);
jackPropLayout
->
addWidget
(
jackPace
,
2
,
1
);
/* Auto Connect */
/* Auto Connect */
jackConnect
=
new
QCheckBox
(
qtr
(
"Auto connnection"
));
jackConnect
=
new
QCheckBox
(
qtr
(
"Auto connnection"
));
jackPropLayout
->
addWidget
(
jackConnect
,
3
,
1
);
jackPropLayout
->
addWidget
(
jackConnect
,
3
,
1
);
/* Jack CONNECTs */
/* Jack CONNECTs */
CuMRL
(
jackChannels
,
valueChanged
(
int
)
);
CuMRL
(
jackChannels
,
valueChanged
(
int
)
);
CuMRL
(
jackCaching
,
valueChanged
(
int
)
);
CuMRL
(
jackCaching
,
valueChanged
(
int
)
);
...
...
modules/gui/qt4/components/open.hpp
View file @
fc383e22
...
@@ -44,13 +44,16 @@
...
@@ -44,13 +44,16 @@
#define setSpinBoxFreq( spinbox ){ spinbox->setRange ( 0, INT_MAX ); \
#define setSpinBoxFreq( spinbox ){ spinbox->setRange ( 0, INT_MAX ); \
spinbox->setAccelerated( true ); }
spinbox->setAccelerated( true ); }
#define V4L_DEVICE 0
enum
#define PVR_DEVICE 1
{
#define DVB_DEVICE 2
V4L_DEVICE
,
#define BDA_DEVICE 3
PVR_DEVICE
,
#define DSHOW_DEVICE 4
DVB_DEVICE
,
#define SCREEN_DEVICE 5
BDA_DEVICE
,
#define JACK_DEVICE 6
DSHOW_DEVICE
,
SCREEN_DEVICE
,
JACK_DEVICE
};
class
QWidget
;
class
QWidget
;
class
QLineEdit
;
class
QLineEdit
;
...
...
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