/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. // EditEventWindowController.h
  17. //
  18. #import <Cocoa/Cocoa.h>
  19. #import "GData/GData.h"
  20. @interface EditEventWindowController : NSWindowController {
  21. IBOutlet NSTextField *mTitleField;
  22. IBOutlet NSTextField *mDescriptionField;
  23. IBOutlet NSTextField *mReminderMinutesField;
  24. IBOutlet NSPopUpButton *mReminderMethodPopup;
  25. IBOutlet NSDatePicker *mStartDatePicker;
  26. IBOutlet NSDatePicker *mEndDatePicker;
  27. __weak id mTarget;
  28. SEL mDoneSEL;
  29. GDataEntryCalendarEvent *mEvent;
  30. BOOL mWasSaveClicked;
  31. }
  32. // target must be a NSWindowController or at least respond to -window
  33. - (void)runModalForTarget:(id)target
  34. selector:(SEL)doneSelector
  35. event:(GDataEntryCalendarEvent *)event;
  36. - (IBAction)saveButtonClicked:(id)sender;
  37. - (IBAction)cancelButtonClicked:(id)sender;
  38. - (BOOL)wasSaveClicked;
  39. - (GDataEntryCalendarEvent *)event;
  40. @end