Skip to content

Commit

Permalink
QuickLookUI and QuickLook symbols (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hyatt committed Jan 16, 2019
1 parent a96290f commit 76ed333
Show file tree
Hide file tree
Showing 25 changed files with 161 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/Quartz/CMakeLists.txt
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
project(Quartz)

include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/QuickLookUI/include
)

set(DYLIB_COMPAT_VERSION "1.0.0")
set(DYLIB_CURRENT_VERSION "1.0.0")

Expand All @@ -10,7 +14,15 @@ add_framework(Quartz

SOURCES
src/Quartz.c
QuickLookUI/src/QLPreviewPanel.m
QuickLookUI/src/QLPreviewView.m

DEPENDENCIES
system
objc
Foundation
AppKit
)

# Ideally would be done through a nested QuickLookUI framework
set_property(TARGET Quartz APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-reexport_library,${CMAKE_BINARY_DIR}/src/QuickLook/QuickLook ")
23 changes: 23 additions & 0 deletions src/Quartz/QuickLookUI/include/QuickLookUI/QLPreviewPanel.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling 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 3 of the License, or
(at your option) any later version.
Darling 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 Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#import <AppKit/AppKit.h>

@interface QLPreviewPanel : NSPanel
@end
23 changes: 23 additions & 0 deletions src/Quartz/QuickLookUI/include/QuickLookUI/QLPreviewView.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling 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 3 of the License, or
(at your option) any later version.
Darling 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 Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#import <AppKit/AppKit.h>

@interface QLPreviewView : NSView
@end
26 changes: 26 additions & 0 deletions src/Quartz/QuickLookUI/include/QuickLookUI/QuickLookUI.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling 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 3 of the License, or
(at your option) any later version.
Darling 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 Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _QUICKLOOKUI_H_
#define _QUICKLOOKUI_H_

#import <QuickLookUI/QLPreviewPanel.h>
#import <QuickLookUI/QLPreviewView.h>

#endif
23 changes: 23 additions & 0 deletions src/Quartz/QuickLookUI/src/QLPreviewPanel.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling 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 3 of the License, or
(at your option) any later version.
Darling 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 Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#import <QuickLookUI/QLPreviewPanel.h>

@implementation QLPreviewPanel
@end
23 changes: 23 additions & 0 deletions src/Quartz/QuickLookUI/src/QLPreviewView.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling 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 3 of the License, or
(at your option) any later version.
Darling 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 Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#import <QuickLookUI/QLPreviewView.h>

@implementation QLPreviewView
@end
3 changes: 3 additions & 0 deletions src/Quartz/TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Quartz TODO

Make nested frameworks
2 changes: 1 addition & 1 deletion src/Quartz/include/Quartz/Quartz.h
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of Darling.
Copyright (C) 2017 Lubos Dolezel
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
3 changes: 2 additions & 1 deletion src/Quartz/src/Quartz.c
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of Darling.
Copyright (C) 2017 Lubos Dolezel
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -20,6 +20,7 @@

#include <Quartz/Quartz.h>
#include <stdlib.h>
#include <stdio.h>

static int verbose = 0;

Expand Down
2 changes: 2 additions & 0 deletions src/QuickLook/CMakeLists.txt
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ add_framework(QuickLook
src/QLDebugSatelliteController.m
src/QLPreview.m
src/QLImageWrapper.m
constants.c

DEPENDENCIES
system
objc
Foundation
CoreFoundation
)
23 changes: 23 additions & 0 deletions src/QuickLook/constants.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling 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 3 of the License, or
(at your option) any later version.
Darling 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 Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <CoreFoundation/CoreFoundation.h>

const CFStringRef kQLThumbnailOptionIconModeKey = CFSTR("IconMode");
const CFStringRef kQLThumbnailOptionScaleFactorKey = CFSTR("QLThumbnailOptionScaleFactor");
Empty file modified src/QuickLook/include/QuickLook/QLDebugController.h
100755 → 100644
Empty file.
Empty file modified src/QuickLook/include/QuickLook/QLDebugSatelliteController.h
100755 → 100644
Empty file.
Empty file modified src/QuickLook/include/QuickLook/QLDebugServerController.h
100755 → 100644
Empty file.
Empty file modified src/QuickLook/include/QuickLook/QLImageWrapper.h
100755 → 100644
Empty file.
Empty file modified src/QuickLook/include/QuickLook/QLPreview.h
100755 → 100644
Empty file.
Empty file modified src/QuickLook/include/QuickLook/QLTestingLog.h
100755 → 100644
Empty file.
Empty file modified src/QuickLook/include/QuickLook/QuickLook.h
100755 → 100644
Empty file.
Empty file modified src/QuickLook/src/QLDebugController.m
100755 → 100644
Empty file.
Empty file modified src/QuickLook/src/QLDebugSatelliteController.m
100755 → 100644
Empty file.
Empty file modified src/QuickLook/src/QLDebugServerController.m
100755 → 100644
Empty file.
Empty file modified src/QuickLook/src/QLImageWrapper.m
100755 → 100644
Empty file.
Empty file modified src/QuickLook/src/QLPreview.m
100755 → 100644
Empty file.
Empty file modified src/QuickLook/src/QLTestingLog.m
100755 → 100644
Empty file.
Empty file modified src/QuickLook/src/QuickLook.m
100755 → 100644
Empty file.

0 comments on commit 76ed333

Please sign in to comment.