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
765454f1
Commit
765454f1
authored
May 20, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/gui/beos/PreferencesWindow.* : cleaning
parent
d4667ed2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
27 deletions
+13
-27
modules/gui/beos/PreferencesWindow.cpp
modules/gui/beos/PreferencesWindow.cpp
+12
-25
modules/gui/beos/PreferencesWindow.h
modules/gui/beos/PreferencesWindow.h
+1
-2
No files found.
modules/gui/beos/PreferencesWindow.cpp
View file @
765454f1
...
...
@@ -2,7 +2,7 @@
* PreferencesWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.cpp,v 1.2
2 2003/05/17 18:30:41
titer Exp $
* $Id: PreferencesWindow.cpp,v 1.2
3 2003/05/20 11:44:18
titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -503,13 +503,11 @@ BView * PreferencesWindow::BuildConfigView( module_config_t ** pp_item,
rect
=
configView
->
Bounds
();
rect
.
InsetBy
(
10
,
10
);
rect
.
bottom
=
rect
.
top
+
TEXT_HEIGHT
;
ConfigTextControl
*
textControl
;
ConfigCheckBox
*
checkBox
;
ConfigMenuField
*
menuField
;
BPopUpMenu
*
popUp
;
bool
firstItem
=
true
;
bool
categoryHit
=
false
;
do
{
...
...
@@ -519,13 +517,9 @@ BView * PreferencesWindow::BuildConfigView( module_config_t ** pp_item,
case
CONFIG_ITEM_FILE
:
case
CONFIG_ITEM_MODULE
:
case
CONFIG_ITEM_DIRECTORY
:
if
(
!
firstItem
)
rect
.
OffsetBy
(
0
,
25
);
else
firstItem
=
false
;
if
(
(
*
pp_item
)
->
ppsz_list
&&
(
*
pp_item
)
->
ppsz_list
[
0
]
)
{
rect
.
bottom
=
rect
.
top
+
20
;
popUp
=
new
BPopUpMenu
(
""
);
menuField
=
new
ConfigMenuField
(
rect
,
(
*
pp_item
)
->
psz_text
,
popUp
,
(
*
pp_item
)
->
psz_name
);
...
...
@@ -536,35 +530,32 @@ BView * PreferencesWindow::BuildConfigView( module_config_t ** pp_item,
popUp
->
AddItem
(
menuItem
);
}
configView
->
AddChild
(
menuField
);
rect
.
top
=
rect
.
bottom
+
10
;
}
else
{
rect
.
bottom
=
rect
.
top
+
20
;
textControl
=
new
ConfigTextControl
(
rect
,
(
*
pp_item
)
->
psz_text
,
CONFIG_ITEM_STRING
,
(
*
pp_item
)
->
psz_name
);
configView
->
AddChild
(
textControl
);
rect
.
top
=
rect
.
bottom
+
10
;
}
break
;
case
CONFIG_ITEM_INTEGER
:
if
(
!
firstItem
)
rect
.
OffsetBy
(
0
,
25
);
else
firstItem
=
false
;
rect
.
bottom
=
rect
.
top
+
20
;
textControl
=
new
ConfigTextControl
(
rect
,
(
*
pp_item
)
->
psz_text
,
CONFIG_ITEM_INTEGER
,
(
*
pp_item
)
->
psz_name
);
configView
->
AddChild
(
textControl
);
rect
.
top
=
rect
.
bottom
+
10
;
break
;
case
CONFIG_ITEM_FLOAT
:
if
(
!
firstItem
)
rect
.
OffsetBy
(
0
,
25
);
else
firstItem
=
false
;
rect
.
bottom
=
rect
.
top
+
20
;
textControl
=
new
ConfigTextControl
(
rect
,
(
*
pp_item
)
->
psz_text
,
CONFIG_ITEM_FLOAT
,
(
*
pp_item
)
->
psz_name
);
configView
->
AddChild
(
textControl
);
rect
.
top
=
rect
.
bottom
+
10
;
break
;
case
CONFIG_ITEM_BOOL
:
...
...
@@ -572,14 +563,11 @@ BView * PreferencesWindow::BuildConfigView( module_config_t ** pp_item,
/* Don't show this one, the interface doesn't handle it anyway */
break
;
if
(
!
firstItem
)
rect
.
OffsetBy
(
0
,
25
);
else
firstItem
=
false
;
rect
.
bottom
=
rect
.
top
+
20
;
checkBox
=
new
ConfigCheckBox
(
rect
,
(
*
pp_item
)
->
psz_text
,
(
*
pp_item
)
->
psz_name
);
configView
->
AddChild
(
checkBox
);
rect
.
top
=
rect
.
bottom
+
10
;
break
;
case
CONFIG_HINT_CATEGORY
:
...
...
@@ -592,8 +580,7 @@ BView * PreferencesWindow::BuildConfigView( module_config_t ** pp_item,
(
*
pp_item
)
++
);
/* Adjust the configView size */
rect
.
bottom
+=
10
;
configView
->
ResizeTo
(
configView
->
Bounds
().
Width
(),
rect
.
bottom
);
configView
->
ResizeTo
(
configView
->
Bounds
().
Width
(),
rect
.
top
);
return
configView
;
}
...
...
modules/gui/beos/PreferencesWindow.h
View file @
765454f1
...
...
@@ -2,7 +2,7 @@
* PreferencesWindow.h
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.h,v 1.1
5 2003/05/17 18:30:41
titer Exp $
* $Id: PreferencesWindow.h,v 1.1
6 2003/05/20 11:44:18
titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -32,7 +32,6 @@
#define PREFS_DEFAULTS 'prde'
#define PREFS_APPLY 'prap'
#define PREFS_SAVE 'prsa'
#define TEXT_HEIGHT 16
class
StringItemWithView
:
public
BStringItem
{
...
...
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