Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
d073ae07
Commit
d073ae07
authored
Nov 23, 2002
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* enhanced BeOS preferences window (post-processing, brightness,
contrast, hue and saturation are adjustable)
parent
434b2322
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
170 additions
and
84 deletions
+170
-84
modules/gui/beos/InterfaceWindow.cpp
modules/gui/beos/InterfaceWindow.cpp
+10
-2
modules/gui/beos/PreferencesWindow.cpp
modules/gui/beos/PreferencesWindow.cpp
+139
-72
modules/gui/beos/PreferencesWindow.h
modules/gui/beos/PreferencesWindow.h
+21
-10
No files found.
modules/gui/beos/InterfaceWindow.cpp
View file @
d073ae07
...
...
@@ -2,7 +2,7 @@
* InterfaceWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: InterfaceWindow.cpp,v 1.
7 2002/10/30 06:12:27
titer Exp $
* $Id: InterfaceWindow.cpp,v 1.
8 2002/11/23 15:00:54
titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -77,7 +77,15 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char *name,
p_playlist
,
this
,
p_intf
);
fPreferencesWindow
=
new
PreferencesWindow
(
BRect
(
100
,
400
,
500
,
595
),
BScreen
*
p_screen
=
new
BScreen
();
BRect
screen_rect
=
p_screen
->
Frame
();
delete
p_screen
;
BRect
window_rect
;
window_rect
.
Set
(
(
screen_rect
.
right
-
PREFS_WINDOW_WIDTH
)
/
2
,
(
screen_rect
.
bottom
-
PREFS_WINDOW_HEIGHT
)
/
2
,
(
screen_rect
.
right
+
PREFS_WINDOW_WIDTH
)
/
2
,
(
screen_rect
.
bottom
+
PREFS_WINDOW_HEIGHT
)
/
2
);
fPreferencesWindow
=
new
PreferencesWindow
(
window_rect
,
"Preferences"
,
p_intf
);
...
...
modules/gui/beos/PreferencesWindow.cpp
View file @
d073ae07
This diff is collapsed.
Click to expand it.
modules/gui/beos/PreferencesWindow.h
View file @
d073ae07
...
...
@@ -2,7 +2,7 @@
* PreferencesWindow.h
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.h,v 1.
1 2002/10/28 17:18:18
titer Exp $
* $Id: PreferencesWindow.h,v 1.
2 2002/11/23 15:00:54
titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -26,9 +26,13 @@
#include <Window.h>
#define PREFS_OK 'prok'
#define PREFS_CANCEL 'prca'
#define SLIDER_UPDATE 'slup'
#define PREFS_WINDOW_WIDTH 400
#define PREFS_WINDOW_HEIGHT 280
#define PREFS_OK 'prok'
#define PREFS_CANCEL 'prca'
#define PREFS_DEFAULTS 'prde'
#define SLIDER_UPDATE 'slup'
class
PreferencesWindow
:
public
BWindow
{
...
...
@@ -37,19 +41,26 @@ class PreferencesWindow : public BWindow
const
char
*
name
,
intf_thread_t
*
p_interface
);
virtual
~
PreferencesWindow
();
virtual
bool
QuitRequested
();
virtual
void
MessageReceived
(
BMessage
*
message
);
virtual
void
FrameResized
(
float
width
,
float
height
);
void
ReallyQuit
();
private:
void
CancelChange
s
();
void
SetDefault
s
();
void
ApplyChanges
();
intf_thread_t
*
p_intf
;
BView
*
p_preferences_view
;
BView
*
p_prefs_view
;
BTabView
*
p_tabview
;
BView
*
p_ffmpeg_view
;
BView
*
p_adjust_view
;
BTab
*
p_ffmpeg_tab
;
BTab
*
p_adjust_tab
;
BSlider
*
p_pp_slider
;
BSlider
*
p_lum_slider
;
BSlider
*
p_contrast_slider
;
BSlider
*
p_brightness_slider
;
BSlider
*
p_hue_slider
;
BSlider
*
p_saturation_slider
;
BStringView
*
p_restart_string
;
intf_thread_t
*
p_intf
;
};
#endif // BEOS_PREFERENCES_WINDOW_H
...
...
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