Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3e8c0de9
Commit
3e8c0de9
authored
May 07, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wx/dilaogs/ : Fix button alignment in dialogs (refs #470)
parent
8a764762
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
33 deletions
+31
-33
modules/gui/wxwidgets/dialogs/iteminfo.cpp
modules/gui/wxwidgets/dialogs/iteminfo.cpp
+5
-6
modules/gui/wxwidgets/dialogs/open.cpp
modules/gui/wxwidgets/dialogs/open.cpp
+10
-10
modules/gui/wxwidgets/dialogs/streamout.cpp
modules/gui/wxwidgets/dialogs/streamout.cpp
+5
-6
modules/gui/wxwidgets/dialogs/subtitles.cpp
modules/gui/wxwidgets/dialogs/subtitles.cpp
+5
-6
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.cpp
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.cpp
+6
-5
No files found.
modules/gui/wxwidgets/dialogs/iteminfo.cpp
View file @
3e8c0de9
...
...
@@ -80,16 +80,15 @@ ItemInfoDialog::ItemInfoDialog( intf_thread_t *_p_intf,
wxButton
*
cancel_button
=
new
wxButton
(
panel
,
wxID_CANCEL
);
/* Place everything in sizers */
wx
BoxSizer
*
button_sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
)
;
button_sizer
->
Add
(
ok_button
,
0
,
wxALL
,
5
);
button_sizer
->
Add
(
cancel_button
,
0
,
wxALL
,
5
);
button_sizer
->
Layout
();
wx
StdDialogButtonSizer
*
button_sizer
=
new
wxStdDialogButtonSizer
;
button_sizer
->
Add
Button
(
ok_button
);
button_sizer
->
Add
Button
(
cancel_button
);
button_sizer
->
Realize
();
wxBoxSizer
*
main_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxBoxSizer
*
panel_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
panel_sizer
->
Add
(
info_panel
,
1
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
static_line
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
button_sizer
,
0
,
wxALIGN_LEFT
|
wxALIGN_BOTTOM
|
wxALL
,
5
);
panel_sizer
->
Add
(
button_sizer
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Layout
();
panel
->
SetSizerAndFit
(
panel_sizer
);
main_sizer
->
Add
(
panel
,
1
,
wxGROW
,
0
);
...
...
modules/gui/wxwidgets/dialogs/open.cpp
View file @
3e8c0de9
...
...
@@ -321,11 +321,11 @@ AutoBuiltPanel::AutoBuiltPanel( wxWindow *parent, OpenDialog *dialog,
ok_button
->
SetDefault
();
wxButton
*
cancel_button
=
new
wxButton
(
p_advanced_dialog
,
wxID_CANCEL
);
wx
BoxSizer
*
button_sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
)
;
button_sizer
->
Add
(
ok_button
,
0
,
wxALL
,
5
);
button_sizer
->
Add
(
cancel_button
,
0
,
wxALL
,
5
);
button_sizer
->
Layout
();
sizer
->
Add
(
button_sizer
,
0
,
wx
ALL
,
0
);
wx
StdDialogButtonSizer
*
button_sizer
=
new
wxStdDialogButtonSizer
;
button_sizer
->
Add
Button
(
ok_button
);
button_sizer
->
Add
Button
(
cancel_button
);
button_sizer
->
Realize
();
sizer
->
Add
(
button_sizer
,
0
,
wx
EXPAND
|
wxALL
,
5
);
sizer
->
SetMinSize
(
400
,
-
1
);
p_advanced_dialog
->
SetSizerAndFit
(
sizer
);
...
...
@@ -562,10 +562,10 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
OnPageChange
(
event
);
/* Place everything in sizers */
wx
BoxSizer
*
button_sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
)
;
button_sizer
->
Add
(
cancel_button
,
0
,
wxALL
,
5
);
button_sizer
->
Add
(
ok_button
,
0
,
wxALL
,
5
);
button_sizer
->
Layout
();
wx
StdDialogButtonSizer
*
button_sizer
=
new
wxStdDialogButtonSizer
;
button_sizer
->
Add
Button
(
cancel_button
);
button_sizer
->
Add
Button
(
ok_button
);
button_sizer
->
Realize
();
wxBoxSizer
*
main_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxBoxSizer
*
panel_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
#if (!wxCHECK_VERSION(2,5,2))
...
...
@@ -575,7 +575,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
#endif
panel_sizer
->
Add
(
adv_sizer
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
static_line
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
button_sizer
,
0
,
wx
ALIGN_RIGHT
|
wxALL
,
5
);
panel_sizer
->
Add
(
button_sizer
,
0
,
wx
EXPAND
|
wxALL
,
5
);
panel_sizer
->
Layout
();
panel
->
SetSizerAndFit
(
panel_sizer
);
main_sizer
->
Add
(
panel
,
1
,
wxGROW
,
0
);
...
...
modules/gui/wxwidgets/dialogs/streamout.cpp
View file @
3e8c0de9
...
...
@@ -197,10 +197,10 @@ SoutDialog::SoutDialog( intf_thread_t *_p_intf, wxWindow* _p_parent ):
wxButton
*
cancel_button
=
new
wxButton
(
panel
,
wxID_CANCEL
);
/* Place everything in sizers */
wx
BoxSizer
*
button_sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
)
;
button_sizer
->
Add
(
ok_button
,
0
,
wxALL
,
5
);
button_sizer
->
Add
(
cancel_button
,
0
,
wxALL
,
5
);
button_sizer
->
Layout
();
wx
StdDialogButtonSizer
*
button_sizer
=
new
wxStdDialogButtonSizer
;
button_sizer
->
Add
Button
(
ok_button
);
button_sizer
->
Add
Button
(
cancel_button
);
button_sizer
->
Realize
();
wxBoxSizer
*
main_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxBoxSizer
*
panel_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
panel_sizer
->
Add
(
mrl_sizer_sizer
,
0
,
wxEXPAND
,
5
);
...
...
@@ -208,8 +208,7 @@ SoutDialog::SoutDialog( intf_thread_t *_p_intf, wxWindow* _p_parent ):
panel_sizer
->
Add
(
encapsulation_panel
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
transcoding_panel
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
misc_panel
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
button_sizer
,
0
,
wxALIGN_LEFT
|
wxALIGN_BOTTOM
|
wxALL
,
5
);
panel_sizer
->
Add
(
button_sizer
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Layout
();
panel
->
SetSizerAndFit
(
panel_sizer
);
main_sizer
->
Add
(
panel
,
1
,
wxGROW
,
0
);
...
...
modules/gui/wxwidgets/dialogs/subtitles.cpp
View file @
3e8c0de9
...
...
@@ -244,14 +244,13 @@ SubsFileDialog::SubsFileDialog( intf_thread_t *_p_intf, wxWindow* _p_parent ):
wxButton
*
cancel_button
=
new
wxButton
(
panel
,
wxID_CANCEL
);
/* Place everything in sizers */
wx
BoxSizer
*
button_sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
)
;
button_sizer
->
Add
(
ok_button
,
0
,
wxALL
,
5
);
button_sizer
->
Add
(
cancel_button
,
0
,
wxALL
,
5
);
button_sizer
->
Layout
();
wx
StdDialogButtonSizer
*
button_sizer
=
new
wxStdDialogButtonSizer
;
button_sizer
->
Add
Button
(
ok_button
);
button_sizer
->
Add
Button
(
cancel_button
);
button_sizer
->
Realize
();
panel_sizer
->
Add
(
static_line
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
button_sizer
,
0
,
wxALIGN_LEFT
|
wxALIGN_BOTTOM
|
wxALL
,
5
);
panel_sizer
->
Add
(
button_sizer
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Layout
();
panel
->
SetSizerAndFit
(
panel_sizer
);
main_sizer
->
Add
(
panel
,
1
,
wxGROW
,
0
);
...
...
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.cpp
View file @
3e8c0de9
...
...
@@ -40,9 +40,9 @@ enum
BEGIN_EVENT_TABLE
(
VLMPanel
,
wxPanel
)
EVT_TIMER
(
Timer_Event
,
VLMPanel
::
OnTimer
)
EVT_BUTTON
(
wxID_CLOSE
,
VLMPanel
::
OnClose
)
EVT_BUTTON
(
Close_Event
,
VLMPanel
::
OnClose
)
EVT_BUTTON
(
Load_Event
,
VLMPanel
::
OnLoad
)
EVT_BUTTON
(
wxID_SAVE
,
VLMPanel
::
OnSave
)
EVT_BUTTON
(
Save_Event
,
VLMPanel
::
OnSave
)
END_EVENT_TABLE
()
...
...
@@ -75,10 +75,10 @@ VLMPanel::VLMPanel( intf_thread_t *_p_intf, wxWindow *_p_parent ) :
#endif
wxBoxSizer
*
button_sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
button_sizer
->
Add
(
new
wxButton
(
this
,
wxID_CLOSE
)
);
button_sizer
->
Add
(
new
wxButton
(
this
,
Close_Event
,
wxU
(
_
(
"Close"
)
)
)
);
button_sizer
->
Add
(
0
,
0
,
1
);
button_sizer
->
Add
(
new
wxButton
(
this
,
Load_Event
,
wxU
(
_
(
"Load"
)
)
),
0
,
wxRIGHT
,
10
);
button_sizer
->
Add
(
new
wxButton
(
this
,
wxID_SAVE
)
);
button_sizer
->
Add
(
new
wxButton
(
this
,
Save_Event
,
wxU
(
_
(
"Save"
)
)
)
);
panel_sizer
->
Add
(
button_sizer
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Layout
();
...
...
@@ -409,7 +409,8 @@ VLMAddStreamPanel::VLMAddStreamPanel( intf_thread_t *_p_intf,
if
(
!
b_edit
)
{
lower_sizer
->
Add
(
new
wxButton
(
this
,
wxID_CLEAR
),
lower_sizer
->
Add
(
new
wxButton
(
this
,
Clear_Event
,
wxU
(
_
(
"Clear"
)
)
),
0
,
wxEXPAND
|
wxALL
,
5
);
}
lower_sizer
->
Add
(
new
wxButton
(
this
,
Create_Event
,
...
...
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