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
598996f2
Commit
598996f2
authored
Aug 24, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: simplify prefs widgets code slightly
parent
41857c81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
18 deletions
+5
-18
extras/package/macosx/vlc.xcodeproj/project.pbxproj
extras/package/macosx/vlc.xcodeproj/project.pbxproj
+1
-1
modules/gui/macosx/prefs_widgets.h
modules/gui/macosx/prefs_widgets.h
+2
-2
modules/gui/macosx/prefs_widgets.m
modules/gui/macosx/prefs_widgets.m
+2
-15
No files found.
extras/package/macosx/vlc.xcodeproj/project.pbxproj
View file @
598996f2
...
...
@@ -429,7 +429,7 @@
8E6BC6F6041643860059A3A7
/* applescript.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
applescript.h
;
path
=
../../../modules/gui/macosx/applescript.h
;
sourceTree
=
SOURCE_ROOT
;
};
8E6BC6F7041643860059A3A7
/* applescript.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
applescript.m
;
path
=
../../../modules/gui/macosx/applescript.m
;
sourceTree
=
SOURCE_ROOT
;
};
8E6BC6FA041684EC0059A3A7
/* controls.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
controls.h
;
path
=
../../../modules/gui/macosx/controls.h
;
sourceTree
=
SOURCE_ROOT
;
};
8E9CA1A306D7DEE800B7186C
/* prefs_widgets.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
5
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
prefs_widgets.h
;
path
=
../../../modules/gui/macosx/prefs_widgets.h
;
sourceTree
=
SOURCE_ROOT
;
};
8E9CA1A306D7DEE800B7186C
/* prefs_widgets.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
prefs_widgets.h
;
path
=
../../../modules/gui/macosx/prefs_widgets.h
;
sourceTree
=
SOURCE_ROOT
;
};
8E9CA1A406D7DEE800B7186C
/* prefs_widgets.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
prefs_widgets.m
;
path
=
../../../modules/gui/macosx/prefs_widgets.m
;
sourceTree
=
SOURCE_ROOT
;
};
8EBF3FA303F13FFB0059A3A7
/* vlc.scriptSuite */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text
;
name
=
vlc.scriptSuite
;
path
=
Resources/vlc.scriptSuite
;
sourceTree
=
SOURCE_ROOT
;
};
8EBF3FA503F140960059A3A7
/* vlc.scriptTerminology */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.xml
;
name
=
vlc.scriptTerminology
;
path
=
Resources/vlc.scriptTerminology
;
sourceTree
=
SOURCE_ROOT
;
};
...
...
modules/gui/macosx/prefs_widgets.h
View file @
598996f2
...
...
@@ -5,7 +5,7 @@
* $Id$
*
* Authors: Derk-Jan Hartman <hartman at videolan.org>
* Felix Paul Khne <fkuehne at videolan.org>
* Felix Paul K
ü
hne <fkuehne at videolan.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
...
...
@@ -42,7 +42,7 @@ static NSMenu *o_keys_menu = nil;
@property
(
readonly
)
NSString
*
name
;
@property
(
readonly
)
int
type
;
@property
(
readonly
)
int
viewType
;
@property
(
readonly
)
BOOL
advanced
;
@property
(
readonly
)
bool
advanced
;
@property
(
readonly
)
int
intValue
;
@property
(
readonly
)
float
floatValue
;
@property
(
readonly
)
char
*
stringValue
;
...
...
modules/gui/macosx/prefs_widgets.m
View file @
598996f2
...
...
@@ -400,6 +400,8 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
}
@implementation
VLCConfigControl
@synthesize
type
=
i_type
,
viewType
=
i_view_type
,
advanced
=
b_advanced
;
-
(
id
)
initWithFrame
:
(
NSRect
)
frame
{
return
[
self
initWithFrame
:
frame
...
...
@@ -884,21 +886,6 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
return
_NS
(
psz_name
);
}
-
(
int
)
type
{
return
i_type
;
}
-
(
int
)
viewType
{
return
i_view_type
;
}
-
(
BOOL
)
advanced
{
return
b_advanced
;
}
-
(
int
)
intValue
{
return
0
;
...
...
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