Skip to content

Commit

Permalink
Add support for Mac QuickLook thumbnail generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcobbs committed Feb 3, 2018
1 parent 4f6209d commit 19f7235
Show file tree
Hide file tree
Showing 10 changed files with 793 additions and 4 deletions.
16 changes: 16 additions & 0 deletions ChangeHistory.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,22 @@ <h2>Change history</h2>
</th>
</tr>

<tr><td class="NoWrap" align="right">
<b class="Bigger">4.3.1</b><br/>
(Mac-only)<br/>
(?? ???, 2018)
</td>
<td colspan="2">
<b>Additions</b>
<ul>
<li>Added support for Mac QuickLook thumbnails for .ldr and .mpd files.</li>
</ul>
<b>Bug Fixes</b>
<ul>
<li>Fixed command line snapshot generation to work in High Sierra.</li>
</ul>
</td></tr>

<tr><td class="NoWrap" align="right">
<b class="Bigger">4.3</b><br/>
(30 Jan, 2018)
Expand Down
4 changes: 2 additions & 2 deletions MacOSX/LDView/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.3</string>
<string>4.3.1 Beta 1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>4</string>
<string>5</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
Expand Down
57 changes: 57 additions & 0 deletions MacOSX/LDView/LDView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
1FBE9DD80CD3F3D200334DA9 /* SaveSnapshotViewOwner.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1FBE9DD70CD3F3D200334DA9 /* SaveSnapshotViewOwner.mm */; };
1FBE9E1D0CD3F66500334DA9 /* SaveSnapshotView.nib in Resources */ = {isa = PBXBuildFile; fileRef = 1FBE9E1B0CD3F66500334DA9 /* SaveSnapshotView.nib */; };
1FBE9E390CD3FA2200334DA9 /* ViewOwnerBase.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1FBE9E380CD3FA2200334DA9 /* ViewOwnerBase.mm */; };
1FC1B8E32025A7450008819D /* LDViewQuickLook.qlgenerator in Copy QuickLook Generator */ = {isa = PBXBuildFile; fileRef = 1FA9071B2025A3F100379D4D /* LDViewQuickLook.qlgenerator */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1FCD57250CCBFDCD005EDCE4 /* CommandLineSnapshot.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1FCD57240CCBFDCD005EDCE4 /* CommandLineSnapshot.mm */; };
1FD4D8310BA4CF8900419677 /* ModelWindow.nib in Resources */ = {isa = PBXBuildFile; fileRef = 1FD4D82F0BA4CF8900419677 /* ModelWindow.nib */; };
1FD4D8350BA4D00E00419677 /* Preferences.nib in Resources */ = {isa = PBXBuildFile; fileRef = 1FD4D8330BA4D00E00419677 /* Preferences.nib */; };
Expand Down Expand Up @@ -244,6 +245,20 @@
remoteGlobalIDString = D2AAC07D0554694100DB518D;
remoteInfo = TRE;
};
1FA9071A2025A3F100379D4D /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 1FA907162025A3F000379D4D /* LDViewQuickLook.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 1FA906F820259EFB00379D4D;
remoteInfo = LDViewQuickLook;
};
1FC1B8DF2025A6760008819D /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 1FA907162025A3F000379D4D /* LDViewQuickLook.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = 1FA906F720259EFB00379D4D;
remoteInfo = LDViewQuickLook;
};
1FD9747F12BB2C0000FFB5E3 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 1FD9747812BB2C0000FFB5E3 /* 3rdParty.xcodeproj */;
Expand All @@ -267,6 +282,20 @@
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
1FC1B8E22025A6FF0008819D /* Copy QuickLook Generator */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = Contents/Library/QuickLook;
dstSubfolderSpec = 1;
files = (
1FC1B8E32025A7450008819D /* LDViewQuickLook.qlgenerator in Copy QuickLook Generator */,
);
name = "Copy QuickLook Generator";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
Expand Down Expand Up @@ -409,6 +438,7 @@
1F92F61D0A5A267C00AE8086 /* LDView.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = LDView.icns; sourceTree = "<group>"; };
1F9BB9040D9F351500B06DDE /* SnapshotAlertHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SnapshotAlertHandler.h; sourceTree = "<group>"; };
1F9BB9050D9F351500B06DDE /* SnapshotAlertHandler.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SnapshotAlertHandler.mm; sourceTree = "<group>"; };
1FA907162025A3F000379D4D /* LDViewQuickLook.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = LDViewQuickLook.xcodeproj; path = ../LDViewQuickLook/LDViewQuickLook.xcodeproj; sourceTree = "<group>"; };
1FBE9DD60CD3F3D200334DA9 /* SaveSnapshotViewOwner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SaveSnapshotViewOwner.h; sourceTree = "<group>"; };
1FBE9DD70CD3F3D200334DA9 /* SaveSnapshotViewOwner.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SaveSnapshotViewOwner.mm; sourceTree = "<group>"; };
1FBE9E1C0CD3F66500334DA9 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/SaveSnapshotView.nib; sourceTree = "<group>"; };
Expand Down Expand Up @@ -698,6 +728,7 @@
1F2DD2660DE15E6900C675D7 /* LDExporter.xcodeproj */,
1F240BA60A588BB800691116 /* LDLib.xcodeproj */,
1F240B9F0A588BA700691116 /* LDLoader.xcodeproj */,
1FA907162025A3F000379D4D /* LDViewQuickLook.xcodeproj */,
1F240B960A588B9000691116 /* TCFoundation.xcodeproj */,
1F240BAD0A588BC600691116 /* TRE.xcodeproj */,
);
Expand All @@ -712,6 +743,14 @@
name = Products;
sourceTree = "<group>";
};
1FA907172025A3F000379D4D /* Products */ = {
isa = PBXGroup;
children = (
1FA9071B2025A3F100379D4D /* LDViewQuickLook.qlgenerator */,
);
name = Products;
sourceTree = "<group>";
};
1FB355130C55C16400216FBE /* Nibs */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -957,11 +996,13 @@
buildPhases = (
8D1107290486CEB800E47090 /* Resources */,
8D11072C0486CEB800E47090 /* Sources */,
1FC1B8E22025A6FF0008819D /* Copy QuickLook Generator */,
8D11072E0486CEB800E47090 /* Frameworks */,
);
buildRules = (
);
dependencies = (
1FC1B8E02025A6760008819D /* PBXTargetDependency */,
1F6A747F0C4DEEFF00DAF5C8 /* PBXTargetDependency */,
1F6A74810C4DEF0800DAF5C8 /* PBXTargetDependency */,
1F6A74830C4DEF0C00DAF5C8 /* PBXTargetDependency */,
Expand Down Expand Up @@ -1012,6 +1053,10 @@
ProductGroup = 1F240BA00A588BA700691116 /* Products */;
ProjectRef = 1F240B9F0A588BA700691116 /* LDLoader.xcodeproj */;
},
{
ProductGroup = 1FA907172025A3F000379D4D /* Products */;
ProjectRef = 1FA907162025A3F000379D4D /* LDViewQuickLook.xcodeproj */;
},
{
ProductGroup = 1F240B970A588B9000691116 /* Products */;
ProjectRef = 1F240B960A588B9000691116 /* TCFoundation.xcodeproj */;
Expand Down Expand Up @@ -1064,6 +1109,13 @@
remoteRef = 1F2DD26D0DE15E6900C675D7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
1FA9071B2025A3F100379D4D /* LDViewQuickLook.qlgenerator */ = {
isa = PBXReferenceProxy;
fileType = wrapper.cfbundle;
path = LDViewQuickLook.qlgenerator;
remoteRef = 1FA9071A2025A3F100379D4D /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
1FD9748012BB2C0000FFB5E3 /* lib3rdParty.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
Expand Down Expand Up @@ -1277,6 +1329,11 @@
name = TRE;
targetProxy = 1F6A74840C4DEF1000DAF5C8 /* PBXContainerItemProxy */;
};
1FC1B8E02025A6760008819D /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = LDViewQuickLook;
targetProxy = 1FC1B8DF2025A6760008819D /* PBXContainerItemProxy */;
};
1FD9748212BB2C3000FFB5E3 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = 3rdParty;
Expand Down
5 changes: 3 additions & 2 deletions MacOSX/LDView/builddmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ if [ -d distrib/LDView ]; then
rm -rf distrib/LDView
fi
mkdir distrib/LDView
FileVersion=`grep 'VALUE "FileVersion"' ../../LDView.rc | cut -d, -f2 | cut -d\" -f2 | cut -d\\\\ -f1 | sed "s/ /_/g"`
Filename="LDView_${FileVersion}"
FileVersion=`plutil -p /Applications/LDView.app/Contents/Info.plist | grep CFBundleShortVersionString | cut -d= -f2 | cut -d\" -f2`
#FileVersion=`grep 'VALUE "FileVersion"' ../../LDView.rc | cut -d, -f2 | cut -d\" -f2 | cut -d\\\\ -f1 | sed "s/ /_/g"`
Filename="LDView ${FileVersion}"
echo Copying files...
cp ../../8464.mpd distrib/LDView/
cp ../../ChangeHistory.html distrib/LDView
Expand Down

0 comments on commit 19f7235

Please sign in to comment.