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
03d0ff1c
Commit
03d0ff1c
authored
May 07, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interactions.*: button order (fix #470)
parent
f44c0c99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
modules/gui/wxwidgets/dialogs/interaction.cpp
modules/gui/wxwidgets/dialogs/interaction.cpp
+12
-14
modules/gui/wxwidgets/dialogs/interaction.hpp
modules/gui/wxwidgets/dialogs/interaction.hpp
+1
-1
No files found.
modules/gui/wxwidgets/dialogs/interaction.cpp
View file @
03d0ff1c
...
@@ -70,7 +70,7 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
...
@@ -70,7 +70,7 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
widgets_panel
->
SetSizer
(
widgets_sizer
);
widgets_panel
->
SetSizer
(
widgets_sizer
);
buttons_panel
=
new
wxPanel
(
this
,
-
1
);
buttons_panel
=
new
wxPanel
(
this
,
-
1
);
buttons_sizer
=
new
wx
BoxSizer
(
wxHORIZONTAL
)
;
buttons_sizer
=
new
wx
StdDialogButtonSizer
;
buttons_panel
->
SetSizer
(
buttons_sizer
);
buttons_panel
->
SetSizer
(
buttons_sizer
);
main_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
main_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
...
@@ -170,20 +170,17 @@ void InteractionDialog::Render()
...
@@ -170,20 +170,17 @@ void InteractionDialog::Render()
{
{
wxButton
*
ok
=
new
wxButton
(
buttons_panel
,
wxID_OK
);
wxButton
*
ok
=
new
wxButton
(
buttons_panel
,
wxID_OK
);
wxButton
*
cancel
=
new
wxButton
(
buttons_panel
,
wxID_CANCEL
);
wxButton
*
cancel
=
new
wxButton
(
buttons_panel
,
wxID_CANCEL
);
buttons_sizer
->
Add
(
ok
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
buttons_sizer
->
Add
Button
(
ok
);
buttons_sizer
->
Add
(
cancel
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
buttons_sizer
->
Add
Button
(
cancel
);
}
}
else
if
(
p_dialog
->
i_flags
&
DIALOG_YES_NO_CANCEL
)
else
if
(
p_dialog
->
i_flags
&
DIALOG_YES_NO_CANCEL
)
{
{
wxButton
*
yes
=
new
wxButton
(
buttons_panel
,
wxID_YES
);
wxButton
*
yes
=
new
wxButton
(
buttons_panel
,
wxID_YES
);
wxButton
*
no
=
new
wxButton
(
buttons_panel
,
wxID_NO
);
wxButton
*
no
=
new
wxButton
(
buttons_panel
,
wxID_NO
);
wxButton
*
cancel
=
new
wxButton
(
buttons_panel
,
wxID_CANCEL
);
wxButton
*
cancel
=
new
wxButton
(
buttons_panel
,
wxID_CANCEL
);
buttons_sizer
->
Add
(
yes
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
buttons_sizer
->
AddButton
(
yes
);
wxALIGN_CENTER
,
5
);
buttons_sizer
->
AddButton
(
no
);
buttons_sizer
->
Add
(
no
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
buttons_sizer
->
AddButton
(
cancel
);
wxALIGN_CENTER
,
5
);
buttons_sizer
->
Add
(
cancel
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
}
}
else
if
(
p_dialog
->
i_flags
&
DIALOG_CLEAR_NOSHOW
)
else
if
(
p_dialog
->
i_flags
&
DIALOG_CLEAR_NOSHOW
)
{
{
...
@@ -192,17 +189,18 @@ void InteractionDialog::Render()
...
@@ -192,17 +189,18 @@ void InteractionDialog::Render()
noshow
->
SetValue
(
b_noshow
);
noshow
->
SetValue
(
b_noshow
);
wxButton
*
clear
=
new
wxButton
(
buttons_panel
,
wxID_CLEAR
);
wxButton
*
clear
=
new
wxButton
(
buttons_panel
,
wxID_CLEAR
);
wxButton
*
close
=
new
wxButton
(
buttons_panel
,
wxID_CLOSE
);
wxButton
*
close
=
new
wxButton
(
buttons_panel
,
wxID_CLOSE
);
close
->
SetDefault
();
buttons_sizer
->
Add
(
noshow
,
0
,
wxEXPAND
|
wxRIGHT
|
buttons_sizer
->
Add
(
noshow
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_LEFT
,
5
);
wxLEFT
|
wxALIGN_LEFT
,
5
);
buttons_sizer
->
Add
(
0
,
0
,
1
);
buttons_sizer
->
Add
(
0
,
0
,
1
);
buttons_sizer
->
Add
(
clear
,
0
,
wxEXPAND
|
wxRIGHT
|
buttons_sizer
->
Add
Button
(
clear
);
wxLEFT
|
wxALIGN_RIGHT
,
5
);
buttons_sizer
->
SetNegativeButton
(
clear
);
buttons_sizer
->
Add
(
close
,
0
,
wxEXPAND
|
wxRIGHT
|
buttons_sizer
->
Add
Button
(
close
);
wxLEFT
|
wxALIGN_RIGHT
,
5
);
buttons_sizer
->
SetAffirmativeButton
(
close
);
}
}
widgets_sizer
->
Layout
();
widgets_sizer
->
Layout
();
widgets_panel
->
SetSizerAndFit
(
widgets_sizer
);
widgets_panel
->
SetSizerAndFit
(
widgets_sizer
);
buttons_sizer
->
Layout
();
buttons_sizer
->
Realize
();
buttons_panel
->
SetSizerAndFit
(
buttons_sizer
);
buttons_panel
->
SetSizerAndFit
(
buttons_sizer
);
main_sizer
->
Layout
();
main_sizer
->
Layout
();
SetSizerAndFit
(
main_sizer
);
SetSizerAndFit
(
main_sizer
);
...
...
modules/gui/wxwidgets/dialogs/interaction.hpp
View file @
03d0ff1c
...
@@ -65,7 +65,7 @@ namespace wxvlc
...
@@ -65,7 +65,7 @@ namespace wxvlc
wxBoxSizer
*
widgets_sizer
;
wxBoxSizer
*
widgets_sizer
;
wxPanel
*
widgets_panel
;
wxPanel
*
widgets_panel
;
wx
Box
Sizer
*
buttons_sizer
;
wx
StdDialogButton
Sizer
*
buttons_sizer
;
wxPanel
*
buttons_panel
;
wxPanel
*
buttons_panel
;
wxBoxSizer
*
main_sizer
;
wxBoxSizer
*
main_sizer
;
...
...
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