aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMUILocalizerTest.h
diff options
context:
space:
mode:
authorGravatar dmaclach <dmaclach@google.com>2016-10-07 12:10:23 -0400
committerGravatar Thomas Van Lenten <thomasvl@google.com>2016-10-07 12:21:06 -0400
commit42124b3691197c3c4f52f069775fa0390a8ff942 (patch)
treeebd373d398ea64b45bdc1d196fa0a2c5f57cabfd /AppKit/GTMUILocalizerTest.h
parent57eeab4193210df8ab0c81e9d3f1ee1ad3e24492 (diff)
First cut at pruning things/updating things.
Remove a bunch of code that Google stopped using/maintaining rather than trying to update it it. Some would be hard to update, some actually has system provided replacements; others are patterns that just don't seem as common now. Prune out the code related to macOS <= 10.5, start pruning some of the really old iOS support also. Get the projects mostly limping again with modern Xcodes so tests can be run. If someone ends up on this commit via history for something they still find as useful, feel free to do a pull request to bring the snippet of code back to life and update it for current SDKs.
Diffstat (limited to 'AppKit/GTMUILocalizerTest.h')
-rw-r--r--AppKit/GTMUILocalizerTest.h99
1 files changed, 81 insertions, 18 deletions
diff --git a/AppKit/GTMUILocalizerTest.h b/AppKit/GTMUILocalizerTest.h
index d1c1774..b89b99b 100644
--- a/AppKit/GTMUILocalizerTest.h
+++ b/AppKit/GTMUILocalizerTest.h
@@ -6,9 +6,9 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
-//
+//
// http://www.apache.org/licenses/LICENSE-2.0
-//
+//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -17,27 +17,90 @@
//
#import <Cocoa/Cocoa.h>
-#import "GTMDefines.h"
@interface GTMUILocalizerTestWindowController : NSWindowController {
- IBOutlet NSWindow *otherWindow_;
- IBOutlet NSWindow *anotherWindow_;
- IBOutlet NSMenu *otherMenu_;
- IBOutlet NSTextField *bindingsTextField_;
- IBOutlet NSSearchField *bindingsSearchField_;
+ IBOutlet NSWindow *_anotherWindow;
+ IBOutlet NSMenu *_otherMenu;
+
+ // Window Items
+ IBOutlet NSTextField *_bindingsTextField;
+ IBOutlet NSSearchField *_bindingsSearchField;
+ IBOutlet NSToolbarItem *_toolbarItem1;
+ IBOutlet NSToolbarItem *_toolbarItem2;
+ IBOutlet NSTabViewItem *_tabViewItem1;
+ IBOutlet NSTabViewItem *_tabViewItem2;
+ IBOutlet NSButton *_button1;
+ IBOutlet NSButton *_button2;
+ IBOutlet NSTextField *_textField1;
+ IBOutlet NSTextField *_textField2;
+ IBOutlet NSButton *_checkbox1;
+ IBOutlet NSButton *_checkbox2;
+ IBOutlet NSMenuItem *_menuItem1;
+ IBOutlet NSMenuItem *_menuItem2;
+ IBOutlet NSMenuItem *_menuItem3;
+ IBOutlet NSButtonCell *_radio1;
+ IBOutlet NSButtonCell *_radio2;
+
+ // AnotherWindow Items
+ IBOutlet NSBox *_aBox;
+ IBOutlet NSButton *_aButton1;
+ IBOutlet NSButton *_aButton2;
+ IBOutlet NSButton *_aCheckbox1;
+ IBOutlet NSButton *_aCheckbox2;
+ IBOutlet NSButtonCell *_aRadio1;
+ IBOutlet NSButtonCell *_aRadio2;
+ IBOutlet NSTextField *_aTextField1;
+ IBOutlet NSTextField *_aTextField2;
+ IBOutlet NSSegmentedControl *_aSegmented;
+ IBOutlet NSComboBox *_aComboBox;
}
-- (NSWindow *)otherWindow;
-- (NSWindow *)anotherWindow;
-- (NSMenu *)otherMenu;
-- (NSTextField *)bindingsTextField;
-- (NSSearchField *)bindingsSearchField;
+
+@property (nonatomic, retain) NSWindow *anotherWindow;
+@property (nonatomic, retain) NSMenu *otherMenu;
+
+// Window Items
+@property (nonatomic, retain) NSTextField *bindingsTextField;
+@property (nonatomic, retain) NSSearchField *bindingsSearchField;
+@property (nonatomic, retain) NSToolbarItem *toolbarItem1;
+@property (nonatomic, retain) NSToolbarItem *toolbarItem2;
+@property (nonatomic, retain) NSTabViewItem *tabViewItem1;
+@property (nonatomic, retain) NSTabViewItem *tabViewItem2;
+@property (nonatomic, retain) NSButton *button1;
+@property (nonatomic, retain) NSButton *button2;
+@property (nonatomic, retain) NSTextField *textField1;
+@property (nonatomic, retain) NSTextField *textField2;
+@property (nonatomic, retain) NSButton *checkbox1;
+@property (nonatomic, retain) NSButton *checkbox2;
+@property (nonatomic, retain) NSMenuItem *menuItem1;
+@property (nonatomic, retain) NSMenuItem *menuItem2;
+@property (nonatomic, retain) NSMenuItem *menuItem3;
+@property (nonatomic, retain) NSButtonCell *radio1;
+@property (nonatomic, retain) NSButtonCell *radio2;
+
+// AnotherWindow Items
+@property (nonatomic, retain) NSBox *aBox;
+@property (nonatomic, retain) NSButton *aButton1;
+@property (nonatomic, retain) NSButton *aButton2;
+@property (nonatomic, retain) NSButton *aCheckbox1;
+@property (nonatomic, retain) NSButton *aCheckbox2;
+@property (nonatomic, retain) NSButtonCell *aRadio1;
+@property (nonatomic, retain) NSButtonCell *aRadio2;
+@property (nonatomic, retain) NSTextField *aTextField1;
+@property (nonatomic, retain) NSTextField *aTextField2;
+@property (nonatomic, retain) NSSegmentedControl *aSegmented;
+@property (nonatomic, retain) NSComboBox *aComboBox;
+
@end
-#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
@interface GTMUILocalizerTestViewController : NSViewController {
- IBOutlet NSView *otherView_;
+ IBOutlet NSView *_otherView;
+ IBOutlet NSButton *_otherButton;
+ IBOutlet NSButton *_viewButton;
+ IBOutlet NSTextField *_pollyTextField;
}
-- (NSView *)otherView;
+
+@property (nonatomic, retain) NSView *otherView;
+@property (nonatomic, retain) NSButton *otherButton;
+@property (nonatomic, retain) NSButton *viewButton;
+@property (nonatomic, retain) NSTextField *pollyTextField;
@end
-#endif // MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
-