diff --git a/Makefile.am b/Makefile.am index e0be675e34..ec1e0dbe7a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -141,7 +141,6 @@ EXTRA_DIST += \ extras/package/macosx/Resources/English.lproj/CoreDialogs.xib \ extras/package/macosx/Resources/English.lproj/DebugMessageVisualizer.xib \ extras/package/macosx/Resources/English.lproj/DetachedVideoWindow.xib \ - extras/package/macosx/Resources/English.lproj/ErrorPanel.xib \ extras/package/macosx/Resources/English.lproj/FSPanel.xib \ extras/package/macosx/Resources/English.lproj/InfoPlist.strings.in \ extras/package/macosx/Resources/English.lproj/Help.xib \ diff --git a/extras/package/macosx/Resources/English.lproj/CoreDialogs.xib b/extras/package/macosx/Resources/English.lproj/CoreDialogs.xib index f0665ebf00..35deab0c3a 100644 --- a/extras/package/macosx/Resources/English.lproj/CoreDialogs.xib +++ b/extras/package/macosx/Resources/English.lproj/CoreDialogs.xib @@ -1,1152 +1,188 @@ - - - - 1060 - 14F27 - 7706 - 1348.17 - 758.70 - - com.apple.InterfaceBuilder.CocoaPlugin - 7706 - - - NSButton - NSButtonCell - NSCustomObject - NSImageCell - NSImageView - NSProgressIndicator - NSTextField - NSTextFieldCell - NSView - NSWindowTemplate - - - com.apple.InterfaceBuilder.CocoaPlugin - - - PluginDependencyRecalculationVersion - - - - - VLCCoreDialogProvider - - - FirstResponder - - - NSApplication - - - 1 - 2 - {{332, 446}, {505, 278}} - 1886912512 - Authentication - NSPanel - - View - - - {213, 107} - - - 256 - - - - 256 - {{94, 241}, {316, 17}} - - - - YES - - 69206017 - 272629760 - System Font Text - - YES - 13 - 2072 - - - - 6 - System - controlColor - - 3 - MC42NjY2NjY2NjY3AA - - - - 6 - System - controlTextColor - - 3 - MAA - - - - NO - 1 - - - - 256 - {{94, 189}, {394, 44}} - - - - YES - - 69206017 - 272629760 - Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Text System Font Text Small System - - YES - 11 - 3100 - - - - - - NO - 1 - - - - 256 - {{97, 126}, {310, 22}} - - - - YES - - -1804599231 - 272630784 - - - YES - 13 - 1044 - - - YES - - 6 - System - textBackgroundColor - - 3 - MQA - - - - 6 - System - textColor - - - - NO - 1 - - - - 256 - {{94, 156}, {129, 14}} - - - - YES - - 67108864 - 272629760 - User name - - - - - - NO - 1 - - - - 256 - {{97, 72}, {310, 22}} - - - - YES - - -1804599231 - 272630784 - - - - YES - - - - NO - 1 - - - - 256 - {{94, 102}, {129, 14}} - - - - YES - - 67108864 - 272760832 - Password - - - - - - NO - 1 - - - - 256 - {{383, 12}, {108, 32}} - - - - YES - - 67108864 - 134217728 - OK - - - -2038284288 - 1 - - - DQ - 200 - 25 - - NO - - - - 256 - {{275, 12}, {108, 32}} - - - - YES - - 67108864 - 134217728 - Cancel - - - -2038284288 - 1 - - - Gw - 200 - 25 - - NO - - - - 256 - - Apple PDF pasteboard type - Apple PICT pasteboard type - Apple PNG pasteboard type - NSFilenamesPboardType - NeXT Encapsulated PostScript v1.2 pasteboard type - NeXT TIFF v4.0 pasteboard type - - {{20, 194}, {64, 64}} - - - - YES - - 134217728 - 33554432 - - NSImage - NSApplicationIcon - - 2 - 0 - 0 - NO - - NO - YES - - - {505, 278} - - - - - {{0, 0}, {1280, 777}} - {213, 129} - {10000000000000, 10000000000000} - YES - - - 1 - 2 - {{319, 460}, {520, 182}} - 1886912512 - Progress - - NSWindow - - - View - - - {213, 107} - - - 256 - - - - 256 - {{89, 145}, {414, 17}} - - - - YES - - 67108864 - 272629760 - System Font Text - - - - - - NO - 1 - - - - 256 - {{89, 95}, {414, 42}} - - - - YES - - 67108864 - 272629760 - Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Text System Font Text Small System Font - - - - - - NO - 1 - - - - 1280 - {{90, 56}, {412, 20}} - - - - 16396 - 1000 - - - - 256 - {{398, 12}, {108, 32}} - - - - YES - - 67108864 - 134217728 - Cancel - - - -2038284288 - 1 - - - Gw - 200 - 25 - - NO - - - - 256 - - Apple PDF pasteboard type - Apple PICT pasteboard type - Apple PNG pasteboard type - NSFilenamesPboardType - NeXT Encapsulated PostScript v1.2 pasteboard type - NeXT TIFF v4.0 pasteboard type - - {{20, 98}, {64, 64}} - - - - YES - - 134217728 - 33554432 - - 2 - 0 - 0 - NO - - NO - YES - - - {520, 182} - - - - - {{0, 0}, {1280, 777}} - {213, 129} - {10000000000000, 10000000000000} - YES - - - - - - - o_auth_win - - - - 330 - - - - o_auth_title_txt - - - - 331 - - - - o_auth_description_txt - - - - 332 - - - - o_auth_login_txt - - - - 333 - - - - o_auth_login_fld - - - - 334 - - - - o_auth_pw_txt - - - - 335 - - - - o_auth_pw_fld - - - - 336 - - - - loginDialogAction: - - - - 338 - - - - loginDialogAction: - - - - 339 - - - - o_auth_ok_btn - - - - 340 - - - - o_prog_win - - - - 341 - - - - o_prog_title_txt - - - - 342 - - - - o_prog_description_txt - - - - 343 - - - - o_prog_bar - - - - 344 - - - - o_prog_cancel_btn - - - - 345 - - - - progDialogAction: - - - - 346 - - - - - - 0 - - - - - - -2 - - - File's Owner - - - -1 - - - First Responder - - - 248 - - - - - - Authentication - - - 249 - - - - - - - - - - - - - - - - 250 - - - - - - - - 251 - - - - - - - - 252 - - - - - - - - 253 - - - - - - - - 254 - - - - - - - - 255 - - - - - - - - 256 - - - - - - - - 257 - - - - - - - - 314 - - - - - - - - 301 - - - - - - Progress - - - 302 - - - - - - - - - - - - 304 - - - - - - - - 305 - - - - - - - - 306 - - - - - - - - 307 - - - - - 315 - - - - - - - - 317 - - - - - 318 - - - - - 319 - - - - - 320 - - - - - 321 - - - - - 322 - - - - - 323 - - - - - 324 - - - - - 325 - - - - - 326 - - - - - 327 - - - - - 328 - - - - - 329 - - - - - -3 - - - Application - - - - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - {{427, 192}, {505, 278}} - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - NSSecureTextField - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - {{412, 311}, {520, 182}} - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - - - - - 346 - - - - - VLCCoreDialogProvider - NSObject - - id - id - - - - loginDialogAction: - id - - - progDialogAction: - id - - - - id - id - id - id - id - id - id - id - id - NSProgressIndicator - id - id - id - id - - - - o_auth_cancel_btn - id - - - o_auth_description_txt - id - - - o_auth_login_fld - id - - - o_auth_login_txt - id - - - o_auth_ok_btn - id - - - o_auth_pw_fld - id - - - o_auth_pw_txt - id - - - o_auth_title_txt - id - - - o_auth_win - id - - - o_prog_bar - NSProgressIndicator - - - o_prog_cancel_btn - id - - - o_prog_description_txt - id - - - o_prog_title_txt - id - - - o_prog_win - id - - - - IBProjectSource - ../../../../modules/gui/macosx/coredialogs.h - - - - VLCCoreDialogProvider - - id - id - - - - loginDialogAction: - id - - - progDialogAction: - id - - - - IBProjectSource - ../../../../modules/gui/macosx/coredialogs.m - - - - - - NSActionCell - NSCell - - IBFrameworkSource - AppKit.framework/Headers/NSActionCell.h - - - - NSApplication - NSResponder - - IBFrameworkSource - AppKit.framework/Headers/NSApplication.h - - - - NSButton - NSControl - - IBFrameworkSource - AppKit.framework/Headers/NSButton.h - - - - NSButtonCell - NSActionCell - - IBFrameworkSource - AppKit.framework/Headers/NSButtonCell.h - - - - NSCell - NSObject - - IBFrameworkSource - AppKit.framework/Headers/NSCell.h - - - - NSControl - NSView - - IBFrameworkSource - AppKit.framework/Headers/NSControl.h - - - - NSFormatter - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSFormatter.h - - - - NSImageCell - NSCell - - IBFrameworkSource - AppKit.framework/Headers/NSImageCell.h - - - - NSImageView - NSControl - - IBFrameworkSource - AppKit.framework/Headers/NSImageView.h - - - - NSMenu - NSObject - - IBFrameworkSource - AppKit.framework/Headers/NSMenu.h - - - - NSPanel - NSWindow - - IBFrameworkSource - AppKit.framework/Headers/NSPanel.h - - - - NSProgressIndicator - NSView - - IBFrameworkSource - AppKit.framework/Headers/NSProgressIndicator.h - - - - NSResponder - NSObject - - IBFrameworkSource - AppKit.framework/Headers/NSResponder.h - - - - NSSecureTextField - NSTextField - - IBFrameworkSource - AppKit.framework/Headers/NSSecureTextField.h - - - - NSTextField - NSControl - - IBFrameworkSource - AppKit.framework/Headers/NSTextField.h - - - - NSTextFieldCell - NSActionCell - - IBFrameworkSource - AppKit.framework/Headers/NSTextFieldCell.h - - - - NSView - NSResponder - - IBFrameworkSource - AppKit.framework/Headers/NSView.h - - - - NSWindow - NSResponder - - IBFrameworkSource - AppKit.framework/Headers/NSWindow.h - - - - - 0 - IBCocoaFramework - NO - - com.apple.InterfaceBuilder.CocoaPlugin.macosx - - - - com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 - - - YES - 3 - - NSApplicationIcon - {128, 128} - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Text System Font Text Small System + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Font Text Small System Text System Font Text Small System Font + + + + + + + + + + + + + + + + + + + + + + diff --git a/extras/package/macosx/Resources/English.lproj/ErrorPanel.xib b/extras/package/macosx/Resources/English.lproj/ErrorPanel.xib deleted file mode 100644 index bb1d7b8dd9..0000000000 --- a/extras/package/macosx/Resources/English.lproj/ErrorPanel.xib +++ /dev/null @@ -1,718 +0,0 @@ - - - - 1060 - 14D136 - 7702 - 1347.57 - 758.70 - - com.apple.InterfaceBuilder.CocoaPlugin - 7702 - - - NSButton - NSButtonCell - NSCustomObject - NSImageCell - NSScrollView - NSScroller - NSTableColumn - NSTableView - NSTextFieldCell - NSView - NSWindowTemplate - - - com.apple.InterfaceBuilder.CocoaPlugin - - - PluginDependencyRecalculationVersion - - - - - ErrorWindowController - - - FirstResponder - - - NSApplication - - - 31 - 2 - {{304, 373}, {397, 209}} - -260571136 - Errors and Warnings - - NSPanel - - - View - - - {260, 120} - - - 256 - - - - 274 - - - - 2322 - - - - 256 - {396, 168} - - - - YES - NO - YES - - - -2147483392 - {{-26, 0}, {16, 17}} - - - - icon - 45 - 32 - 1000 - - 75497536 - 134219776 - icons - - YES - 11 - 3100 - - - 3 - MC4zMzMzMzI5OQA - - - 6 - System - headerTextColor - - 3 - MAA - - - - - 134217728 - 33554432 - 0 - 0 - 0 - YES - - 3 - YES - - - - error_msg - 344.99560000000002 - 39.995609999999999 - 1000 - - 75497536 - 2048 - errors - - - - - - 337641472 - 0 - - - - 6 - System - textBackgroundColor - - 3 - MQA - - - - 6 - System - controlTextColor - - - - 3 - YES - YES - - - - 3 - 2 - - 6 - System - controlBackgroundColor - - 3 - MC42NjY2NjY2NjY3AA - - - - 6 - System - gridColor - - 3 - MC41AA - - - 45 - 1388314624 - - - 4 - 15 - 0 - YES - 0 - 1 - - - {{1, 1}, {396, 168}} - - - - - - 4 - YES - - - - -2147483392 - {{-30, 1}, {15, 168}} - - - - NO - _doScroller: - - - _doScroller: - 0.35744680000000001 - - - - -2147483392 - {{1, -30}, {381, 15}} - - - - NO - _doScroller: - - 1 - - _doScroller: - 0.96212120000000001 - - - {{0, 39}, {398, 170}} - - - - 133682 - - - - QSAAAEEgAABCPAAAQjwAAA - 0.25 - 4 - 1 - - - - 292 - {{15, 7}, {94, 28}} - - - - YES - - 67108864 - 134348800 - Clean up - - - -2038284288 - 1 - - - - - - 200 - 25 - - NO - - - {397, 209} - - - - - {{0, 0}, {1680, 1027}} - {213, 129} - {10000000000000, 10000000000000} - ErrorsAndWarnings - YES - - - - - - - o_error_table - - - - 12 - - - - o_cleanup_button - - - - 13 - - - - cleanupTable: - - - - 15 - - - - window - - - - 75 - - - - dataSource - - - - 16 - - - - delegate - - - - 17 - - - - - - 0 - - - - - - -2 - - - File's Owner - - - -1 - - - First Responder - - - -3 - - - Application - - - 5 - - - - - - Non-Blocking errors - - - 6 - - - - - - - - - 7 - - - - - - - - - - 8 - - - - - - - - - 9 - - - - - - - - 18 - - - - - 10 - - - - - - - - 23 - - - - - 11 - - - - - - - - 71 - - - - - 73 - - - - - 74 - - - - - - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - {{96, 455}, {397, 209}} - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - - - - - 75 - - - - - ErrorWindowController - NSWindowController - - cleanupTable: - id - - - cleanupTable: - - cleanupTable: - id - - - - id - id - id - - - - o_cleanup_button - id - - - o_error_table - id - - - o_window - id - - - - IBProjectSource - ../../../../modules/gui/macosx/coredialogs.h - - - - ErrorWindowController - - cleanupTable: - id - - - cleanupTable: - - cleanupTable: - id - - - - IBProjectSource - ../../../../modules/gui/macosx/coredialogs.m - - - - - - NSActionCell - NSCell - - IBFrameworkSource - AppKit.framework/Headers/NSActionCell.h - - - - NSApplication - NSResponder - - IBFrameworkSource - AppKit.framework/Headers/NSApplication.h - - - - NSButton - NSControl - - IBFrameworkSource - AppKit.framework/Headers/NSButton.h - - - - NSButtonCell - NSActionCell - - IBFrameworkSource - AppKit.framework/Headers/NSButtonCell.h - - - - NSCell - NSObject - - IBFrameworkSource - AppKit.framework/Headers/NSCell.h - - - - NSControl - NSView - - IBFrameworkSource - AppKit.framework/Headers/NSControl.h - - - - NSFormatter - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSFormatter.h - - - - NSImageCell - NSCell - - IBFrameworkSource - AppKit.framework/Headers/NSImageCell.h - - - - NSMenu - NSObject - - IBFrameworkSource - AppKit.framework/Headers/NSMenu.h - - - - NSPanel - NSWindow - - IBFrameworkSource - AppKit.framework/Headers/NSPanel.h - - - - NSResponder - NSObject - - IBFrameworkSource - AppKit.framework/Headers/NSResponder.h - - - - NSScrollView - NSView - - IBFrameworkSource - AppKit.framework/Headers/NSScrollView.h - - - - NSScroller - NSControl - - IBFrameworkSource - AppKit.framework/Headers/NSScroller.h - - - - NSTableColumn - NSObject - - IBFrameworkSource - AppKit.framework/Headers/NSTableColumn.h - - - - NSTableView - NSControl - - IBFrameworkSource - AppKit.framework/Headers/NSTableView.h - - - - NSTextFieldCell - NSActionCell - - IBFrameworkSource - AppKit.framework/Headers/NSTextFieldCell.h - - - - NSView - NSResponder - - IBFrameworkSource - AppKit.framework/Headers/NSView.h - - - - NSWindow - NSResponder - - IBFrameworkSource - AppKit.framework/Headers/NSWindow.h - - - - NSWindowController - NSResponder - - showWindow: - id - - - showWindow: - - showWindow: - id - - - - IBFrameworkSource - AppKit.framework/Headers/NSWindowController.h - - - - - 0 - IBCocoaFramework - NO - - com.apple.InterfaceBuilder.CocoaPlugin.macosx - - - - com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 - - - YES - 3 - - diff --git a/extras/package/macosx/Resources/English.lproj/MainMenu.xib b/extras/package/macosx/Resources/English.lproj/MainMenu.xib index 03770a6f13..27b56ad398 100644 --- a/extras/package/macosx/Resources/English.lproj/MainMenu.xib +++ b/extras/package/macosx/Resources/English.lproj/MainMenu.xib @@ -1,9 +1,9 @@ - + - + @@ -50,7 +50,6 @@ - @@ -764,12 +763,6 @@ - - - - - - diff --git a/extras/package/macosx/vlc.xcodeproj/project.pbxproj b/extras/package/macosx/vlc.xcodeproj/project.pbxproj index 224901e8be..e2f7235b0d 100644 --- a/extras/package/macosx/vlc.xcodeproj/project.pbxproj +++ b/extras/package/macosx/vlc.xcodeproj/project.pbxproj @@ -849,7 +849,6 @@ CCD83E4513FEA143004F1652 /* AudioEffects.xib in Resources */ = {isa = PBXBuildFile; fileRef = CCD83E3013FEA143004F1652 /* AudioEffects.xib */; }; CCD83E4613FEA143004F1652 /* Bookmarks.xib in Resources */ = {isa = PBXBuildFile; fileRef = CCD83E3213FEA143004F1652 /* Bookmarks.xib */; }; CCD83E4713FEA143004F1652 /* CoreDialogs.xib in Resources */ = {isa = PBXBuildFile; fileRef = CCD83E3413FEA143004F1652 /* CoreDialogs.xib */; }; - CCD83E4813FEA143004F1652 /* ErrorPanel.xib in Resources */ = {isa = PBXBuildFile; fileRef = CCD83E3613FEA143004F1652 /* ErrorPanel.xib */; }; CCD83E4913FEA143004F1652 /* MediaInfo.xib in Resources */ = {isa = PBXBuildFile; fileRef = CCD83E3813FEA143004F1652 /* MediaInfo.xib */; }; CCD83E4A13FEA143004F1652 /* Open.xib in Resources */ = {isa = PBXBuildFile; fileRef = CCD83E3A13FEA143004F1652 /* Open.xib */; }; CCD83E4B13FEA143004F1652 /* Preferences.xib in Resources */ = {isa = PBXBuildFile; fileRef = CCD83E3C13FEA143004F1652 /* Preferences.xib */; }; @@ -1738,7 +1737,6 @@ CCD83E3113FEA143004F1652 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = Resources/English.lproj/AudioEffects.xib; sourceTree = ""; }; CCD83E3313FEA143004F1652 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = Resources/English.lproj/Bookmarks.xib; sourceTree = ""; }; CCD83E3513FEA143004F1652 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = Resources/English.lproj/CoreDialogs.xib; sourceTree = ""; }; - CCD83E3713FEA143004F1652 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = Resources/English.lproj/ErrorPanel.xib; sourceTree = ""; }; CCD83E3913FEA143004F1652 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = Resources/English.lproj/MediaInfo.xib; sourceTree = ""; }; CCD83E3B13FEA143004F1652 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = Resources/English.lproj/Open.xib; sourceTree = ""; }; CCD83E3D13FEA143004F1652 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = Resources/English.lproj/Preferences.xib; sourceTree = ""; }; @@ -2928,7 +2926,6 @@ CCD83E3013FEA143004F1652 /* AudioEffects.xib */, CCD83E3213FEA143004F1652 /* Bookmarks.xib */, CCD83E3413FEA143004F1652 /* CoreDialogs.xib */, - CCD83E3613FEA143004F1652 /* ErrorPanel.xib */, CCD83E3813FEA143004F1652 /* MediaInfo.xib */, CCD83E3A13FEA143004F1652 /* Open.xib */, CCD83E3C13FEA143004F1652 /* Preferences.xib */, @@ -3386,7 +3383,6 @@ CCD83E4613FEA143004F1652 /* Bookmarks.xib in Resources */, CCD83E4713FEA143004F1652 /* CoreDialogs.xib in Resources */, 1C88BB3619DC7C7800645190 /* ys-play.png in Resources */, - CCD83E4813FEA143004F1652 /* ErrorPanel.xib in Resources */, 1C88BCA419DC7CB300645190 /* ys-fs_skip_next.png in Resources */, 1C88BA7919DC7B2200645190 /* yosemite-window-zoom-graphite@2x.png in Resources */, 1C88BC0E19DC7C8100645190 /* ys-next-6btns-dark@2x.png in Resources */, @@ -4160,14 +4156,6 @@ name = CoreDialogs.xib; sourceTree = ""; }; - CCD83E3613FEA143004F1652 /* ErrorPanel.xib */ = { - isa = PBXVariantGroup; - children = ( - CCD83E3713FEA143004F1652 /* English */, - ); - name = ErrorPanel.xib; - sourceTree = ""; - }; CCD83E3813FEA143004F1652 /* MediaInfo.xib */ = { isa = PBXVariantGroup; children = ( diff --git a/modules/gui/macosx/MainMenu.h b/modules/gui/macosx/MainMenu.h index 2a372294da..91f97625d9 100644 --- a/modules/gui/macosx/MainMenu.h +++ b/modules/gui/macosx/MainMenu.h @@ -278,7 +278,6 @@ - (IBAction)openWebsite:(id)sender; - (IBAction)openForum:(id)sender; - (IBAction)openDonate:(id)sender; -- (IBAction)showErrorsAndWarnings:(id)sender; - (IBAction)showMessagesPanel:(id)showMessagesPanel; - (IBAction)showMainWindow:(id)sender; - (IBAction)showPlaylist:(id)sender; diff --git a/modules/gui/macosx/MainMenu.m b/modules/gui/macosx/MainMenu.m index 2ebcc8db46..aacc5f2c63 100644 --- a/modules/gui/macosx/MainMenu.m +++ b/modules/gui/macosx/MainMenu.m @@ -35,7 +35,6 @@ #import "VideoEffects.h" #import "bookmarks.h" #import "simple_prefs.h" -#import "coredialogs.h" #import "VLCPlaylist.h" #import "VLCPlaylistInfo.h" #import "VideoView.h" @@ -1271,13 +1270,6 @@ [[NSWorkspace sharedWorkspace] openURL: url]; } -#pragma mark - Errors, warnings and messages - -- (IBAction)showErrorsAndWarnings:(id)sender -{ - [[[[VLCMain sharedInstance] coreDialogProvider] errorPanel] showWindow:self]; -} - - (IBAction)showInformationPanel:(id)sender { [[[VLCMain sharedInstance] currentMediaInfoPanel] toggleWindow:sender]; diff --git a/modules/gui/macosx/coredialogs.h b/modules/gui/macosx/coredialogs.h index 54bb238371..7d5b96c3ee 100644 --- a/modules/gui/macosx/coredialogs.h +++ b/modules/gui/macosx/coredialogs.h @@ -1,7 +1,7 @@ /***************************************************************************** * coredialogs.h: Mac OS X Core Dialogs ***************************************************************************** - * Copyright (C) 2005-2012 VLC authors and VideoLAN + * Copyright (C) 2005-2016 VLC authors and VideoLAN * $Id$ * * Authors: Derk-Jan Hartman @@ -21,6 +21,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ + #import #import #import @@ -29,66 +30,31 @@ * VLCCoreDialogProvider interface *****************************************************************************/ -@class ErrorWindowController; - @interface VLCCoreDialogProvider : NSObject { - /* authentication dialogue */ - IBOutlet id o_auth_cancel_btn; - IBOutlet id o_auth_description_txt; - IBOutlet id o_auth_login_fld; - IBOutlet id o_auth_login_txt; - IBOutlet id o_auth_ok_btn; - IBOutlet id o_auth_pw_fld; - IBOutlet id o_auth_pw_txt; - IBOutlet id o_auth_title_txt; - IBOutlet id o_auth_win; - - /* progress dialogue */ - IBOutlet NSProgressIndicator * o_prog_bar; - IBOutlet id o_prog_cancel_btn; - IBOutlet id o_prog_description_txt; - IBOutlet id o_prog_title_txt; - IBOutlet id o_prog_win; + /* authentication dialog */ + IBOutlet id authenticationCancelButton; + IBOutlet id authenticationDescriptionLabel; + IBOutlet id authenticationLoginTextField; + IBOutlet id authenticationLoginLabel; + IBOutlet id authenticationOkButton; + IBOutlet id authenticationPasswordTextField; + IBOutlet id authenticationPasswordLabel; + IBOutlet id authenticationTitleLabel; + IBOutlet id authenticationWindow; + + /* progress dialog */ + IBOutlet NSProgressIndicator * progressIndicator; + IBOutlet id progressCancelButton; + IBOutlet id progressDescriptionLabel; + IBOutlet id progressTitleLabel; + IBOutlet id progressWindow; } @property (atomic,readwrite) BOOL progressCancelled; --(void)performEventWithObject: (NSValue *)o_value ofType: (const char*)type; - --(void)showFatalDialog: (NSValue *)o_value; --(void)showFatalWaitDialog: (NSValue *)o_value; --(void)showQuestionDialog: (NSValue *)o_value; - --(void)showLoginDialog: (NSValue *)o_value; --(IBAction)loginDialogAction:(id)sender; - --(void)showProgressDialogOnMainThread: (NSValue *)o_value; --(void)showProgressDialog: (NSValue *)o_value; --(IBAction)progDialogAction:(id)sender; --(void)updateProgressPanelWithText: (NSString *)string andNumber: (double)d_number; --(void)destroyProgressPanel; - --(id)errorPanel; - -@end - - -/***************************************************************************** - * VLCErrorPanel interface - *****************************************************************************/ - -@interface ErrorWindowController : NSWindowController -{ - IBOutlet id o_cleanup_button; - IBOutlet id o_error_table; - - NSMutableArray *o_errors; - NSMutableArray *o_icons; -} - -- (IBAction)cleanupTable:(id)sender; +- (IBAction)authenticationDialogAction:(id)sender; --(void)addError:(NSString *)o_error withMsg:(NSString *)o_msg; +- (IBAction)progressDialogAction:(id)sender; @end diff --git a/modules/gui/macosx/coredialogs.m b/modules/gui/macosx/coredialogs.m index ce1393b7a0..4eea2e7e06 100644 --- a/modules/gui/macosx/coredialogs.m +++ b/modules/gui/macosx/coredialogs.m @@ -1,7 +1,7 @@ /***************************************************************************** * coredialogs.m: Mac OS X Core Dialogs ***************************************************************************** - * Copyright (C) 2005-2015 VLC authors and VideoLAN + * Copyright (C) 2005-2016 VLC authors and VideoLAN * $Id$ * * Authors: Derk-Jan Hartman @@ -29,63 +29,16 @@ /* for the icon in our custom error panel */ #import - -void updateProgressPanel (void *data, const char *text, float value) -{ - @autoreleasepool { - VLCCoreDialogProvider *dialogProvider = (__bridge VLCCoreDialogProvider *)data; - - NSString *o_txt = toNSStr(text); - dispatch_async(dispatch_get_main_queue(), ^{ - [dialogProvider updateProgressPanelWithText: o_txt andNumber: (double)(value * 1000.)]; - }); - } -} - -void destroyProgressPanel (void *data) -{ - @autoreleasepool { - VLCCoreDialogProvider *dialogProvider = (__bridge VLCCoreDialogProvider *)data; - if ([[NSApplication sharedApplication] isRunning]) - [dialogProvider performSelectorOnMainThread:@selector(destroyProgressPanel) withObject:nil waitUntilDone:YES]; - } -} - -bool checkProgressPanel (void *data) -{ - @autoreleasepool { - VLCCoreDialogProvider *dialogProvider = (__bridge VLCCoreDialogProvider *)data; - return [dialogProvider progressCancelled]; - } -} - -static int DialogCallback(vlc_object_t *p_this, const char *type, vlc_value_t previous, vlc_value_t value, void *data) +static void displayErrorCallback(const char *psz_title, const char *psz_text, void * p_data) { @autoreleasepool { - VLCCoreDialogProvider *dialogProvider = (__bridge VLCCoreDialogProvider *)data; - if ([toNSStr(type) isEqualToString: @"dialog-progress-bar"]) { - /* the progress panel needs to update itself and therefore wants special treatment within this context */ - dialog_progress_bar_t *p_dialog = (dialog_progress_bar_t *)value.p_address; - - p_dialog->pf_update = updateProgressPanel; - p_dialog->pf_check = checkProgressPanel; - p_dialog->pf_destroy = destroyProgressPanel; - p_dialog->p_sys = (__bridge void *)dialogProvider; - } - - NSValue *o_value = [NSValue valueWithPointer:value.p_address]; - [dialogProvider performEventWithObject: o_value ofType: type]; - - return VLC_SUCCESS; + VLCCoreDialogProvider *dialogProvider = (__bridge VLCCoreDialogProvider *)p_data; + NSAlert *alert = [NSAlert alertWithMessageText: toNSStr(psz_title) defaultButton: _NS("OK") alternateButton: nil otherButton: nil informativeTextWithFormat: @"%@", toNSStr(psz_text)]; + [alert setAlertStyle: NSCriticalAlertStyle]; + [alert runModal]; } } -@interface VLCCoreDialogProvider() -{ - ErrorWindowController *o_error_panel; -} -@end - @implementation VLCCoreDialogProvider - (instancetype)init @@ -98,17 +51,26 @@ static int DialogCallback(vlc_object_t *p_this, const char *type, vlc_value_t pr intf_thread_t *p_intf = getIntf(); /* subscribe to various interactive dialogues */ - var_Create(p_intf, "dialog-error", VLC_VAR_ADDRESS); - var_AddCallback(p_intf, "dialog-error", DialogCallback, (__bridge void *)self); - var_Create(p_intf, "dialog-critical", VLC_VAR_ADDRESS); - var_AddCallback(p_intf, "dialog-critical", DialogCallback, (__bridge void *)self); - var_Create(p_intf, "dialog-login", VLC_VAR_ADDRESS); - var_AddCallback(p_intf, "dialog-login", DialogCallback, (__bridge void *)self); - var_Create(p_intf, "dialog-question", VLC_VAR_ADDRESS); - var_AddCallback(p_intf, "dialog-question", DialogCallback, (__bridge void *)self); - var_Create(p_intf, "dialog-progress-bar", VLC_VAR_ADDRESS); - var_AddCallback(p_intf, "dialog-progress-bar", DialogCallback, (__bridge void *)self); - dialog_Register(p_intf); + +/* const vlc_dialog_cbs cbs = { + displayErrorCallback, + displayLoginCallback, + displayQuestionCallback, + displayProgressCallback, + cancelCallback, + updateProgressCallback + };*/ + + const vlc_dialog_cbs cbs = { + displayErrorCallback, + NULL, + NULL, + NULL, + NULL, + NULL + }; + + vlc_dialog_provider_set_callbacks(p_intf, &cbs, (__bridge void *)self); } return self; @@ -119,246 +81,27 @@ static int DialogCallback(vlc_object_t *p_this, const char *type, vlc_value_t pr msg_Dbg(getIntf(), "Deinitializing dialog provider"); intf_thread_t *p_intf = getIntf(); - var_DelCallback(p_intf, "dialog-error", DialogCallback, (__bridge void *)self); - var_DelCallback(p_intf, "dialog-critical", DialogCallback, (__bridge void *)self); - var_DelCallback(p_intf, "dialog-login", DialogCallback, (__bridge void *)self); - var_DelCallback(p_intf, "dialog-question", DialogCallback, (__bridge void *)self); - var_DelCallback(p_intf, "dialog-progress-bar", DialogCallback, (__bridge void *)self); - dialog_Unregister(p_intf); + vlc_dialog_provider_set_callbacks(p_intf, NULL, NULL); } -(void)awakeFromNib { _progressCancelled = NO; - [o_auth_login_txt setStringValue: _NS("Username")]; - [o_auth_pw_txt setStringValue: _NS("Password")]; - [o_auth_cancel_btn setTitle: _NS("Cancel")]; - [o_auth_ok_btn setTitle: _NS("OK")]; - [o_prog_cancel_btn setTitle: _NS("Cancel")]; - [o_prog_bar setUsesThreadedAnimation: YES]; -} + [authenticationLoginLabel setStringValue: _NS("Username")]; + [authenticationPasswordLabel setStringValue: _NS("Password")]; + [authenticationCancelButton setTitle: _NS("Cancel")]; + [authenticationOkButton setTitle: _NS("OK")]; --(void)performEventWithObject: (NSValue *)o_value ofType: (const char*)type -{ - NSString *o_type = toNSStr(type); - - if ([o_type isEqualToString: @"dialog-error"]) - [self performSelectorOnMainThread:@selector(showFatalDialog:) withObject:o_value waitUntilDone:YES]; - else if ([o_type isEqualToString: @"dialog-critical"]) - [self performSelectorOnMainThread:@selector(showFatalWaitDialog:) withObject:o_value waitUntilDone:YES]; - else if ([o_type isEqualToString: @"dialog-question"]) - [self performSelectorOnMainThread:@selector(showQuestionDialog:) withObject:o_value waitUntilDone:YES]; - else if ([o_type isEqualToString: @"dialog-login"]) - [self performSelectorOnMainThread:@selector(showLoginDialog:) withObject:o_value waitUntilDone:YES]; - else if ([o_type isEqualToString: @"dialog-progress-bar"]) - [self performSelectorOnMainThread:@selector(showProgressDialogOnMainThread:) withObject: o_value waitUntilDone:YES]; - else - msg_Err(getIntf(), "unhandled dialog type: '%s'", type); + [progressCancelButton setTitle: _NS("Cancel")]; + [progressIndicator setUsesThreadedAnimation: YES]; } --(void)showFatalDialog: (NSValue *)o_value +- (IBAction)authenticationDialogAction:(id)sender { - dialog_fatal_t *p_dialog = [o_value pointerValue]; - - [[self errorPanel] addError: toNSStr(p_dialog->title) withMsg: toNSStr(p_dialog->message)]; - [[self errorPanel] showWindow:self]; -} - --(void)showFatalWaitDialog: (NSValue *)o_value -{ - dialog_fatal_t *p_dialog = [o_value pointerValue]; - NSAlert *o_alert; - - o_alert = [NSAlert alertWithMessageText: toNSStr(p_dialog->title) defaultButton: _NS("OK") alternateButton: nil otherButton: nil informativeTextWithFormat: @"%@", toNSStr(p_dialog->message)]; - [o_alert setAlertStyle: NSCriticalAlertStyle]; - [o_alert runModal]; } --(void)showQuestionDialog: (NSValue *)o_value +- (IBAction)progressDialogAction:(id)sender { - dialog_question_t *p_dialog = [o_value pointerValue]; - NSAlert *o_alert; - NSInteger i_returnValue = 0; - - o_alert = [NSAlert alertWithMessageText: toNSStr(p_dialog->title) defaultButton: toNSStr(p_dialog->yes) alternateButton: toNSStr(p_dialog->no) otherButton: toNSStr(p_dialog->cancel) informativeTextWithFormat:@"%@", toNSStr(p_dialog->message)]; - [o_alert setAlertStyle: NSInformationalAlertStyle]; - i_returnValue = [o_alert runModal]; - - if (i_returnValue == NSAlertDefaultReturn) - p_dialog->answer = 1; - if (i_returnValue == NSAlertAlternateReturn) - p_dialog->answer = 2; - if (i_returnValue == NSAlertOtherReturn) - p_dialog->answer = 3; -} - --(void)showLoginDialog: (NSValue *)o_value -{ - dialog_login_t *p_dialog = [o_value pointerValue]; - NSInteger i_returnValue = 0; - - [o_auth_title_txt setStringValue: toNSStr(p_dialog->title)]; - [o_auth_win setTitle: toNSStr(p_dialog->title)]; - [o_auth_description_txt setStringValue: toNSStr(p_dialog->message)]; - [o_auth_login_fld setStringValue: @""]; - [o_auth_pw_fld setStringValue: @""]; - - [o_auth_win center]; - i_returnValue = [NSApp runModalForWindow: o_auth_win]; - [o_auth_win close]; - if (i_returnValue) - { - *p_dialog->username = strdup([[o_auth_login_fld stringValue] UTF8String]); - *p_dialog->password = strdup([[o_auth_pw_fld stringValue] UTF8String]); - } else - *p_dialog->username = *p_dialog->password = NULL; -} - --(IBAction)loginDialogAction:(id)sender -{ - if ([[sender title] isEqualToString: _NS("OK")]) - [NSApp stopModalWithCode: 1]; - else - [NSApp stopModalWithCode: 0]; -} - --(void)showProgressDialogOnMainThread: (NSValue *)o_value -{ - /* we work-around a Cocoa limitation here, since you cannot delay an execution - * on the main thread within a single call */ - [self setProgressCancelled:NO]; - - dialog_progress_bar_t *p_dialog = [o_value pointerValue]; - if (!p_dialog) - return; - - [o_prog_win setTitle: toNSStr(p_dialog->title)]; - [o_prog_title_txt setStringValue: toNSStr(p_dialog->title)]; - - if (p_dialog->cancel != NULL) - [o_prog_cancel_btn setTitle: toNSStr(p_dialog->cancel)]; - else - [o_prog_cancel_btn setTitle: _NS("Cancel")]; - - [o_prog_description_txt setStringValue: toNSStr(p_dialog->message)]; - - if (getIntf()) - [self performSelector:@selector(showProgressDialog:) withObject: o_value afterDelay:3.00]; -} - --(void)showProgressDialog: (NSValue *)o_value -{ - dialog_progress_bar_t *p_dialog = [o_value pointerValue]; - - if (!p_dialog || [self progressCancelled]) - return; - - [o_prog_bar setDoubleValue: 0]; - [o_prog_bar setIndeterminate: YES]; - [o_prog_bar startAnimation: self]; - - [o_prog_win makeKeyAndOrderFront: self]; -} - --(void)updateProgressPanelWithText: (NSString *)string andNumber: (double)d_number -{ - [o_prog_description_txt setStringValue: string]; - if (d_number > 0) - [o_prog_bar setIndeterminate: NO]; - [o_prog_bar setDoubleValue: d_number]; -} - --(void)destroyProgressPanel -{ - [self setProgressCancelled:YES]; - [o_prog_bar performSelectorOnMainThread:@selector(stopAnimation:) withObject:self waitUntilDone:YES]; - [o_prog_win performSelectorOnMainThread:@selector(close) withObject:nil waitUntilDone:YES]; -} - --(IBAction)progDialogAction:(id)sender -{ - [self setProgressCancelled:YES]; -} - --(id)errorPanel -{ - if (!o_error_panel) - o_error_panel = [[ErrorWindowController alloc] init]; - - return o_error_panel; -} - -@end - -/***************************************************************************** - * VLCErrorPanel implementation - *****************************************************************************/ - -@implementation ErrorWindowController - -- (id)init -{ - self = [super initWithWindowNibName:@"ErrorPanel"]; - if (self) { - /* init data sources */ - o_errors = [[NSMutableArray alloc] init]; - o_icons = [[NSMutableArray alloc] init]; - } - - return self; -} - -- (void)windowDidLoad -{ - /* init strings */ - [[self window] setTitle: _NS("Errors and Warnings")]; - [o_cleanup_button setTitle: _NS("Clean up")]; -} - --(void)addError: (NSString *)o_error withMsg:(NSString *)o_msg -{ - /* format our string as desired */ - NSMutableAttributedString * ourError; - ourError = [[NSMutableAttributedString alloc] initWithString: - [NSString stringWithFormat:@"%@\n%@", o_error, o_msg] - attributes: - [NSDictionary dictionaryWithObject: [NSFont systemFontOfSize:11] forKey: NSFontAttributeName]]; - [ourError - addAttribute: NSFontAttributeName - value: [NSFont boldSystemFontOfSize:11] - range: NSMakeRange(0, [o_error length])]; - [o_errors addObject: ourError]; - - [o_icons addObject: [[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kAlertStopIcon)]]; - - [o_error_table reloadData]; -} - --(IBAction)cleanupTable:(id)sender -{ - [o_errors removeAllObjects]; - [o_icons removeAllObjects]; - [o_error_table reloadData]; -} - -/*---------------------------------------------------------------------------- - * data source methods - *---------------------------------------------------------------------------*/ -- (NSInteger)numberOfRowsInTableView:(NSTableView *)theDataTable -{ - return [o_errors count]; -} - -- (id)tableView:(NSTableView *)theDataTable objectValueForTableColumn: - (NSTableColumn *)theTableColumn row: (NSInteger)row -{ - if ([[theTableColumn identifier] isEqualToString: @"error_msg"]) - return [o_errors objectAtIndex:row]; - - if ([[theTableColumn identifier] isEqualToString: @"icon"]) - return [o_icons objectAtIndex:row]; - - return @"unknown identifier"; } @end