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
8cc36e70
Commit
8cc36e70
authored
Jan 14, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now you can save preferences.
parent
2fc25077
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
modules/gui/beos/PreferencesWindow.cpp
modules/gui/beos/PreferencesWindow.cpp
+13
-1
modules/gui/beos/PreferencesWindow.h
modules/gui/beos/PreferencesWindow.h
+2
-2
No files found.
modules/gui/beos/PreferencesWindow.cpp
View file @
8cc36e70
...
...
@@ -2,7 +2,7 @@
* PreferencesWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.cpp,v 1.
5 2003/01/11 20:42:47
titer Exp $
* $Id: PreferencesWindow.cpp,v 1.
6 2003/01/14 16:00:49
titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -82,6 +82,7 @@ PreferencesWindow::PreferencesWindow( BRect frame, const char* name,
fPpSlider
->
SetHashMarks
(
B_HASH_MARKS_BOTTOM
);
fPpSlider
->
SetHashMarkCount
(
7
);
fPpSlider
->
SetLimitLabels
(
"None"
,
"Maximum"
);
fPpSlider
->
SetValue
(
config_GetInt
(
p_intf
,
"ffmpeg-pp-q"
)
);
fFfmpegView
->
AddChild
(
fPpSlider
);
...
...
@@ -138,6 +139,10 @@ PreferencesWindow::PreferencesWindow( BRect frame, const char* name,
rect
.
left
=
rect
.
right
-
80
;
button
=
new
BButton
(
rect
,
NULL
,
"OK"
,
new
BMessage
(
PREFS_OK
)
);
fPrefsView
->
AddChild
(
button
);
rect
.
OffsetBy
(
-
90
,
0
);
button
=
new
BButton
(
rect
,
NULL
,
"Save"
,
new
BMessage
(
PREFS_SAVE
)
);
fPrefsView
->
AddChild
(
button
);
rect
.
OffsetBy
(
-
90
,
0
);
button
=
new
BButton
(
rect
,
NULL
,
"Defaults"
,
new
BMessage
(
PREFS_DEFAULTS
)
);
...
...
@@ -173,6 +178,13 @@ void PreferencesWindow::MessageReceived( BMessage * p_message )
ApplyChanges
();
break
;
}
case
PREFS_SAVE
:
{
config_SaveConfigFile
(
p_intf
,
"main"
);
config_SaveConfigFile
(
p_intf
,
"adjust"
);
config_SaveConfigFile
(
p_intf
,
"ffmpeg"
);
break
;
}
case
PREFS_OK
:
{
Hide
();
...
...
modules/gui/beos/PreferencesWindow.h
View file @
8cc36e70
...
...
@@ -2,7 +2,7 @@
* PreferencesWindow.h
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.h,v 1.
3 2002/11/26 01:06:08
titer Exp $
* $Id: PreferencesWindow.h,v 1.
4 2003/01/14 16:00:49
titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -30,7 +30,7 @@
#define PREFS_WINDOW_HEIGHT 280
#define PREFS_OK 'prok'
#define PREFS_
CANCEL 'prc
a'
#define PREFS_
SAVE 'prs
a'
#define PREFS_DEFAULTS 'prde'
#define SLIDER_UPDATE 'slup'
...
...
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