PageRenderTime 27ms CodeModel.GetById 16ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Examples/CalendarSample/EditEventWindowController.h

http://macfuse.googlecode.com/
C++ Header | 48 lines | 22 code | 8 blank | 18 comment | 0 complexity | ea6796f4dedee644ddf9af1cc71f58c9 MD5 | raw file
 1/* Copyright (c) 2007 Google Inc.
 2*
 3* Licensed under the Apache License, Version 2.0 (the "License");
 4* you may not use this file except in compliance with the License.
 5* You may obtain a copy of the License at
 6*
 7*     http://www.apache.org/licenses/LICENSE-2.0
 8*
 9* Unless required by applicable law or agreed to in writing, software
10* distributed under the License is distributed on an "AS IS" BASIS,
11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12* See the License for the specific language governing permissions and
13* limitations under the License.
14*/
15
16//
17//  EditEventWindowController.h
18//
19
20#import <Cocoa/Cocoa.h>
21
22#import "GData/GData.h"
23
24@interface EditEventWindowController : NSWindowController {
25  IBOutlet NSTextField *mTitleField;
26  IBOutlet NSTextField *mDescriptionField;
27  IBOutlet NSTextField *mReminderMinutesField;
28  IBOutlet NSPopUpButton *mReminderMethodPopup;
29  IBOutlet NSDatePicker *mStartDatePicker;
30  IBOutlet NSDatePicker *mEndDatePicker;
31  
32  __weak id mTarget;
33  SEL mDoneSEL;
34  GDataEntryCalendarEvent *mEvent;
35  BOOL mWasSaveClicked;
36}
37
38// target must be a NSWindowController or at least respond to -window
39- (void)runModalForTarget:(id)target
40                 selector:(SEL)doneSelector
41                    event:(GDataEntryCalendarEvent *)event;
42
43- (IBAction)saveButtonClicked:(id)sender;
44- (IBAction)cancelButtonClicked:(id)sender;
45
46- (BOOL)wasSaveClicked;
47- (GDataEntryCalendarEvent *)event;
48@end