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
9f9dda51
Commit
9f9dda51
authored
May 21, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Add an advanced option for whiners to have by default the open dialog extended.
parent
788d3b65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+8
-2
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+6
-0
No files found.
modules/gui/qt4/dialogs/open.cpp
View file @
9f9dda51
...
@@ -42,6 +42,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
...
@@ -42,6 +42,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
setModal
(
modal
);
setModal
(
modal
);
i_action_flag
=
_action_flag
;
i_action_flag
=
_action_flag
;
/* Basic Creation of the Window */
ui
.
setupUi
(
this
);
ui
.
setupUi
(
this
);
setWindowTitle
(
qtr
(
"Open"
)
);
setWindowTitle
(
qtr
(
"Open"
)
);
resize
(
410
,
300
);
resize
(
410
,
300
);
...
@@ -52,6 +53,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
...
@@ -52,6 +53,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
netOpenPanel
=
new
NetOpenPanel
(
ui
.
Tab
,
p_intf
);
netOpenPanel
=
new
NetOpenPanel
(
ui
.
Tab
,
p_intf
);
captureOpenPanel
=
new
CaptureOpenPanel
(
ui
.
Tab
,
p_intf
);
captureOpenPanel
=
new
CaptureOpenPanel
(
ui
.
Tab
,
p_intf
);
/* Insert the tabs */
ui
.
Tab
->
insertTab
(
OPEN_FILE_TAB
,
fileOpenPanel
,
qtr
(
"&File"
)
);
ui
.
Tab
->
insertTab
(
OPEN_FILE_TAB
,
fileOpenPanel
,
qtr
(
"&File"
)
);
ui
.
Tab
->
insertTab
(
OPEN_DISC_TAB
,
discOpenPanel
,
qtr
(
"&Disc"
)
);
ui
.
Tab
->
insertTab
(
OPEN_DISC_TAB
,
discOpenPanel
,
qtr
(
"&Disc"
)
);
ui
.
Tab
->
insertTab
(
OPEN_NETWORK_TAB
,
netOpenPanel
,
qtr
(
"&Network"
)
);
ui
.
Tab
->
insertTab
(
OPEN_NETWORK_TAB
,
netOpenPanel
,
qtr
(
"&Network"
)
);
...
@@ -59,7 +61,10 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
...
@@ -59,7 +61,10 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
qtr
(
"Capture &Device"
)
);
qtr
(
"Capture &Device"
)
);
/* Hide the advancedPanel */
/* Hide the advancedPanel */
ui
.
advancedFrame
->
hide
();
if
(
!
config_GetInt
(
p_intf
,
"qt-adv-options"
)
)
{
ui
.
advancedFrame
->
hide
();
}
/* Buttons Creation */
/* Buttons Creation */
QSizePolicy
buttonSizePolicy
(
static_cast
<
QSizePolicy
::
Policy
>
(
7
),
QSizePolicy
buttonSizePolicy
(
static_cast
<
QSizePolicy
::
Policy
>
(
7
),
...
@@ -108,7 +113,8 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
...
@@ -108,7 +113,8 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
this
,
newMethod
(
QString
)
);
this
,
newMethod
(
QString
)
);
CONNECT
(
discOpenPanel
,
methodChanged
(
QString
),
CONNECT
(
discOpenPanel
,
methodChanged
(
QString
),
this
,
newMethod
(
QString
)
);
this
,
newMethod
(
QString
)
);
/* FIXME CAPTURE */
CONNECT
(
captureOpenPanel
,
methodChanged
(
QString
),
this
,
newMethod
(
QString
)
);
/* Advanced frame Connects */
/* Advanced frame Connects */
CONNECT
(
ui
.
slaveText
,
textChanged
(
QString
),
this
,
updateMRL
());
CONNECT
(
ui
.
slaveText
,
textChanged
(
QString
),
this
,
updateMRL
());
...
...
modules/gui/qt4/qt4.cpp
View file @
9f9dda51
...
@@ -65,6 +65,10 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
...
@@ -65,6 +65,10 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
#define FILEDIALOG_PATH_TEXT N_("path to use in file dialog")
#define FILEDIALOG_PATH_TEXT N_("path to use in file dialog")
#define FILEDIALOG_PATH_LONGTEXT N_("path to use in file dialog")
#define FILEDIALOG_PATH_LONGTEXT N_("path to use in file dialog")
#define ADVANCED_OPTIONS_TEXT N_("Advanced options")
#define ADVANCED_OPTIONS_LONGTEXT N_("Activate by default all the" \
"Advanced options for geeks")
vlc_module_begin
();
vlc_module_begin
();
set_shortname
(
(
char
*
)
"Qt"
);
set_shortname
(
(
char
*
)
"Qt"
);
set_description
(
(
char
*
)
_
(
"Qt interface"
)
);
set_description
(
(
char
*
)
_
(
"Qt interface"
)
);
...
@@ -93,6 +97,8 @@ vlc_module_begin();
...
@@ -93,6 +97,8 @@ vlc_module_begin();
FILEDIALOG_PATH_LONGTEXT
,
VLC_TRUE
);
FILEDIALOG_PATH_LONGTEXT
,
VLC_TRUE
);
change_autosave
();
change_autosave
();
change_internal
();
change_internal
();
add_bool
(
"qt-adv-options"
,
VLC_FALSE
,
NULL
,
ADVANCED_OPTIONS_TEXT
,
ADVANCED_OPTIONS_LONGTEXT
,
VLC_TRUE
);
set_callbacks
(
OpenDialogs
,
Close
);
set_callbacks
(
OpenDialogs
,
Close
);
vlc_module_end
();
vlc_module_end
();
...
...
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