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
bf6ba2ca
Commit
bf6ba2ca
authored
Dec 12, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use standard buttons
parent
211ae07d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
modules/gui/wxwidgets/dialogs/interaction.cpp
modules/gui/wxwidgets/dialogs/interaction.cpp
+11
-13
No files found.
modules/gui/wxwidgets/dialogs/interaction.cpp
View file @
bf6ba2ca
...
@@ -37,19 +37,17 @@
...
@@ -37,19 +37,17 @@
/* IDs for the controls and the menu commands */
/* IDs for the controls and the menu commands */
enum
enum
{
{
OkYes_Event
,
No_Event
,
No_Event
,
Cancel_Event
,
Clear_Event
,
NoShow_Event
NoShow_Event
};
};
BEGIN_EVENT_TABLE
(
InteractionDialog
,
wxFrame
)
BEGIN_EVENT_TABLE
(
InteractionDialog
,
wxFrame
)
EVT_CLOSE
(
InteractionDialog
::
OnClose
)
EVT_CLOSE
(
InteractionDialog
::
OnClose
)
EVT_BUTTON
(
OkYes_Event
,
InteractionDialog
::
OnOkYes
)
EVT_BUTTON
(
wxID_OK
,
InteractionDialog
::
OnOkYes
)
EVT_BUTTON
(
Cancel_Event
,
InteractionDialog
::
OnCancel
)
EVT_BUTTON
(
wxID_YES
,
InteractionDialog
::
OnOkYes
)
EVT_BUTTON
(
wxID_CANCEL
,
InteractionDialog
::
OnCancel
)
EVT_BUTTON
(
No_Event
,
InteractionDialog
::
OnNo
)
EVT_BUTTON
(
No_Event
,
InteractionDialog
::
OnNo
)
EVT_BUTTON
(
Clear_Event
,
InteractionDialog
::
OnClear
)
EVT_BUTTON
(
wxID_CLEAR
,
InteractionDialog
::
OnClear
)
EVT_CHECKBOX
(
NoShow_Event
,
InteractionDialog
::
OnNoShow
)
EVT_CHECKBOX
(
NoShow_Event
,
InteractionDialog
::
OnNoShow
)
END_EVENT_TABLE
()
END_EVENT_TABLE
()
...
@@ -159,20 +157,20 @@ void InteractionDialog::Render()
...
@@ -159,20 +157,20 @@ void InteractionDialog::Render()
if
(
p_dialog
->
i_flags
&
DIALOG_OK_CANCEL
)
if
(
p_dialog
->
i_flags
&
DIALOG_OK_CANCEL
)
{
{
wxButton
*
ok
=
new
wxButton
(
buttons_panel
,
wxButton
*
ok
=
new
wxButton
(
buttons_panel
,
OkYes_Event
,
wxU
(
_
(
"OK"
)
)
);
wxID_OK
,
wxU
(
_
(
"OK"
)
)
);
wxButton
*
cancel
=
new
wxButton
(
buttons_panel
,
wxButton
*
cancel
=
new
wxButton
(
buttons_panel
,
Cancel_Event
,
wxU
(
_
(
"Cancel"
)
)
);
wxID_CANCEL
,
wxU
(
_
(
"Cancel"
)
)
);
buttons_sizer
->
Add
(
ok
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
buttons_sizer
->
Add
(
ok
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
buttons_sizer
->
Add
(
cancel
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
buttons_sizer
->
Add
(
cancel
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
}
}
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
,
wxButton
*
yes
=
new
wxButton
(
buttons_panel
,
OkYes_Event
,
wxU
(
_
(
"Yes"
)
)
);
wxID_YES
,
wxU
(
_
(
"Yes"
)
)
);
wxButton
*
no
=
new
wxButton
(
buttons_panel
,
wxButton
*
no
=
new
wxButton
(
buttons_panel
,
No_Event
,
wxU
(
_
(
"No"
)
)
);
wxID_NO
,
wxU
(
_
(
"No"
)
)
);
wxButton
*
cancel
=
new
wxButton
(
buttons_panel
,
wxButton
*
cancel
=
new
wxButton
(
buttons_panel
,
Cancel_Event
,
wxU
(
_
(
"Cancel"
)
)
);
wxID_CANCEL
,
wxU
(
_
(
"Cancel"
)
)
);
buttons_sizer
->
Add
(
yes
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
buttons_sizer
->
Add
(
yes
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
buttons_sizer
->
Add
(
no
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
buttons_sizer
->
Add
(
no
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
buttons_sizer
->
Add
(
cancel
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
buttons_sizer
->
Add
(
cancel
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_CENTER
,
5
);
...
@@ -183,7 +181,7 @@ void InteractionDialog::Render()
...
@@ -183,7 +181,7 @@ void InteractionDialog::Render()
NoShow_Event
,
wxU
(
_
(
"Don't show"
)
)
);
NoShow_Event
,
wxU
(
_
(
"Don't show"
)
)
);
noshow
->
SetValue
(
b_noshow
);
noshow
->
SetValue
(
b_noshow
);
wxButton
*
clear
=
new
wxButton
(
buttons_panel
,
wxButton
*
clear
=
new
wxButton
(
buttons_panel
,
Clear_Event
,
wxU
(
_
(
"Clear"
)
)
);
wxID_CLEAR
,
wxU
(
_
(
"Clear"
)
)
);
buttons_sizer
->
Add
(
noshow
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_LEFT
,
5
);
buttons_sizer
->
Add
(
noshow
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_LEFT
,
5
);
buttons_sizer
->
Add
(
0
,
0
,
1
);
buttons_sizer
->
Add
(
0
,
0
,
1
);
buttons_sizer
->
Add
(
clear
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_RIGHT
,
5
);
buttons_sizer
->
Add
(
clear
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_RIGHT
,
5
);
...
...
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