Author: gcasa
Date: Sun Jun 14 23:47:43 2015
New Revision: 38637

URL: http://svn.gna.org/viewcvs/gnustep?rev=38637&view=rev
Log:
Add skeleton for NSAnimationContext.

Added:
    libs/gui/trunk/Headers/AppKit/NSAnimationContext.h
    libs/gui/trunk/Source/NSAnimationContext.m
Modified:
    libs/gui/trunk/ChangeLog
    libs/gui/trunk/Source/GNUmakefile

Modified: libs/gui/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/ChangeLog?rev=38637&r1=38636&r2=38637&view=diff
==============================================================================
--- libs/gui/trunk/ChangeLog    (original)
+++ libs/gui/trunk/ChangeLog    Sun Jun 14 23:47:43 2015
@@ -1,3 +1,9 @@
+2015-06-14 17:47-EDT Gregory John Casamento <[email protected]>
+
+       * Headers/AppKit/NSAnimationContext.h
+       * Source/GNUmakefile
+       * Source/NSAnimationContext.m: Add skeleton for NSAnimationContext.
+
 2015-06-12 Fred Kiefer <[email protected]>
 
        * Source/NSSplitView.m: Be sure to adjust subviews before setting

Added: libs/gui/trunk/Headers/AppKit/NSAnimationContext.h
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Headers/AppKit/NSAnimationContext.h?rev=38637&view=auto
==============================================================================
--- libs/gui/trunk/Headers/AppKit/NSAnimationContext.h  (added)
+++ libs/gui/trunk/Headers/AppKit/NSAnimationContext.h  Sun Jun 14 23:47:43 2015
@@ -0,0 +1,53 @@
+/*
+   NSAnimationContext.h
+ 
+   Created by Gregory John Casamento on Wed Jun 10 2015.
+   Copyright (c) 2015 Free Software Foundation, Inc.
+ 
+   Author: Gregory Casamento <[email protected]>
+ 
+   This file is part of the GNUstep GUI Library.
+ 
+   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; either
+   version 2 of the License, or (at your option) any later version.
+
+   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; see the file COPYING.LIB.
+   If not, see <http://www.gnu.org/licenses/> or write to the 
+   Free Software Foundation, 51 Franklin Street, Fifth Floor, 
+   Boston, MA 02110-1301, USA.
+ */ 
+
+
+#ifndef _GNUstep_H_NSAnimationContext_
+#define _GNUstep_H_NSAnimationContext_
+
+#import <Foundation/NSObject.h>
+#import <Foundation/NSDate.h>
+
+@interface NSAnimationContext : NSObject
+{
+  NSTimeInterval _duration;
+}
+
+// Begin and end grouping
++ (void) beginGrouping;
++ (void) endGrouping;
+
+// Retrieve current context
++ (NSAnimationContext *)currentContext;
+
+// Properties...
+- (void) setDuration: (NSTimeInterval)duration;
+- (NSTimeInterval) duration;
+
+@end
+
+#endif

Modified: libs/gui/trunk/Source/GNUmakefile
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/GNUmakefile?rev=38637&r1=38636&r2=38637&view=diff
==============================================================================
--- libs/gui/trunk/Source/GNUmakefile   (original)
+++ libs/gui/trunk/Source/GNUmakefile   Sun Jun 14 23:47:43 2015
@@ -48,6 +48,7 @@
 NSAffineTransform.m \
 NSAlert.m \
 NSAnimation.m \
+NSAnimationContext.m \
 NSApplication.m \
 NSArrayController.m \
 NSAttributedString.m \
@@ -278,6 +279,7 @@
 NSAffineTransform.h \
 NSAlert.h \
 NSAnimation.h \
+NSAnimationContext.h \
 NSApplication.h \
 NSArrayController.h \
 NSBezierPath.h \

Added: libs/gui/trunk/Source/NSAnimationContext.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSAnimationContext.m?rev=38637&view=auto
==============================================================================
--- libs/gui/trunk/Source/NSAnimationContext.m  (added)
+++ libs/gui/trunk/Source/NSAnimationContext.m  Sun Jun 14 23:47:43 2015
@@ -0,0 +1,61 @@
+/*
+   NSAnimationContext.h
+ 
+   Created by Gregory John Casamento on Wed Jun 10 2015.
+   Copyright (c) 2015 Free Software Foundation, Inc.
+ 
+   Author: Gregory Casamento <[email protected]>
+ 
+   This file is part of the GNUstep GUI Library.
+ 
+   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; either
+   version 2 of the License, or (at your option) any later version.
+
+   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; see the file COPYING.LIB.
+   If not, see <http://www.gnu.org/licenses/> or write to the 
+   Free Software Foundation, 51 Franklin Street, Fifth Floor, 
+   Boston, MA 02110-1301, USA.
+ */ 
+
+#import <AppKit/NSAnimationContext.h>
+
+static NSAnimationContext *_currentContext = nil;
+
+@implementation NSAnimationContext : NSObject
+
+// Begin and end grouping
++ (void) beginGrouping
+{
+}
+
++ (void) endGrouping
+{
+}
+
+// Retrieve current context
++ (NSAnimationContext *)currentContext
+{
+  return _currentContext;
+}
+
+// Properties...
+- (void) setDuration: (NSTimeInterval)duration
+{
+  _duration = duration;
+}
+
+- (NSTimeInterval) duration
+{
+  return _duration;
+}
+
+@end
+


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to