Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
8f019efc
Commit
8f019efc
authored
Jul 09, 2003
by
Mohammed Adnène Trojette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a "clear" button now allows to clear the messages' text window
parent
f765b423
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
modules/gui/wxwindows/messages.cpp
modules/gui/wxwindows/messages.cpp
+12
-1
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+2
-1
No files found.
modules/gui/wxwindows/messages.cpp
View file @
8f019efc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* playlist.cpp : wxWindows plugin for vlc
* playlist.cpp : wxWindows plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* Copyright (C) 2000-2001 VideoLAN
* $Id: messages.cpp,v 1.
7 2003/06/05 21:22:28 gbazi
n Exp $
* $Id: messages.cpp,v 1.
8 2003/07/09 09:30:23 ad
n Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
*
*
...
@@ -66,6 +66,7 @@ BEGIN_EVENT_TABLE(Messages, wxFrame)
...
@@ -66,6 +66,7 @@ BEGIN_EVENT_TABLE(Messages, wxFrame)
/* Button events */
/* Button events */
EVT_BUTTON
(
wxID_OK
,
Messages
::
OnClose
)
EVT_BUTTON
(
wxID_OK
,
Messages
::
OnClose
)
EVT_CHECKBOX
(
Verbose_Event
,
Messages
::
OnVerbose
)
EVT_CHECKBOX
(
Verbose_Event
,
Messages
::
OnVerbose
)
EVT_BUTTON
(
wxID_CLEAR
,
Messages
::
OnClear
)
/* Special events : we don't want to destroy the window when the user
/* Special events : we don't want to destroy the window when the user
* clicks on (X) */
* clicks on (X) */
...
@@ -101,6 +102,10 @@ Messages::Messages( intf_thread_t *_p_intf, wxWindow *p_parent ):
...
@@ -101,6 +102,10 @@ Messages::Messages( intf_thread_t *_p_intf, wxWindow *p_parent ):
wxButton
*
ok_button
=
new
wxButton
(
messages_panel
,
wxID_OK
,
wxU
(
_
(
"OK"
)));
wxButton
*
ok_button
=
new
wxButton
(
messages_panel
,
wxID_OK
,
wxU
(
_
(
"OK"
)));
ok_button
->
SetDefault
();
ok_button
->
SetDefault
();
/* Create the Clear button */
wxButton
*
clear_button
=
new
wxButton
(
messages_panel
,
wxID_CLEAR
,
wxU
(
_
(
"Clear"
)));
clear_button
->
SetDefault
();
/* Create the Verbose checkbox */
/* Create the Verbose checkbox */
wxCheckBox
*
verbose_checkbox
=
wxCheckBox
*
verbose_checkbox
=
new
wxCheckBox
(
messages_panel
,
Verbose_Event
,
wxU
(
_
(
"Verbose"
))
);
new
wxCheckBox
(
messages_panel
,
Verbose_Event
,
wxU
(
_
(
"Verbose"
))
);
...
@@ -108,6 +113,7 @@ Messages::Messages( intf_thread_t *_p_intf, wxWindow *p_parent ):
...
@@ -108,6 +113,7 @@ Messages::Messages( intf_thread_t *_p_intf, wxWindow *p_parent ):
/* Place everything in sizers */
/* Place everything in sizers */
wxBoxSizer
*
buttons_sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxBoxSizer
*
buttons_sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
buttons_sizer
->
Add
(
ok_button
,
0
,
wxEXPAND
|
wxALIGN_LEFT
|
wxALL
,
5
);
buttons_sizer
->
Add
(
ok_button
,
0
,
wxEXPAND
|
wxALIGN_LEFT
|
wxALL
,
5
);
buttons_sizer
->
Add
(
clear_button
,
0
,
wxEXPAND
|
wxALIGN_LEFT
|
wxALL
,
5
);
buttons_sizer
->
Add
(
new
wxPanel
(
this
,
-
1
),
1
,
wxALL
,
5
);
buttons_sizer
->
Add
(
new
wxPanel
(
this
,
-
1
),
1
,
wxALL
,
5
);
buttons_sizer
->
Add
(
verbose_checkbox
,
0
,
wxEXPAND
|
wxALIGN_RIGHT
|
wxALL
,
5
);
buttons_sizer
->
Add
(
verbose_checkbox
,
0
,
wxEXPAND
|
wxALIGN_RIGHT
|
wxALL
,
5
);
buttons_sizer
->
Layout
();
buttons_sizer
->
Layout
();
...
@@ -189,6 +195,11 @@ void Messages::OnClose( wxCommandEvent& WXUNUSED(event) )
...
@@ -189,6 +195,11 @@ void Messages::OnClose( wxCommandEvent& WXUNUSED(event) )
Hide
();
Hide
();
}
}
void
Messages
::
OnClear
(
wxCommandEvent
&
WXUNUSED
(
event
)
)
{
(
*
textctrl
).
Clear
();
}
void
Messages
::
OnVerbose
(
wxCommandEvent
&
event
)
void
Messages
::
OnVerbose
(
wxCommandEvent
&
event
)
{
{
b_verbose
=
event
.
IsChecked
();
b_verbose
=
event
.
IsChecked
();
...
...
modules/gui/wxwindows/wxwindows.h
View file @
8f019efc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* wxwindows.h: private wxWindows interface description
* wxwindows.h: private wxWindows interface description
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: wxwindows.h,v 1.3
8 2003/07/06 16:13:11 gbazi
n Exp $
* $Id: wxwindows.h,v 1.3
9 2003/07/09 09:30:23 ad
n Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -433,6 +433,7 @@ private:
...
@@ -433,6 +433,7 @@ private:
/* Event handlers (these functions should _not_ be virtual) */
/* Event handlers (these functions should _not_ be virtual) */
void
OnClose
(
wxCommandEvent
&
event
);
void
OnClose
(
wxCommandEvent
&
event
);
void
OnVerbose
(
wxCommandEvent
&
event
);
void
OnVerbose
(
wxCommandEvent
&
event
);
void
OnClear
(
wxCommandEvent
&
event
);
DECLARE_EVENT_TABLE
();
DECLARE_EVENT_TABLE
();
...
...
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