Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
GSoC
GSoC2018
macOS
vlc
Commits
c53156c5
Commit
c53156c5
authored
Aug 08, 2016
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Split HelpWindowController and AboutWindowController into separate files
parent
d8314d61
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
136 additions
and
77 deletions
+136
-77
extras/package/macosx/vlc.xcodeproj/project.pbxproj
extras/package/macosx/vlc.xcodeproj/project.pbxproj
+12
-8
modules/gui/macosx/AboutWindowController.h
modules/gui/macosx/AboutWindowController.h
+2
-19
modules/gui/macosx/AboutWindowController.m
modules/gui/macosx/AboutWindowController.m
+7
-48
modules/gui/macosx/HelpWindowController.h
modules/gui/macosx/HelpWindowController.h
+38
-0
modules/gui/macosx/HelpWindowController.m
modules/gui/macosx/HelpWindowController.m
+73
-0
modules/gui/macosx/MainMenu.m
modules/gui/macosx/MainMenu.m
+2
-1
modules/gui/macosx/Makefile.am
modules/gui/macosx/Makefile.am
+2
-1
No files found.
extras/package/macosx/vlc.xcodeproj/project.pbxproj
View file @
c53156c5
...
...
@@ -26,6 +26,8 @@
1C15C7DD1B5146DB003AB729
/* ResumeDialogController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
633121CB1B51122700E636DA
/* ResumeDialogController.m */
;
};
1C51BDE51B7A221B0056B9AA
/* TimeSelectionPanel.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1C51BDE31B7A221B0056B9AA
/* TimeSelectionPanel.xib */
;
};
1C57690E19DC93620099F5A6
/* topbar_background.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1C57690D19DC93620099F5A6
/* topbar_background.png */
;
};
1C67C8A51D58C0980079E1C1
/* HelpWindowController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1C67C8A41D58C0980079E1C1
/* HelpWindowController.m */
;
};
1C67C8A81D58C0A40079E1C1
/* AboutWindowController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1C67C8A71D58C0A40079E1C1
/* AboutWindowController.m */
;
};
1C88BA5419DC7B2200645190
/* yosemite-window-close-graphite.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1C88BA2419DC7B2200645190
/* yosemite-window-close-graphite.png */
;
};
1C88BA5519DC7B2200645190
/* yosemite-window-close-graphite@2x.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1C88BA2519DC7B2200645190
/* yosemite-window-close-graphite@2x.png */
;
};
1C88BA5619DC7B2200645190
/* yosemite-window-close-on-graphite.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1C88BA2619DC7B2200645190
/* yosemite-window-close-on-graphite.png */
;
};
...
...
@@ -364,8 +366,6 @@
1C94659C1B77B9FC007C965A
/* TextfieldPanel.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1C9465991B77B9FC007C965A
/* TextfieldPanel.xib */
;
};
1CBB2CC81B06A6DE00110ADA
/* Help.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1CBB2CC61B06A6DE00110ADA
/* Help.xib */
;
};
1CC25CA81B2C585D0003F994
/* darwinvlc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1CC25CA71B2C585D0003F994
/* darwinvlc.m */
;
};
1CCB5F511A62A724004C3E90
/* about.h in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8EE1AF9F044465080059A3A7
/* about.h */
;
};
1CCB5F521A62A724004C3E90
/* about.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8EE1AFA0044465080059A3A7
/* about.m */
;
};
1CCB5F531A62A724004C3E90
/* AddonListDataSource.h in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7DF0435E1972E26A0022B534
/* AddonListDataSource.h */
;
};
1CCB5F541A62A724004C3E90
/* AddonListDataSource.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7DF0435F1972E26A0022B534
/* AddonListDataSource.m */
;
};
1CCB5F551A62A724004C3E90
/* AddonsWindowController.h in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7DB65D5218ABD6380053B874
/* AddonsWindowController.h */
;
};
...
...
@@ -901,6 +901,10 @@
1C3AABB01B1BB00A00FDF001
/* VLC-dev.app */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.application
;
name
=
"VLC-dev.app"
;
path
=
"../VLC-dev.app"
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
1C51BDE41B7A221B0056B9AA
/* English */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
name
=
English
;
path
=
Resources/English.lproj/TimeSelectionPanel.xib
;
sourceTree
=
"<group>"
;
};
1C57690D19DC93620099F5A6
/* topbar_background.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
name
=
topbar_background.png
;
path
=
Resources/mainwindow/topbar_background.png
;
sourceTree
=
"<group>"
;
};
1C67C8A31D58C0980079E1C1
/* HelpWindowController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
HelpWindowController.h
;
path
=
../../../modules/gui/macosx/HelpWindowController.h
;
sourceTree
=
"<group>"
;
};
1C67C8A41D58C0980079E1C1
/* HelpWindowController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
HelpWindowController.m
;
path
=
../../../modules/gui/macosx/HelpWindowController.m
;
sourceTree
=
"<group>"
;
};
1C67C8A61D58C0A40079E1C1
/* AboutWindowController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
AboutWindowController.h
;
path
=
../../../modules/gui/macosx/AboutWindowController.h
;
sourceTree
=
"<group>"
;
};
1C67C8A71D58C0A40079E1C1
/* AboutWindowController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
AboutWindowController.m
;
path
=
../../../modules/gui/macosx/AboutWindowController.m
;
sourceTree
=
"<group>"
;
};
1C88BA2419DC7B2200645190
/* yosemite-window-close-graphite.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
"yosemite-window-close-graphite.png"
;
sourceTree
=
"<group>"
;
};
1C88BA2519DC7B2200645190
/* yosemite-window-close-graphite@2x.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
"yosemite-window-close-graphite@2x.png"
;
sourceTree
=
"<group>"
;
};
1C88BA2619DC7B2200645190
/* yosemite-window-close-on-graphite.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
"yosemite-window-close-on-graphite.png"
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1343,8 +1347,6 @@
8ED6C28503E2EB1C0059A3A7
/* prefs.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
prefs.h
;
path
=
../../../modules/gui/macosx/prefs.h
;
sourceTree
=
SOURCE_ROOT
;
};
8ED6C28603E2EB1C0059A3A7
/* prefs.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
prefs.m
;
path
=
../../../modules/gui/macosx/prefs.m
;
sourceTree
=
SOURCE_ROOT
;
};
8EDAC3430440F72D0059A3A7
/* README.MacOSX.rtf */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.rtf
;
path
=
README.MacOSX.rtf
;
sourceTree
=
SOURCE_ROOT
;
};
8EE1AF9F044465080059A3A7
/* about.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
about.h
;
path
=
../../../modules/gui/macosx/about.h
;
sourceTree
=
SOURCE_ROOT
;
};
8EE1AFA0044465080059A3A7
/* about.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
about.m
;
path
=
../../../modules/gui/macosx/about.m
;
sourceTree
=
SOURCE_ROOT
;
};
CC017A0B14A4C8AF00C09A4F
/* MainWindowTitle.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
MainWindowTitle.h
;
path
=
../../../modules/gui/macosx/MainWindowTitle.h
;
sourceTree
=
SOURCE_ROOT
;
};
CC017A0C14A4C8AF00C09A4F
/* MainWindowTitle.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
MainWindowTitle.m
;
path
=
../../../modules/gui/macosx/MainWindowTitle.m
;
sourceTree
=
SOURCE_ROOT
;
};
CC04321313B246DF00D7D52E
/* effects-double-buttons_dark.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
name
=
"effects-double-buttons_dark.png"
;
path
=
"Resources/mainwindow_dark/effects-double-buttons_dark.png"
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1862,8 +1864,10 @@
08FB77AFFE84173DC02AAC07
/* Classes */
=
{
isa
=
PBXGroup
;
children
=
(
8EE1AF9F044465080059A3A7
/* about.h */
,
8EE1AFA0044465080059A3A7
/* about.m */
,
1C67C8A61D58C0A40079E1C1
/* AboutWindowController.h */
,
1C67C8A71D58C0A40079E1C1
/* AboutWindowController.m */
,
1C67C8A31D58C0980079E1C1
/* HelpWindowController.h */
,
1C67C8A41D58C0980079E1C1
/* HelpWindowController.m */
,
7DF0435E1972E26A0022B534
/* AddonListDataSource.h */
,
7DF0435F1972E26A0022B534
/* AddonListDataSource.m */
,
7DB65D5218ABD6380053B874
/* AddonsWindowController.h */
,
...
...
@@ -3945,8 +3949,6 @@
files
=
(
1C15C7DC1B5146DB003AB729
/* ResumeDialogController.h in Sources */
,
1C15C7DD1B5146DB003AB729
/* ResumeDialogController.m in Sources */
,
1CCB5F511A62A724004C3E90
/* about.h in Sources */
,
1CCB5F521A62A724004C3E90
/* about.m in Sources */
,
1CCB5F531A62A724004C3E90
/* AddonListDataSource.h in Sources */
,
1CCB5F541A62A724004C3E90
/* AddonListDataSource.m in Sources */
,
1CCB5F551A62A724004C3E90
/* AddonsWindowController.h in Sources */
,
...
...
@@ -3999,6 +4001,7 @@
1CCB5F7D1A62A724004C3E90
/* VLCPlaylist.h in Sources */
,
1CCB5F7E1A62A724004C3E90
/* VLCPlaylist.m in Sources */
,
1CCB5F7F1A62A724004C3E90
/* VLCPlaylistInfo.h in Sources */
,
1C67C8A81D58C0A40079E1C1
/* AboutWindowController.m in Sources */
,
1CCB5F801A62A724004C3E90
/* VLCPlaylistInfo.m in Sources */
,
1CCB5F811A62A724004C3E90
/* prefs_widgets.h in Sources */
,
1CCB5F821A62A724004C3E90
/* prefs_widgets.m in Sources */
,
...
...
@@ -4045,6 +4048,7 @@
1CCB5FA91A62A724004C3E90
/* SPInvocationGrabbing.h in Sources */
,
1CCB5FAA1A62A724004C3E90
/* SPInvocationGrabbing.m in Sources */
,
1CCB5FAB1A62A724004C3E90
/* SPMediaKeyTap.h in Sources */
,
1C67C8A51D58C0980079E1C1
/* HelpWindowController.m in Sources */
,
1CCB5FAC1A62A724004C3E90
/* SPMediaKeyTap.m in Sources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
...
...
modules/gui/macosx/
about
.h
→
modules/gui/macosx/
AboutWindowController
.h
View file @
c53156c5
/*****************************************************************************
*
about.h: MacOS X About Panel
*
AboutWindowController.h
*****************************************************************************
* Copyright (C) 2001-2013 VLC authors and VideoLAN
* $Id$
...
...
@@ -22,12 +22,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#import <WebKit/WebKit.h> //we need to be here, because we're using a WebView object below
#import "VLCScrollingClipView.h"
#import <Cocoa/Cocoa.h>
/*****************************************************************************
* VLAboutBox interface
*****************************************************************************/
@interface
AboutWindowController
:
NSWindowController
<
NSWindowDelegate
>
{
/* main about panel and stuff related to its views */
...
...
@@ -50,16 +46,3 @@
-
(
IBAction
)
buttonAction
:(
id
)
sender
;
@end
@interface
HelpWindowController
:
NSWindowController
{
IBOutlet
WebView
*
o_help_web_view
;
//we may _not_ use id here because of method name collisions
IBOutlet
id
o_help_bwd_btn
;
IBOutlet
id
o_help_fwd_btn
;
IBOutlet
id
o_help_home_btn
;
}
-
(
IBAction
)
helpGoHome
:(
id
)
sender
;
-
(
void
)
showHelp
;
@end
modules/gui/macosx/
about
.m
→
modules/gui/macosx/
AboutWindowController
.m
View file @
c53156c5
/*****************************************************************************
*
about.m: MacOS X About Panel
*
AboutWindowController.m
*****************************************************************************
* Copyright (C) 2001-2014 VLC authors and VideoLAN
* $Id$
...
...
@@ -25,12 +25,17 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#import "AboutWindowController.h"
#import "intf.h"
#import "about.h"
#import <vlc_intf_strings.h>
#import <vlc_about.h>
#import "CompatibilityFixes.h"
#import "VLCScrollingClipView.h"
/* this is a bit weird, but we should be confident that there will be more than
* one arch to support again one day */
#define PLATFORM "Intel 64bit"
...
...
@@ -214,49 +219,3 @@
}
@end
/*****************************************************************************
* VLC Help Window Controller
*****************************************************************************/
@implementation
HelpWindowController
-
(
id
)
init
{
self
=
[
super
initWithWindowNibName
:
@"Help"
];
if
(
self
)
{
[
self
setWindowFrameAutosaveName
:
@"help"
];
}
return
self
;
}
-
(
void
)
windowDidLoad
{
[[
self
window
]
setTitle
:
_NS
(
"VLC media player Help"
)];
[
o_help_fwd_btn
setToolTip
:
_NS
(
"Next"
)];
[
o_help_bwd_btn
setToolTip
:
_NS
(
"Previous"
)];
[
o_help_home_btn
setToolTip
:
_NS
(
"Index"
)];
}
-
(
void
)
showHelp
{
[
self
showWindow
:
nil
];
[
self
helpGoHome
:
nil
];
}
-
(
IBAction
)
helpGoHome
:(
id
)
sender
{
[[
o_help_web_view
mainFrame
]
loadHTMLString
:
_NS
(
I_LONGHELP
)
baseURL:
[
NSURL
URLWithString
:
@"http://videolan.org"
]];
}
-
(
void
)
webView
:(
WebView
*
)
sender
didFinishLoadForFrame
:(
WebFrame
*
)
frame
{
/* delegate to update button states (we're the frameLoadDelegate for our help's webview)« */
[
o_help_fwd_btn
setEnabled
:
[
o_help_web_view
canGoForward
]];
[
o_help_bwd_btn
setEnabled
:
[
o_help_web_view
canGoBack
]];
}
@end
modules/gui/macosx/HelpWindowController.h
0 → 100644
View file @
c53156c5
/*****************************************************************************
* HelpWindowController.h
*****************************************************************************
* Copyright (C) 2001-2013 VLC authors and VideoLAN
* $Id$
*
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
* 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
* 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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#import <WebKit/WebKit.h> //we need to be here, because we're using a WebView object below
@interface
HelpWindowController
:
NSWindowController
{
IBOutlet
WebView
*
o_help_web_view
;
//we may _not_ use id here because of method name collisions
IBOutlet
id
o_help_bwd_btn
;
IBOutlet
id
o_help_fwd_btn
;
IBOutlet
id
o_help_home_btn
;
}
-
(
IBAction
)
helpGoHome
:(
id
)
sender
;
-
(
void
)
showHelp
;
@end
modules/gui/macosx/HelpWindowController.m
0 → 100644
View file @
c53156c5
/*****************************************************************************
* HelpWindowController.m
*****************************************************************************
* Copyright (C) 2001-2014 VLC authors and VideoLAN
* $Id$
*
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
* 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
* 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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#import "HelpWindowController.h"
#import "intf.h"
#import <vlc_intf_strings.h>
#import <vlc_about.h>
#import "CompatibilityFixes.h"
#import "VLCScrollingClipView.h"
@implementation
HelpWindowController
-
(
id
)
init
{
self
=
[
super
initWithWindowNibName
:
@"Help"
];
if
(
self
)
{
[
self
setWindowFrameAutosaveName
:
@"help"
];
}
return
self
;
}
-
(
void
)
windowDidLoad
{
[[
self
window
]
setTitle
:
_NS
(
"VLC media player Help"
)];
[
o_help_fwd_btn
setToolTip
:
_NS
(
"Next"
)];
[
o_help_bwd_btn
setToolTip
:
_NS
(
"Previous"
)];
[
o_help_home_btn
setToolTip
:
_NS
(
"Index"
)];
}
-
(
void
)
showHelp
{
[
self
showWindow
:
nil
];
[
self
helpGoHome
:
nil
];
}
-
(
IBAction
)
helpGoHome
:(
id
)
sender
{
[[
o_help_web_view
mainFrame
]
loadHTMLString
:
_NS
(
I_LONGHELP
)
baseURL:
[
NSURL
URLWithString
:
@"http://videolan.org"
]];
}
-
(
void
)
webView
:(
WebView
*
)
sender
didFinishLoadForFrame
:(
WebFrame
*
)
frame
{
/* delegate to update button states (we're the frameLoadDelegate for our help's webview)« */
[
o_help_fwd_btn
setEnabled
:
[
o_help_web_view
canGoForward
]];
[
o_help_bwd_btn
setEnabled
:
[
o_help_web_view
canGoBack
]];
}
@end
modules/gui/macosx/MainMenu.m
View file @
c53156c5
...
...
@@ -28,10 +28,11 @@
#import <vlc_playlist.h>
#import <vlc_input.h>
#import "AboutWindowController.h"
#import "open.h"
#import "about.h"
#import "AudioEffects.h"
#import "TrackSynchronization.h"
#import "HelpWindowController.h"
#import "VideoEffects.h"
#import "bookmarks.h"
#import "simple_prefs.h"
...
...
modules/gui/macosx/Makefile.am
View file @
c53156c5
...
...
@@ -20,7 +20,7 @@ gui_LTLIBRARIES = $(LTLIBmacosx)
libmacosx_plugin_la_SOURCES
=
\
helpers.h
\
about.h about
.m
\
AboutWindowController.h AboutWindowController
.m
\
AddonListDataSource.h AddonListDataSource.m
\
AddonsWindowController.h AddonsWindowController.m
\
applescript.h applescript.m
\
...
...
@@ -39,6 +39,7 @@ libmacosx_plugin_la_SOURCES = \
ExtensionsManager.h ExtensionsManager.m
\
eyetv.h eyetv.m
\
fspanel.h fspanel.m
\
HelpWindowController.h HelpWindowController.m
\
intf-prefs.h intf-prefs.m
\
intf.h intf.m
\
InputManager.h InputManager.m
\
...
...
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