llappdelegate-objc.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * @file llappdelegate-objc.h
  3. * @brief Class interface for the Mac version's application delegate.
  4. *
  5. * $LicenseInfo:firstyear=2000&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #import <Cocoa/Cocoa.h>
  27. #import "llopenglview-objc.h"
  28. @interface LLAppDelegate : NSObject <NSApplicationDelegate>
  29. {
  30. LLNSWindow* window;
  31. NSWindow* inputWindow;
  32. LLNonInlineTextView* inputView;
  33. NSTimer* frameTimer;
  34. NSString* currentInputLanguage;
  35. }
  36. @property (assign) IBOutlet LLNSWindow* window;
  37. @property (assign) IBOutlet NSWindow* inputWindow;
  38. @property (assign) IBOutlet LLNonInlineTextView* inputView;
  39. @property (retain) NSString* currentInputLanguage;
  40. - (void) oneFrame;
  41. - (void) showInputWindow:(bool)show withEvent:(NSEvent*)textEvent;
  42. - (void) languageUpdated;
  43. - (bool) romanScript;
  44. @end
  45. @interface LLApplication : NSApplication
  46. @end