Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
7f4508b3
Commit
7f4508b3
authored
Apr 11, 2005
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beos/PreferencesWindow*: fixed widgets
parent
31892994
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
248 additions
and
101 deletions
+248
-101
modules/gui/beos/PreferencesWindow.cpp
modules/gui/beos/PreferencesWindow.cpp
+225
-86
modules/gui/beos/PreferencesWindow.h
modules/gui/beos/PreferencesWindow.h
+23
-15
No files found.
modules/gui/beos/PreferencesWindow.cpp
View file @
7f4508b3
This diff is collapsed.
Click to expand it.
modules/gui/beos/PreferencesWindow.h
View file @
7f4508b3
...
...
@@ -27,7 +27,7 @@
#include <InterfaceKit.h>
#define PREFS_WINDOW_WIDTH 700
#define PREFS_WINDOW_HEIGHT
6
00
#define PREFS_WINDOW_HEIGHT
4
00
#define PREFS_ITEM_SELECTED 'pris'
#define PREFS_DEFAULTS 'prde'
#define PREFS_APPLY 'prap'
...
...
@@ -41,19 +41,28 @@ class VTextView : public BTextView
void
FrameResized
(
float
width
,
float
height
);
};
class
VTextControl
:
public
BTextControl
{
public:
VTextControl
(
BRect
frame
,
const
char
*
name
,
const
char
*
label
,
const
char
*
text
,
BMessage
*
message
,
uint32
resizingMode
);
void
FrameResized
(
float
width
,
float
height
);
};
class
ConfigWidget
:
public
BView
{
public:
ConfigWidget
(
intf_thread_t
*
p_intf
,
BRect
rect
,
module_config_t
*
p_item
);
bool
InitCheck
()
{
return
fInitOK
;
}
void
Apply
(
bool
doIt
);
private:
intf_thread_t
*
p_intf
;
int
fType
;
BTextControl
*
fTextControl
;
bool
fInitOK
;
VTextControl
*
fTextControl
;
BCheckBox
*
fCheckBox
;
BPopUpMenu
*
fPopUpMenu
;
BMenuField
*
fMenuField
;
...
...
@@ -73,8 +82,9 @@ class ConfigItem : public BStringItem
~
ConfigItem
();
int
ObjectId
()
{
return
fObjectId
;
}
BBox
*
Box
()
{
return
fBox
;
}
void
UpdateScrollBar
();
void
ResetScroll
();
void
Apply
(
bool
doIt
);
void
Pulse
();
private:
intf_thread_t
*
p_intf
;
...
...
@@ -84,10 +94,10 @@ class ConfigItem : public BStringItem
int
fType
;
char
*
fHelp
;
BBox
*
fBox
;
BScrollView
*
fScroll
;
BView
*
fView
;
BBox
*
fBox
;
VTextView
*
fTextView
;
BScrollView
*
fScroll
;
BView
*
fView
;
};
class
PreferencesWindow
:
public
BWindow
...
...
@@ -103,7 +113,6 @@ class PreferencesWindow : public BWindow
virtual
void
FrameResized
(
float
,
float
);
void
Update
();
void
UpdateScrollBar
();
void
ApplyChanges
(
bool
doIt
);
void
SaveChanges
();
...
...
@@ -114,13 +123,12 @@ class PreferencesWindow : public BWindow
module_config_t
**
pp_item
,
bool
stop_after_category
);
BView
*
fPrefsView
;
BOutlineListView
*
fOutline
;
BView
*
fDummyView
;
BScrollView
*
fConfigScroll
;
ConfigItem
*
fCurrent
;
BView
*
fPrefsView
;
BOutlineListView
*
fOutline
;
BView
*
fDummyView
;
ConfigItem
*
fCurrent
;
intf_thread_t
*
p_intf
;
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