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
d8dcf17c
Commit
d8dcf17c
authored
Mar 08, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: remove intf_UserYesNo back-end
parent
402e44d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
51 deletions
+1
-51
modules/gui/qt4/dialogs/interaction.cpp
modules/gui/qt4/dialogs/interaction.cpp
+1
-51
No files found.
modules/gui/qt4/dialogs/interaction.cpp
View file @
d8dcf17c
...
@@ -43,36 +43,11 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
...
@@ -43,36 +43,11 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
{
{
QVBoxLayout
*
layout
=
NULL
;
QVBoxLayout
*
layout
=
NULL
;
description
=
NULL
;
description
=
NULL
;
int
i_ret
=
-
1
;
panel
=
NULL
;
panel
=
NULL
;
dialog
=
NULL
;
dialog
=
NULL
;
altButton
=
NULL
;
altButton
=
NULL
;
if
(
p_dialog
->
i_flags
&
DIALOG_YES_NO_CANCEL
)
if
(
(
p_dialog
->
i_flags
&
DIALOG_INTF_PROGRESS
)
||
{
p_dialog
->
i_status
=
SENT_DIALOG
;
QMessageBox
cancelBox
;
cancelBox
.
setWindowTitle
(
qfu
(
p_dialog
->
psz_title
)
);
cancelBox
.
setText
(
qfu
(
p_dialog
->
psz_description
)
);
if
(
p_dialog
->
psz_default_button
)
cancelBox
.
addButton
(
"&"
+
qfu
(
p_dialog
->
psz_default_button
),
QMessageBox
::
AcceptRole
);
if
(
p_dialog
->
psz_alternate_button
)
cancelBox
.
addButton
(
"&"
+
qfu
(
p_dialog
->
psz_alternate_button
),
QMessageBox
::
RejectRole
);
if
(
p_dialog
->
psz_other_button
)
cancelBox
.
addButton
(
"&"
+
qfu
(
p_dialog
->
psz_other_button
),
QMessageBox
::
ActionRole
);
i_ret
=
cancelBox
.
exec
();
msg_Dbg
(
p_intf
,
"Warning %i %i"
,
i_ret
,
cancelBox
.
result
()
);
}
else
if
(
(
p_dialog
->
i_flags
&
DIALOG_INTF_PROGRESS
)
||
(
p_dialog
->
i_flags
&
DIALOG_USER_PROGRESS
)
)
(
p_dialog
->
i_flags
&
DIALOG_USER_PROGRESS
)
)
{
{
dialog
=
new
QWidget
;
layout
=
new
QVBoxLayout
(
dialog
);
dialog
=
new
QWidget
;
layout
=
new
QVBoxLayout
(
dialog
);
...
@@ -92,48 +67,23 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
...
@@ -92,48 +67,23 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
return
;
return
;
}
}
msg_Dbg
(
p_intf
,
"Warning %i"
,
i_ret
);
/* We used a QMessageBox */
if
(
i_ret
!=
-
1
)
{
if
(
i_ret
==
QMessageBox
::
AcceptRole
||
i_ret
==
QMessageBox
::
Ok
)
Finish
(
DIALOG_OK_YES
);
else
if
(
i_ret
==
QMessageBox
::
RejectRole
)
Finish
(
DIALOG_NO
);
else
Finish
(
DIALOG_CANCELLED
);
}
else
/* Custom dialog, finish it */
/* Custom dialog, finish it */
{
{
assert
(
dialog
);
assert
(
dialog
);
/* Start the DialogButtonBox config */
/* Start the DialogButtonBox config */
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
;
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
;
if
(
p_dialog
->
psz_default_button
)
{
defaultButton
=
new
QPushButton
;
defaultButton
->
setFocus
();
defaultButton
->
setText
(
"&"
+
qfu
(
p_dialog
->
psz_default_button
)
);
buttonBox
->
addButton
(
defaultButton
,
QDialogButtonBox
::
AcceptRole
);
}
if
(
p_dialog
->
psz_alternate_button
)
if
(
p_dialog
->
psz_alternate_button
)
{
{
altButton
=
new
QPushButton
;
altButton
=
new
QPushButton
;
altButton
->
setText
(
"&"
+
qfu
(
p_dialog
->
psz_alternate_button
)
);
altButton
->
setText
(
"&"
+
qfu
(
p_dialog
->
psz_alternate_button
)
);
buttonBox
->
addButton
(
altButton
,
QDialogButtonBox
::
RejectRole
);
buttonBox
->
addButton
(
altButton
,
QDialogButtonBox
::
RejectRole
);
}
}
if
(
p_dialog
->
psz_other_button
)
{
otherButton
=
new
QPushButton
;
otherButton
->
setText
(
"&"
+
qfu
(
p_dialog
->
psz_other_button
)
);
buttonBox
->
addButton
(
otherButton
,
QDialogButtonBox
::
ActionRole
);
}
layout
->
addWidget
(
buttonBox
);
layout
->
addWidget
(
buttonBox
);
/* End the DialogButtonBox */
/* End the DialogButtonBox */
/* CONNECTs */
/* CONNECTs */
if
(
p_dialog
->
psz_default_button
)
BUTTONACT
(
defaultButton
,
defaultB
()
);
if
(
p_dialog
->
psz_alternate_button
)
BUTTONACT
(
altButton
,
altB
()
);
if
(
p_dialog
->
psz_alternate_button
)
BUTTONACT
(
altButton
,
altB
()
);
if
(
p_dialog
->
psz_other_button
)
BUTTONACT
(
otherButton
,
otherB
()
);
/* set the layouts and thte title */
/* set the layouts and thte title */
dialog
->
setLayout
(
layout
);
dialog
->
setLayout
(
layout
);
...
...
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