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
f4ea890c
Commit
f4ea890c
authored
Nov 22, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eyetv: functional GUI panel, replaced Carbon style AppleScript with NSAppleScript
parent
59f74cc4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
210 additions
and
178 deletions
+210
-178
modules/gui/macosx/eyetv.h
modules/gui/macosx/eyetv.h
+1
-2
modules/gui/macosx/eyetv.m
modules/gui/macosx/eyetv.m
+186
-166
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+23
-10
No files found.
modules/gui/macosx/eyetv.h
View file @
f4ea890c
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
-
(
void
)
launchEyeTV
;
-
(
void
)
launchEyeTV
;
-
(
void
)
switchChannelUp
:(
BOOL
)
b_yesOrNo
;
-
(
void
)
switchChannelUp
:(
BOOL
)
b_yesOrNo
;
-
(
void
)
selectChannel
:(
int
)
theChannelNum
;
-
(
void
)
selectChannel
:(
int
)
theChannelNum
;
-
(
int
)
getNumberOfChannels
;
-
(
NSEnumerator
*
)
getChannels
;
-
(
NSString
*
)
getNameOfChannel
:(
int
)
theChannelNum
;
@end
@end
modules/gui/macosx/eyetv.m
View file @
f4ea890c
This diff is collapsed.
Click to expand it.
modules/gui/macosx/open.m
View file @
f4ea890c
...
@@ -804,7 +804,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
...
@@ -804,7 +804,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
[[[
VLCMain
sharedInstance
]
getEyeTVController
]
switchChannelUp
:
NO
];
[[[
VLCMain
sharedInstance
]
getEyeTVController
]
switchChannelUp
:
NO
];
else
if
(
sender
==
o_eyetv_channels_pop
)
else
if
(
sender
==
o_eyetv_channels_pop
)
[[[
VLCMain
sharedInstance
]
getEyeTVController
]
selectChannel
:
[[[
VLCMain
sharedInstance
]
getEyeTVController
]
selectChannel
:
[
sender
indexOfSelectedItem
]];
[
[
sender
selectedItem
]
tag
]];
else
else
msg_Err
(
VLCIntf
,
"eyetvSwitchChannel sent by unknown object"
);
msg_Err
(
VLCIntf
,
"eyetvSwitchChannel sent by unknown object"
);
}
}
...
@@ -856,16 +856,29 @@ static VLCOpen *_o_sharedMainInstance = nil;
...
@@ -856,16 +856,29 @@ static VLCOpen *_o_sharedMainInstance = nil;
[
o_eyetv_chn_status_txt
setHidden
:
NO
];
[
o_eyetv_chn_status_txt
setHidden
:
NO
];
/* retrieve info */
/* retrieve info */
int
x
=
0
;
NSEnumerator
*
channels
=
[[[
VLCMain
sharedInstance
]
getEyeTVController
]
getChannels
];
int
channelCount
=
(
[[[
VLCMain
sharedInstance
]
getEyeTVController
]
getNumberOfChannels
]
+
1
);
int
x
=
-
2
;
while
(
x
!=
channelCount
)
[[[
o_eyetv_channels_pop
menu
]
addItemWithTitle
:
_NS
(
"Composite input"
)
{
action:
nil
/* we have to add items this way, because we accept duplicates
keyEquivalent:
@""
]
setTag
:
x
++
];
* additionally, we save a bit of time */
[[[
o_eyetv_channels_pop
menu
]
addItemWithTitle
:
_NS
(
"S-Video input"
)
[[
o_eyetv_channels_pop
menu
]
addItemWithTitle
:
[[[
VLCMain
sharedInstance
]
getEyeTVController
]
getNameOfChannel
:
x
]
action:
nil
action:
nil
keyEquivalent:
@""
];
keyEquivalent:
@""
]
setTag
:
x
++
];
x
+=
1
;
if
(
channels
)
{
NSString
*
channel
;
[[[
o_eyetv_channels_pop
menu
]
addItemWithTitle
:
_NS
(
"Tuner"
)
action:
nil
keyEquivalent:
@""
]
setTag
:
x
++
];
[[
o_eyetv_channels_pop
menu
]
addItem
:
[
NSMenuItem
separatorItem
]];
while
(
channel
=
[
channels
nextObject
]
)
{
/* we have to add items this way, because we accept duplicates
* additionally, we save a bit of time */
[[[
o_eyetv_channels_pop
menu
]
addItemWithTitle
:
channel
action:
nil
keyEquivalent:
@""
]
setTag
:
x
++
];
}
}
}
/* clean up GUI */
/* clean up GUI */
...
...
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