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
c858a4ac
Commit
c858a4ac
authored
Feb 05, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a "Close" button to the errors window and fix the "Stop showing errors" string
parent
2252e8d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/gui/wxwidgets/dialogs/interaction.cpp
modules/gui/wxwidgets/dialogs/interaction.cpp
+10
-4
No files found.
modules/gui/wxwidgets/dialogs/interaction.cpp
View file @
c858a4ac
...
@@ -46,6 +46,7 @@ BEGIN_EVENT_TABLE( InteractionDialog, wxDialog)
...
@@ -46,6 +46,7 @@ BEGIN_EVENT_TABLE( InteractionDialog, wxDialog)
EVT_BUTTON
(
wxID_OK
,
InteractionDialog
::
OnOkYes
)
EVT_BUTTON
(
wxID_OK
,
InteractionDialog
::
OnOkYes
)
EVT_BUTTON
(
wxID_YES
,
InteractionDialog
::
OnOkYes
)
EVT_BUTTON
(
wxID_YES
,
InteractionDialog
::
OnOkYes
)
EVT_BUTTON
(
wxID_CANCEL
,
InteractionDialog
::
OnCancel
)
EVT_BUTTON
(
wxID_CANCEL
,
InteractionDialog
::
OnCancel
)
EVT_BUTTON
(
wxID_CLOSE
,
InteractionDialog
::
OnCancel
)
EVT_BUTTON
(
wxID_NO
,
InteractionDialog
::
OnNo
)
EVT_BUTTON
(
wxID_NO
,
InteractionDialog
::
OnNo
)
EVT_BUTTON
(
wxID_CLEAR
,
InteractionDialog
::
OnClear
)
EVT_BUTTON
(
wxID_CLEAR
,
InteractionDialog
::
OnClear
)
EVT_CHECKBOX
(
NoShow_Event
,
InteractionDialog
::
OnNoShow
)
EVT_CHECKBOX
(
NoShow_Event
,
InteractionDialog
::
OnNoShow
)
...
@@ -192,14 +193,19 @@ void InteractionDialog::Render()
...
@@ -192,14 +193,19 @@ void InteractionDialog::Render()
else
if
(
p_dialog
->
i_flags
&
DIALOG_CLEAR_NOSHOW
)
else
if
(
p_dialog
->
i_flags
&
DIALOG_CLEAR_NOSHOW
)
{
{
wxCheckBox
*
noshow
=
new
wxCheckBox
(
buttons_panel
,
wxCheckBox
*
noshow
=
new
wxCheckBox
(
buttons_panel
,
NoShow_Event
,
wxU
(
_
(
"Don't show
"
)
)
);
NoShow_Event
,
wxU
(
_
(
"Don't show further errors
"
)
)
);
noshow
->
SetValue
(
b_noshow
);
noshow
->
SetValue
(
b_noshow
);
wxButton
*
clear
=
new
wxButton
(
buttons_panel
,
wxButton
*
clear
=
new
wxButton
(
buttons_panel
,
wxID_CLEAR
,
wxU
(
_
(
"Clear"
)
)
);
wxID_CLEAR
,
wxU
(
_
(
"Clear"
)
)
);
buttons_sizer
->
Add
(
noshow
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_LEFT
,
5
);
wxButton
*
close
=
new
wxButton
(
buttons_panel
,
wxID_CLOSE
,
wxU
(
_
(
"Close"
)
)
);
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
);
buttons_sizer
->
Add
(
close
,
0
,
wxEXPAND
|
wxRIGHT
|
wxLEFT
|
wxALIGN_RIGHT
,
5
);
}
}
widgets_sizer
->
Layout
();
widgets_sizer
->
Layout
();
widgets_panel
->
SetSizerAndFit
(
widgets_sizer
);
widgets_panel
->
SetSizerAndFit
(
widgets_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