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
900a78ad
Commit
900a78ad
authored
May 25, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: remove incomplete VLM implementation
Do not forward-port
parent
0c78aa4a
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
6 additions
and
419 deletions
+6
-419
extras/package/macosx/Resources/English.lproj/MainMenu.nib/classes.nib
...e/macosx/Resources/English.lproj/MainMenu.nib/classes.nib
+0
-2
extras/package/macosx/Resources/English.lproj/MainMenu.nib/info.nib
...kage/macosx/Resources/English.lproj/MainMenu.nib/info.nib
+6
-6
extras/package/macosx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
...osx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
+0
-0
extras/package/macosx/Resources/English.lproj/VLM.nib/classes.nib
...ackage/macosx/Resources/English.lproj/VLM.nib/classes.nib
+0
-72
extras/package/macosx/Resources/English.lproj/VLM.nib/info.nib
...s/package/macosx/Resources/English.lproj/VLM.nib/info.nib
+0
-19
extras/package/macosx/Resources/English.lproj/VLM.nib/keyedobjects.nib
...e/macosx/Resources/English.lproj/VLM.nib/keyedobjects.nib
+0
-0
modules/gui/macosx/Modules.am
modules/gui/macosx/Modules.am
+0
-2
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+0
-4
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+0
-15
modules/gui/macosx/vlm.h
modules/gui/macosx/vlm.h
+0
-115
modules/gui/macosx/vlm.m
modules/gui/macosx/vlm.m
+0
-184
No files found.
extras/package/macosx/Resources/English.lproj/MainMenu.nib/classes.nib
View file @
900a78ad
...
@@ -175,7 +175,6 @@
...
@@ -175,7 +175,6 @@
showInformationPanel = id;
showInformationPanel = id;
showLicense = id;
showLicense = id;
showMessagesPanel = id;
showMessagesPanel = id;
showVLM = id;
showWizard = id;
showWizard = id;
timeFieldWasClicked = id;
timeFieldWasClicked = id;
timesliderUpdate = id;
timesliderUpdate = id;
...
@@ -345,7 +344,6 @@
...
@@ -345,7 +344,6 @@
"o_timefield" = NSTextField;
"o_timefield" = NSTextField;
"o_timeslider" = NSSlider;
"o_timeslider" = NSSlider;
"o_update" = id;
"o_update" = id;
"o_vlm" = id;
"o_vmi_fullscreen" = NSMenuItem;
"o_vmi_fullscreen" = NSMenuItem;
"o_vmi_mute" = NSMenuItem;
"o_vmi_mute" = NSMenuItem;
"o_vmi_next" = NSMenuItem;
"o_vmi_next" = NSMenuItem;
...
...
extras/package/macosx/Resources/English.lproj/MainMenu.nib/info.nib
View file @
900a78ad
...
@@ -25,15 +25,15 @@
...
@@ -25,15 +25,15 @@
<integer>
4
</integer>
<integer>
4
</integer>
<key>
IBOpenObjects
</key>
<key>
IBOpenObjects
</key>
<array>
<array>
<integer>
3568
</integer>
<integer>
2416
</integer>
<integer>
29
</integer>
<integer>
21
</integer>
<integer>
2197
</integer>
<integer>
2709
</integer>
<integer>
2709
</integer>
<integer>
2197
</integer>
<integer>
21
</integer>
<integer>
29
</integer>
<integer>
2416
</integer>
<integer>
3568
</integer>
</array>
</array>
<key>
IBSystem Version
</key>
<key>
IBSystem Version
</key>
<string>
9
G55
</string>
<string>
9
J61
</string>
<key>
targetFramework
</key>
<key>
targetFramework
</key>
<string>
IBCocoaFramework
</string>
<string>
IBCocoaFramework
</string>
</dict>
</dict>
...
...
extras/package/macosx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
View file @
900a78ad
No preview for this file type
extras/package/macosx/Resources/English.lproj/VLM.nib/classes.nib
deleted
100644 → 0
View file @
0c78aa4a
{
IBClasses = (
{
CLASS = FirstResponder;
LANGUAGE = ObjC;
SUPERCLASS = NSObject;
},
{
CLASS = NSDatePicker;
LANGUAGE = ObjC;
SUPERCLASS = NSControl;
},
{
ACTIONS = {
bcastButtonAction = id;
listDoubleClickAction = id;
schedButtonAction = id;
vodButtonAction = id;
};
CLASS = VLCVLMController;
LANGUAGE = ObjC;
OUTLETS = {
"o_bcast_add_btn" = NSButton;
"o_bcast_box" = NSBox;
"o_bcast_cancel_btn" = NSButton;
"o_bcast_enable_ckb" = NSButton;
"o_bcast_input_btn" = NSButton;
"o_bcast_input_fld" = NSTextField;
"o_bcast_loop_ckb" = NSButton;
"o_bcast_name_fld" = NSTextField;
"o_bcast_output_btn" = NSButton;
"o_bcast_output_fld" = NSTextField;
"o_bcast_panel" = NSPanel;
"o_sched_add_btn" = id;
"o_sched_box" = id;
"o_sched_cancel_btn" = id;
"o_sched_date_datePicker" = NSDatePicker;
"o_sched_date_lbl" = NSTextField;
"o_sched_input_btn" = NSButton;
"o_sched_input_fld" = NSTextField;
"o_sched_input_lbl" = NSTextField;
"o_sched_name_fld" = NSTextField;
"o_sched_name_lbl" = NSTextField;
"o_sched_output_btn" = NSButton;
"o_sched_output_fld" = NSTextField;
"o_sched_output_lbl" = NSTextField;
"o_sched_panel" = NSPanel;
"o_sched_repeatDelay_datePicker" = NSDatePicker;
"o_sched_repeat_fld" = NSTextField;
"o_sched_repeat_lbl" = NSTextField;
"o_sched_time_box" = id;
"o_vlm_list" = NSTableView;
"o_vlm_win" = NSWindow;
"o_vod_add_btn" = NSButton;
"o_vod_box" = id;
"o_vod_cancel_btn" = NSButton;
"o_vod_input_btn" = NSButton;
"o_vod_input_fld" = NSTextField;
"o_vod_input_lbl" = NSTextField;
"o_vod_loop_ckb" = NSButton;
"o_vod_name_fld" = NSTextField;
"o_vod_name_lbl" = NSTextField;
"o_vod_output_btn" = NSButton;
"o_vod_output_fld" = NSTextField;
"o_vod_output_lbl" = NSTextField;
"o_vod_panel" = NSPanel;
};
SUPERCLASS = NSObject;
}
);
IBVersion = 1;
}
\ No newline at end of file
extras/package/macosx/Resources/English.lproj/VLM.nib/info.nib
deleted
100644 → 0
View file @
0c78aa4a
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
IBDocumentLocation
</key>
<string>
609 119 356 240 0 0 1280 778
</string>
<key>
IBFramework Version
</key>
<string>
489.0
</string>
<key>
IBOpenObjects
</key>
<array>
<integer>
5
</integer>
<integer>
106
</integer>
<integer>
65
</integer>
<integer>
30
</integer>
</array>
<key>
IBSystem Version
</key>
<string>
9E17
</string>
</dict>
</plist>
extras/package/macosx/Resources/English.lproj/VLM.nib/keyedobjects.nib
deleted
100644 → 0
View file @
0c78aa4a
File deleted
modules/gui/macosx/Modules.am
View file @
900a78ad
...
@@ -52,7 +52,5 @@ SOURCES_macosx = \
...
@@ -52,7 +52,5 @@ SOURCES_macosx = \
fspanel.h \
fspanel.h \
eyetv.h \
eyetv.h \
eyetv.m \
eyetv.m \
vlm.h \
vlm.m \
$(NULL)
$(NULL)
modules/gui/macosx/intf.h
View file @
900a78ad
...
@@ -102,7 +102,6 @@ struct intf_sys_t
...
@@ -102,7 +102,6 @@ struct intf_sys_t
id
o_wizard
;
/* VLCWizard */
id
o_wizard
;
/* VLCWizard */
id
o_extended
;
/* VLCExtended */
id
o_extended
;
/* VLCExtended */
id
o_bookmarks
;
/* VLCBookmarks */
id
o_bookmarks
;
/* VLCBookmarks */
id
o_vlm
;
/* VLCVLMController */
id
o_embedded_list
;
/* VLCEmbeddedList*/
id
o_embedded_list
;
/* VLCEmbeddedList*/
id
o_coredialogs
;
/* VLCCoreDialogProvider */
id
o_coredialogs
;
/* VLCCoreDialogProvider */
VLCInformation
*
o_info
;
/* VLCInformation */
VLCInformation
*
o_info
;
/* VLCInformation */
...
@@ -119,7 +118,6 @@ struct intf_sys_t
...
@@ -119,7 +118,6 @@ struct intf_sys_t
BOOL
nib_prefs_loaded
;
/* preferences nibfile */
BOOL
nib_prefs_loaded
;
/* preferences nibfile */
BOOL
nib_update_loaded
;
/* update nibfile */
BOOL
nib_update_loaded
;
/* update nibfile */
BOOL
nib_info_loaded
;
/* information panel nibfile */
BOOL
nib_info_loaded
;
/* information panel nibfile */
BOOL
nib_vlm_loaded
;
/* VLM Panel nibfile */
BOOL
nib_coredialogs_loaded
;
/* CoreDialogs nibfile */
BOOL
nib_coredialogs_loaded
;
/* CoreDialogs nibfile */
IBOutlet
VLCControllerWindow
*
o_window
;
/* main window */
IBOutlet
VLCControllerWindow
*
o_window
;
/* main window */
...
@@ -195,7 +193,6 @@ struct intf_sys_t
...
@@ -195,7 +193,6 @@ struct intf_sys_t
IBOutlet
NSMenuItem
*
o_mi_open_recent
;
IBOutlet
NSMenuItem
*
o_mi_open_recent
;
IBOutlet
NSMenuItem
*
o_mi_open_recent_cm
;
IBOutlet
NSMenuItem
*
o_mi_open_recent_cm
;
IBOutlet
NSMenuItem
*
o_mi_open_wizard
;
IBOutlet
NSMenuItem
*
o_mi_open_wizard
;
IBOutlet
NSMenuItem
*
o_mi_open_vlm
;
IBOutlet
NSMenu
*
o_mu_edit
;
IBOutlet
NSMenu
*
o_mu_edit
;
IBOutlet
NSMenuItem
*
o_mi_cut
;
IBOutlet
NSMenuItem
*
o_mi_cut
;
...
@@ -390,7 +387,6 @@ struct intf_sys_t
...
@@ -390,7 +387,6 @@ struct intf_sys_t
-
(
IBAction
)
intfOpenCapture
:(
id
)
sender
;
-
(
IBAction
)
intfOpenCapture
:(
id
)
sender
;
-
(
IBAction
)
showWizard
:(
id
)
sender
;
-
(
IBAction
)
showWizard
:(
id
)
sender
;
-
(
IBAction
)
showVLM
:(
id
)
sender
;
-
(
IBAction
)
showExtended
:(
id
)
sender
;
-
(
IBAction
)
showExtended
:(
id
)
sender
;
-
(
IBAction
)
showBookmarks
:(
id
)
sender
;
-
(
IBAction
)
showBookmarks
:(
id
)
sender
;
...
...
modules/gui/macosx/intf.m
View file @
900a78ad
...
@@ -54,7 +54,6 @@
...
@@ -54,7 +54,6 @@
#import "AppleRemote.h"
#import "AppleRemote.h"
#import "eyetv.h"
#import "eyetv.h"
#import "simple_prefs.h"
#import "simple_prefs.h"
#import "vlm.h"
#import <AddressBook/AddressBook.h>
/* for crashlog send mechanism */
#import <AddressBook/AddressBook.h>
/* for crashlog send mechanism */
#import <IOKit/hidsystem/ev_keymap.h>
/* for the media key support */
#import <IOKit/hidsystem/ev_keymap.h>
/* for the media key support */
...
@@ -324,7 +323,6 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -324,7 +323,6 @@ static VLCMain *_o_sharedMainInstance = nil;
o_prefs
=
nil
;
o_prefs
=
nil
;
o_open
=
[[
VLCOpen
alloc
]
init
];
o_open
=
[[
VLCOpen
alloc
]
init
];
o_wizard
=
[[
VLCWizard
alloc
]
init
];
o_wizard
=
[[
VLCWizard
alloc
]
init
];
o_vlm
=
[[
VLCVLMController
alloc
]
init
];
o_extended
=
nil
;
o_extended
=
nil
;
o_bookmarks
=
[[
VLCBookmarks
alloc
]
init
];
o_bookmarks
=
[[
VLCBookmarks
alloc
]
init
];
o_embedded_list
=
[[
VLCEmbeddedList
alloc
]
init
];
o_embedded_list
=
[[
VLCEmbeddedList
alloc
]
init
];
...
@@ -1420,11 +1418,6 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
...
@@ -1420,11 +1418,6 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
return
nil
;
return
nil
;
}
}
-
(
id
)
vlm
{
return
o_vlm
;
}
-
(
id
)
bookmarks
-
(
id
)
bookmarks
{
{
if
(
o_bookmarks
)
if
(
o_bookmarks
)
...
@@ -2160,14 +2153,6 @@ end:
...
@@ -2160,14 +2153,6 @@ end:
}
}
}
}
-
(
IBAction
)
showVLM
:(
id
)
sender
{
if
(
!
nib_vlm_loaded
)
nib_vlm_loaded
=
[
NSBundle
loadNibNamed
:
@"VLM"
owner
:
NSApp
];
[
o_vlm
showVLMWindow
];
}
-
(
IBAction
)
showExtended
:(
id
)
sender
-
(
IBAction
)
showExtended
:(
id
)
sender
{
{
if
(
o_extended
==
nil
)
if
(
o_extended
==
nil
)
...
...
modules/gui/macosx/vlm.h
deleted
100644 → 0
View file @
0c78aa4a
/*****************************************************************************
* vlm.h: VLM Configuration panel for Mac OS X
*****************************************************************************
* Copyright (c) 2008 the VideoLAN team
* $Id$
*
* Authors: Felix Paul Kühne <fkuehne@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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# import "config.h"
#endif
#ifdef ENABLE_VLM
#import <Cocoa/Cocoa.h>
#import "intf.h"
#import <vlc_vlm.h>
@interface
VLCVLMController
:
NSObject
{
/* broadcast panel */
IBOutlet
NSButton
*
o_bcast_add_btn
;
IBOutlet
NSBox
*
o_bcast_box
;
IBOutlet
NSButton
*
o_bcast_cancel_btn
;
IBOutlet
NSButton
*
o_bcast_enable_ckb
;
IBOutlet
NSButton
*
o_bcast_input_btn
;
IBOutlet
NSTextField
*
o_bcast_input_fld
;
IBOutlet
NSButton
*
o_bcast_loop_ckb
;
IBOutlet
NSTextField
*
o_bcast_name_fld
;
IBOutlet
NSButton
*
o_bcast_output_btn
;
IBOutlet
NSTextField
*
o_bcast_output_fld
;
IBOutlet
NSPanel
*
o_bcast_panel
;
/* schedule panel */
IBOutlet
id
o_sched_add_btn
;
IBOutlet
id
o_sched_box
;
IBOutlet
id
o_sched_cancel_btn
;
IBOutlet
NSDatePicker
*
o_sched_date_datePicker
;
IBOutlet
NSTextField
*
o_sched_date_lbl
;
IBOutlet
NSButton
*
o_sched_input_btn
;
IBOutlet
NSTextField
*
o_sched_input_fld
;
IBOutlet
NSTextField
*
o_sched_input_lbl
;
IBOutlet
NSTextField
*
o_sched_name_fld
;
IBOutlet
NSTextField
*
o_sched_name_lbl
;
IBOutlet
NSButton
*
o_sched_output_btn
;
IBOutlet
NSTextField
*
o_sched_output_fld
;
IBOutlet
NSTextField
*
o_sched_output_lbl
;
IBOutlet
NSTextField
*
o_sched_repeat_fld
;
IBOutlet
NSTextField
*
o_sched_repeat_lbl
;
IBOutlet
NSDatePicker
*
o_sched_repeatDelay_datePicker
;
IBOutlet
id
o_sched_time_box
;
IBOutlet
NSWindow
*
o_sched_panel
;
/* VLM Window */
IBOutlet
NSTableView
*
o_vlm_list
;
IBOutlet
NSWindow
*
o_vlm_win
;
/* VOD Panel */
IBOutlet
NSButton
*
o_vod_add_btn
;
IBOutlet
id
o_vod_box
;
IBOutlet
NSButton
*
o_vod_cancel_btn
;
IBOutlet
NSButton
*
o_vod_input_btn
;
IBOutlet
NSTextField
*
o_vod_input_fld
;
IBOutlet
NSTextField
*
o_vod_input_lbl
;
IBOutlet
NSButton
*
o_vod_loop_ckb
;
IBOutlet
NSTextField
*
o_vod_name_fld
;
IBOutlet
NSTextField
*
o_vod_name_lbl
;
IBOutlet
NSButton
*
o_vod_output_btn
;
IBOutlet
NSTextField
*
o_vod_output_fld
;
IBOutlet
NSTextField
*
o_vod_output_lbl
;
IBOutlet
NSWindow
*
o_vod_panel
;
}
+
(
VLCVLMController
*
)
sharedInstance
;
/* toolbar */
-
(
NSToolbarItem
*
)
toolbar
:
(
NSToolbar
*
)
o_toolbar
itemForItemIdentifier
:
(
NSString
*
)
o_itemIdent
willBeInsertedIntoToolbar
:
(
BOOL
)
b_willBeInserted
;
-
(
NSArray
*
)
toolbarDefaultItemIdentifiers
:
(
NSToolbar
*
)
toolbar
;
-
(
NSArray
*
)
toolbarAllowedItemIdentifiers
:
(
NSToolbar
*
)
toolbar
;
-
(
void
)
showVLMWindow
;
-
(
void
)
initStrings
;
-
(
void
)
addBcast
;
-
(
void
)
addVOD
;
-
(
void
)
addSched
;
-
(
IBAction
)
bcastButtonAction
:(
id
)
sender
;
-
(
IBAction
)
listDoubleClickAction
:(
id
)
sender
;
-
(
IBAction
)
schedButtonAction
:(
id
)
sender
;
-
(
IBAction
)
vodButtonAction
:(
id
)
sender
;
-
(
int
)
numberOfRowsInTableView
:(
NSTableView
*
)
aTableView
;
-
(
id
)
tableView
:(
NSTableView
*
)
aTableView
objectValueForTableColumn
:(
NSTableColumn
*
)
aTableColumn
row
:(
int
)
rowIndex
;
@end
#endif
\ No newline at end of file
modules/gui/macosx/vlm.m
deleted
100644 → 0
View file @
0c78aa4a
/*****************************************************************************
* vlm.m: VLM Configuration panel for Mac OS X
*****************************************************************************
* Copyright (c) 2008 the VideoLAN team
* $Id$
*
* Authors: Felix Paul Kühne <fkuehne@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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#import "vlm.h"
#ifdef ENABLE_VLM
static
NSString
*
VLCVLMToolbarIdentifier
=
@"Our VLM Toolbar Identifier"
;
static
NSString
*
VLCVODToolbarIdentifier
=
@"VLM Item"
;
static
NSString
*
VLCSchedToolbarIdentifier
=
@"Sched Item"
;
static
NSString
*
VLCBcastToolbarIdentifier
=
@"Bcast Item"
;
@implementation
VLCVLMController
static
VLCVLMController
*
_o_sharedInstance
=
nil
;
+
(
VLCVLMController
*
)
sharedInstance
{
return
_o_sharedInstance
?
_o_sharedInstance
:
[[
self
alloc
]
init
];
}
-
(
id
)
init
{
if
(
_o_sharedInstance
)
[
self
dealloc
];
else
{
_o_sharedInstance
=
[
super
init
];
}
return
_o_sharedInstance
;
}
-
(
void
)
awakeFromNib
{
[
self
initStrings
];
/* setup the toolbar */
NSToolbar
*
o_vlm_toolbar
=
[[[
NSToolbar
alloc
]
initWithIdentifier
:
VLCVLMToolbarIdentifier
]
autorelease
];
[
o_vlm_toolbar
setAllowsUserCustomization
:
NO
];
[
o_vlm_toolbar
setAutosavesConfiguration
:
NO
];
[
o_vlm_toolbar
setDisplayMode
:
NSToolbarDisplayModeIconAndLabel
];
[
o_vlm_toolbar
setSizeMode
:
NSToolbarSizeModeRegular
];
[
o_vlm_toolbar
setDelegate
:
self
];
[
o_vlm_win
setToolbar
:
o_vlm_toolbar
];
}
#define CreateToolbarItem( o_name, o_desc, o_img, sel ) \
o_toolbarItem = create_toolbar_item(o_itemIdent, o_name, o_desc, o_img, self, @selector(sel));
static
inline
NSToolbarItem
*
create_toolbar_item
(
NSString
*
o_itemIdent
,
NSString
*
o_name
,
NSString
*
o_desc
,
NSString
*
o_img
,
id
target
,
SEL
selector
)
{
NSToolbarItem
*
o_toolbarItem
=
[[[
NSToolbarItem
alloc
]
initWithItemIdentifier
:
o_itemIdent
]
autorelease
];
\
[
o_toolbarItem
setLabel
:
o_name
];
[
o_toolbarItem
setPaletteLabel
:
o_desc
];
[
o_toolbarItem
setToolTip
:
o_desc
];
[
o_toolbarItem
setImage
:
[
NSImage
imageNamed
:
o_img
]];
[
o_toolbarItem
setTarget
:
target
];
[
o_toolbarItem
setAction
:
selector
];
[
o_toolbarItem
setEnabled
:
YES
];
[
o_toolbarItem
setAutovalidates
:
YES
];
return
o_toolbarItem
;
}
-
(
NSToolbarItem
*
)
toolbar
:
(
NSToolbar
*
)
o_vlm_toolbar
itemForItemIdentifier
:
(
NSString
*
)
o_itemIdent
willBeInsertedIntoToolbar
:
(
BOOL
)
b_willBeInserted
{
NSToolbarItem
*
o_toolbarItem
=
nil
;
if
(
[
o_itemIdent
isEqual
:
VLCVODToolbarIdentifier
]
)
{
CreateToolbarItem
(
_NS
(
"Video On Demand"
),
_NS
(
"Video On Demand"
),
@"add_vod"
,
addVOD
);
}
else
if
(
[
o_itemIdent
isEqual
:
VLCSchedToolbarIdentifier
]
)
{
CreateToolbarItem
(
_NS
(
"Schedule"
),
_NS
(
"Schedule"
),
@"add_schedule"
,
addSched
);
}
else
if
(
[
o_itemIdent
isEqual
:
VLCBcastToolbarIdentifier
]
)
{
CreateToolbarItem
(
_NS
(
"Broadcast"
),
_NS
(
"Broadcast"
),
@"add_broadcast"
,
addBcast
);
}
return
o_toolbarItem
;
}
-
(
NSArray
*
)
toolbarDefaultItemIdentifiers
:
(
NSToolbar
*
)
toolbar
{
return
[
NSArray
arrayWithObjects
:
VLCBcastToolbarIdentifier
,
VLCSchedToolbarIdentifier
,
VLCVODToolbarIdentifier
,
NSToolbarFlexibleSpaceItemIdentifier
,
nil
];
}
-
(
NSArray
*
)
toolbarAllowedItemIdentifiers
:
(
NSToolbar
*
)
toolbar
{
return
[
NSArray
arrayWithObjects
:
VLCBcastToolbarIdentifier
,
VLCSchedToolbarIdentifier
,
VLCVODToolbarIdentifier
,
NSToolbarFlexibleSpaceItemIdentifier
,
nil
];
}
-
(
void
)
initStrings
{
/* not implemented */
}
-
(
void
)
showVLMWindow
{
[
o_vlm_win
makeKeyAndOrderFront
:
self
];
}
-
(
void
)
addBcast
{
[
NSApp
beginSheet
:
o_bcast_panel
modalForWindow
:
o_vlm_win
modalDelegate:
self
didEndSelector
:
nil
contextInfo
:
nil
];
}
-
(
void
)
addVOD
{
[
NSApp
beginSheet
:
o_vod_panel
modalForWindow
:
o_vlm_win
modalDelegate:
self
didEndSelector
:
nil
contextInfo
:
nil
];
}
-
(
void
)
addSched
{
[
NSApp
beginSheet
:
o_sched_panel
modalForWindow
:
o_vlm_win
modalDelegate:
self
didEndSelector
:
nil
contextInfo
:
nil
];
}
-
(
IBAction
)
bcastButtonAction
:(
id
)
sender
{
[
NSApp
endSheet
:
o_bcast_panel
];
[
o_bcast_panel
close
];
}
-
(
IBAction
)
listDoubleClickAction
:(
id
)
sender
{
}
-
(
IBAction
)
schedButtonAction
:(
id
)
sender
{
[
NSApp
endSheet
:
o_sched_panel
];
[
o_sched_panel
close
];
}
-
(
IBAction
)
vodButtonAction
:(
id
)
sender
{
[
NSApp
endSheet
:
o_vod_panel
];
[
o_vod_panel
close
];
}
-
(
int
)
numberOfRowsInTableView
:(
NSTableView
*
)
aTableView
{
return
0
;
}
-
(
id
)
tableView
:(
NSTableView
*
)
aTableView
objectValueForTableColumn
:(
NSTableColumn
*
)
aTableColumn
row
:(
int
)
rowIndex
{
return
@"dummy"
;
}
@end
#endif
\ No newline at end of file
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