Skip to content
Snippets Groups Projects
Commit 623077e6 authored by Geenz's avatar Geenz
Browse files

Added license headers.

parent 860b86e3
No related branches found
No related tags found
No related merge requests found
// /**
// LLAppDelegate.h * @file llappdelegate-objc.h
// SecondLife * @brief Class interface for the Mac version's application delegate.
// *
// Created by Geenz on 12/16/12. * $LicenseInfo:firstyear=2000&license=viewerlgpl$
// * Second Life Viewer Source Code
// * Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import "llopenglview-objc.h" #import "llopenglview-objc.h"
......
// /**
// LLOpenGLView.h * @file llopenglview-objc.h
// SecondLife * @brief Class interfaces for most of the Mac facing window functionality.
// *
// Created by Geenz on 10/2/12. * $LicenseInfo:firstyear=2000&license=viewerlgpl$
// * Second Life Viewer Source Code
// * Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
#ifndef LLOpenGLView_H #ifndef LLOpenGLView_H
#define LLOpenGLView_H #define LLOpenGLView_H
......
// /**
// LLOpenGLView.m * @file llopenglview-objc.mm
// SecondLife * @brief Class implementation for most of the Mac facing window functionality.
// *
// Created by Geenz on 10/2/12. * $LicenseInfo:firstyear=2000&license=viewerlgpl$
// * Second Life Viewer Source Code
// * Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
#import "llopenglview-objc.h" #import "llopenglview-objc.h"
#include "llwindowmacosx-objc.h" #include "llwindowmacosx-objc.h"
......
/** /**
* @file llwindowmacosx-objc.mm * @file llwindowmacosx-objc.mm
* @brief Definition of functions shared between llwindowmacosx.cpp * @brief Definition of functions shared between llwindowmacosx.cpp
* and llwindowmacosx-objc.mm. * and llwindowmacosx-objc.mm.
...@@ -6,21 +6,21 @@ ...@@ -6,21 +6,21 @@
* $LicenseInfo:firstyear=2006&license=viewerlgpl$ * $LicenseInfo:firstyear=2006&license=viewerlgpl$
* Second Life Viewer Source Code * Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc. * Copyright (C) 2010, Linden Research, Inc.
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; * License as published by the Free Software Foundation;
* version 2.1 of the License only. * version 2.1 of the License only.
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$ * $/LicenseInfo$
*/ */
...@@ -52,10 +52,10 @@ void setupCocoa() ...@@ -52,10 +52,10 @@ void setupCocoa()
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// The following prevents the Cocoa command line parser from trying to open 'unknown' arguements as documents. // The following prevents the Cocoa command line parser from trying to open 'unknown' arguements as documents.
// ie. running './secondlife -set Language fr' would cause a pop-up saying can't open document 'fr' // ie. running './secondlife -set Language fr' would cause a pop-up saying can't open document 'fr'
// when init'ing the Cocoa App window. // when init'ing the Cocoa App window.
[[NSUserDefaults standardUserDefaults] setObject:@"NO" forKey:@"NSTreatUnknownArgumentsAsOpen"]; [[NSUserDefaults standardUserDefaults] setObject:@"NO" forKey:@"NSTreatUnknownArgumentsAsOpen"];
[pool release]; [pool release];
inited = true; inited = true;
...@@ -100,17 +100,17 @@ const unsigned short *copyFromPBoard() ...@@ -100,17 +100,17 @@ const unsigned short *copyFromPBoard()
CursorRef createImageCursor(const char *fullpath, int hotspotX, int hotspotY) CursorRef createImageCursor(const char *fullpath, int hotspotX, int hotspotY)
{ {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// extra retain on the NSCursor since we want it to live for the lifetime of the app. // extra retain on the NSCursor since we want it to live for the lifetime of the app.
NSCursor *cursor = NSCursor *cursor =
[[[NSCursor alloc] [[[NSCursor alloc]
initWithImage: initWithImage:
[[[NSImage alloc] initWithContentsOfFile: [[[NSImage alloc] initWithContentsOfFile:
[NSString stringWithFormat:@"%s", fullpath] [NSString stringWithFormat:@"%s", fullpath]
]autorelease] ]autorelease]
hotSpot:NSMakePoint(hotspotX, hotspotY) hotSpot:NSMakePoint(hotspotX, hotspotY)
]retain]; ]retain];
[pool release]; [pool release];
return (CursorRef)cursor; return (CursorRef)cursor;
...@@ -209,7 +209,7 @@ OSErr setImageCursor(CursorRef ref) ...@@ -209,7 +209,7 @@ OSErr setImageCursor(CursorRef ref)
NSWindowRef createNSWindow(int x, int y, int width, int height) NSWindowRef createNSWindow(int x, int y, int width, int height)
{ {
LLNSWindow *window = [[LLNSWindow alloc]initWithContentRect:NSMakeRect(x, y, width, height) LLNSWindow *window = [[LLNSWindow alloc]initWithContentRect:NSMakeRect(x, y, width, height)
styleMask:NSTitledWindowMask | NSResizableWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSTexturedBackgroundWindowMask backing:NSBackingStoreBuffered defer:NO]; styleMask:NSTitledWindowMask | NSResizableWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSTexturedBackgroundWindowMask backing:NSBackingStoreBuffered defer:NO];
[window makeKeyAndOrderFront:nil]; [window makeKeyAndOrderFront:nil];
[window setAcceptsMouseMovedEvents:TRUE]; [window setAcceptsMouseMovedEvents:TRUE];
return window; return window;
...@@ -391,13 +391,13 @@ void makeFirstResponder(NSWindowRef window, GLViewRef view) ...@@ -391,13 +391,13 @@ void makeFirstResponder(NSWindowRef window, GLViewRef view)
} }
/* /*
GLViewRef getGLView() GLViewRef getGLView()
{ {
return [(LLAppDelegate*)[[NSApplication sharedApplication] delegate] glview]; return [(LLAppDelegate*)[[NSApplication sharedApplication] delegate] glview];
} }
*/ */
unsigned int getModifiers() unsigned int getModifiers()
{ {
return [NSEvent modifierFlags]; return [NSEvent modifierFlags];
} }
// /**
// LLAppDelegate.m * @file llappdelegate-objc.mm
// SecondLife * @brief Class implementation for the Mac version's application delegate.
// *
// Created by Geenz on 12/16/12. * $LicenseInfo:firstyear=2000&license=viewerlgpl$
// * Second Life Viewer Source Code
// * Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
#import "llappdelegate-objc.h" #import "llappdelegate-objc.h"
#include "llwindowmacosx-objc.h" #include "llwindowmacosx-objc.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment