2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __WEExtensions_WECalendarField_H__
23 #define __WEExtensions_WECalendarField_H__
32 icon_popupcalendar.gif
41 #define HEAD_BACKGROUND_COLOR @"#FFDAAA"
42 #define HEAD_COLOR @"#000000"
43 #define HEAD_NAVIGATION_COLOR @"#6F1537"
45 #include <NGObjWeb/NGObjWeb.h>
47 @interface WECalendarField : WODynamicElement
56 WOAssociation *format;
60 WOAssociation *minute;
61 WOAssociation *second;
62 WOAssociation *useTextField;
63 WOAssociation *hourInterval;
64 WOAssociation *minuteInterval;
65 WOAssociation *secondInterval;
71 @interface WEDateFieldScript : WODynamicElement
73 WOAssociation *headBackground;
74 WOAssociation *headColor;
75 WOAssociation *headNavColor;
76 WOAssociation *labels;
77 WOAssociation *useImages;
80 + (void)appendWEDateFieldScriptToResponse:(WOResponse *)_response
81 inContext:(WOContext *)_ctx
82 headBackground: (NSString *) _hBack
83 headColor: (NSString *) _hCol
84 headNavColor: (NSString *) _hNav
86 useImages: (BOOL)_useImg;
90 @interface WECalendarField(WETimeFieldImplementation)
92 - (void)_takeValuesFromTimeFieldRequest:(WORequest *)_rq
93 inContext:(WOContext *)_ctx;
94 - (id)_invokeActionForTimeFieldRequest:(WORequest *)_rq
95 inContext:(WOContext *)_ctx;
96 - (void)_appendTimeFieldToResponse:(WOResponse *)_r inContext:(WOContext *)_cx;
98 @end /* WECalendarField(WETimeFieldImplementation) */
100 @interface WECalendarField(WEDateFieldImplementation)
102 - (void)_takeValuesFromDateFieldRequest:(WORequest *)_rq
103 inContext:(WOContext *)_ctx;
104 - (id)_invokeActionForDateFieldRequest:(WORequest *)_rq
105 inContext:(WOContext *)_ctx;
106 - (void)_appendDateFieldToResponse:(WOResponse *)_r inContext:(WOContext *)_cx;
108 @end /* WECalendarField(WEDateFieldImplementation) */
110 @interface WECalendarField(Accessors)
112 - (NSString *)elementIdWithSuffix:(NSString *)_suffix ctx:(WOContext *)_ctx;
114 - (void)setSecond:(int)_second inComponent:(WOComponent *)_comp;
115 - (int)secondInComponent:(WOComponent *)_comp;
117 - (void)setMinute:(int)_minute inComponent:(WOComponent *)_comp;
118 - (int)minuteInComponent:(WOComponent *)_comp;
120 - (void)setHour:(int)_hour inComponent:(WOComponent *)_comp;
121 - (int)hourInComponent:(WOComponent *)_comp;
123 - (void)setDay:(int)_day inComponent:(WOComponent *)_comp;
124 - (int)dayInComponent:(WOComponent *)_comp;
126 - (void)setMonth:(int)_month inComponent:(WOComponent *)_comp;
127 - (int)monthInComponent:(WOComponent *)_comp;
129 - (void)setYear:(int)_year inComponent:(WOComponent *)_comp;
130 - (int)yearInComponent:(WOComponent *)_comp;
132 - (BOOL)isSecondSettable;
133 - (BOOL)isMinuteSettable;
134 - (BOOL)isHourSettable;
135 - (BOOL)isDaySettable;
136 - (BOOL)isMonthSettable;
137 - (BOOL)isYearSettable;
139 - (BOOL)hasSecondInComponent:(WOComponent *)_comp;
140 - (BOOL)hasMinuteInComponent:(WOComponent *)_comp;
141 - (BOOL)hasHourInComponent:(WOComponent *)_comp;
142 - (BOOL)hasDayInComponent:(WOComponent *)_comp;
143 - (BOOL)hasMonthInComponent:(WOComponent *)_comp;
144 - (BOOL)hasYearInComponent:(WOComponent *)_comp;
148 #endif /* __WEExtensions_WECalendarField_H__ */