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
6a46b2e3
Commit
6a46b2e3
authored
Apr 10, 2005
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beos/*: first pass at fixing the BeOS prefs
parent
41c5188d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
361 additions
and
517 deletions
+361
-517
modules/gui/beos/BeOS.cpp
modules/gui/beos/BeOS.cpp
+1
-0
modules/gui/beos/PreferencesWindow.cpp
modules/gui/beos/PreferencesWindow.cpp
+317
-440
modules/gui/beos/PreferencesWindow.h
modules/gui/beos/PreferencesWindow.h
+43
-77
No files found.
modules/gui/beos/BeOS.cpp
View file @
6a46b2e3
...
...
@@ -50,6 +50,7 @@ vlc_module_begin();
set_category
(
CAT_INTERFACE
);
set_subcategory
(
SUBCAT_INTERFACE_GENERAL
);
add_bool
(
"beos-dvdmenus"
,
0
,
NULL
,
_
(
"Use DVD Menus"
),
""
,
VLC_TRUE
);
set_shortname
(
"BeOS"
);
set_description
(
_
(
"BeOS standard API interface"
)
);
set_capability
(
"interface"
,
100
);
set_callbacks
(
E_
(
OpenIntf
),
E_
(
CloseIntf
)
);
...
...
modules/gui/beos/PreferencesWindow.cpp
View file @
6a46b2e3
This diff is collapsed.
Click to expand it.
modules/gui/beos/PreferencesWindow.h
View file @
6a46b2e3
...
...
@@ -4,7 +4,7 @@
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id$
*
* Authors: Eric Petit <titer@
videolan
.org>
* Authors: Eric Petit <titer@
m0k
.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -27,101 +27,67 @@
#include <InterfaceKit.h>
#define PREFS_WINDOW_WIDTH 700
#define PREFS_WINDOW_HEIGHT
4
00
#define PREFS_WINDOW_HEIGHT
6
00
#define PREFS_ITEM_SELECTED 'pris'
#define PREFS_DEFAULTS 'prde'
#define PREFS_APPLY 'prap'
#define PREFS_SAVE 'prsa'
class
StringItemWithView
:
public
BStringItem
{
public:
StringItemWithView
(
const
char
*
text
)
:
BStringItem
(
text
)
{
fConfigBox
=
NULL
;
fConfigScroll
=
NULL
;
fConfigView
=
NULL
;
fText
=
strdup
(
text
);
}
/* Here we store the config BBox associated to this module */
BBox
*
fConfigBox
;
BScrollView
*
fConfigScroll
;
BView
*
fConfigView
;
char
*
fText
;
};
class
ConfigWidget
:
public
BView
{
public:
ConfigWidget
(
BRect
rect
,
int
type
,
char
*
configName
);
virtual
void
Apply
(
intf_thread_t
*
p_intf
,
bool
doIt
)
=
0
;
protected:
int
fConfigType
;
char
*
fConfigName
;
};
class
ConfigTextControl
:
public
ConfigWidget
{
public:
ConfigTextControl
(
BRect
rect
,
int
type
,
char
*
label
,
char
*
configName
);
void
Apply
(
intf_thread_t
*
p_intf
,
bool
doIt
);
private:
BTextControl
*
fTextControl
;
};
class
ConfigCheckBox
:
public
ConfigWidget
class
VTextView
:
public
BTextView
{
public:
ConfigCheckBox
(
BRect
rect
,
int
type
,
char
*
label
,
char
*
configName
);
void
Apply
(
intf_thread_t
*
p_intf
,
bool
doIt
);
private:
BCheckBox
*
fCheckBox
;
VTextView
(
BRect
frame
,
const
char
*
name
,
uint32
resizingMode
,
uint32
flags
);
void
FrameResized
(
float
width
,
float
height
);
};
class
Config
MenuField
:
public
ConfigWidget
class
Config
Widget
:
public
BView
{
public:
ConfigMenuField
(
BRect
rect
,
int
type
,
char
*
label
,
char
*
configName
,
char
**
list
);
void
Apply
(
intf_thread_t
*
p_intf
,
bool
doIt
);
ConfigWidget
(
intf_thread_t
*
p_intf
,
BRect
rect
,
module_config_t
*
p_item
);
void
Apply
(
bool
doIt
);
private:
BPopUpMenu
*
fPopUpMenu
;
BMenuField
*
fMenuField
;
intf_thread_t
*
p_intf
;
int
fType
;
BTextControl
*
fTextControl
;
BCheckBox
*
fCheckBox
;
BPopUpMenu
*
fPopUpMenu
;
BMenuField
*
fMenuField
;
BSlider
*
fSlider
;
BStringView
*
fStringView
;
BCheckBox
*
fAltCheck
;
BCheckBox
*
fCtrlCheck
;
BCheckBox
*
fShiftCheck
;
};
class
Config
Slider
:
public
ConfigWidget
class
Config
Item
:
public
BStringItem
{
public:
ConfigSlider
(
BRect
rect
,
int
type
,
char
*
label
,
char
*
configName
,
int
min
,
int
max
);
void
Apply
(
intf_thread_t
*
p_intf
,
bool
doIt
);
ConfigItem
(
intf_thread_t
*
p_intf
,
char
*
name
,
bool
subModule
,
int
objectId
,
int
type
,
char
*
help
);
~
ConfigItem
();
int
ObjectId
()
{
return
fObjectId
;
}
BBox
*
Box
()
{
return
fBox
;
}
void
Apply
(
bool
doIt
);
void
Pulse
();
private:
BSlider
*
fSlider
;
};
intf_thread_t
*
p_intf
;
class
ConfigKey
:
public
ConfigWidget
{
public:
ConfigKey
(
BRect
rect
,
int
type
,
char
*
label
,
char
*
configName
);
void
Apply
(
intf_thread_t
*
p_intf
,
bool
doIt
);
bool
fSubModule
;
int
fObjectId
;
int
fType
;
char
*
fHelp
;
private:
BStringView
*
fStringView
;
BCheckBox
*
fAltCheck
;
BCheckBox
*
fCtrlCheck
;
BCheckBox
*
fShiftCheck
;
BPopUpMenu
*
fPopUpMenu
;
BMenuField
*
fMenuField
;
BBox
*
fBox
;
BScrollView
*
fScroll
;
BView
*
fView
;
VTextView
*
fTextView
;
};
class
PreferencesWindow
:
public
BWindow
...
...
@@ -144,7 +110,7 @@ class PreferencesWindow : public BWindow
void
ReallyQuit
();
private:
void
BuildConfigView
(
StringItemWithView
*
stringItem
,
void
BuildConfigView
(
ConfigItem
*
stringItem
,
module_config_t
**
pp_item
,
bool
stop_after_category
);
...
...
@@ -152,7 +118,7 @@ class PreferencesWindow : public BWindow
BOutlineListView
*
fOutline
;
BView
*
fDummyView
;
BScrollView
*
fConfigScroll
;
StringItemWithView
*
fCurrent
;
ConfigItem
*
fCurrent
;
intf_thread_t
*
p_intf
;
};
...
...
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