]> err.no Git - sope/blob - sope-appserver/WEExtensions/WETabView.h
added strict OSX bundle dependencies
[sope] / sope-appserver / WEExtensions / WETabView.h
1 /*
2   Copyright (C) 2000-2005 SKYRIX Software AG
3
4   This file is part of SOPE.
5
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
9   later version.
10
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.
15
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
19   02111-1307, USA.
20 */
21
22 #ifndef __WETabView_H__
23 #define __WETabView_H__
24
25 /*
26   This is a library private header!
27 */
28
29 #include <NGObjWeb/WODynamicElement.h>
30
31 /*
32   Note: Does not support tab-head-creation from nested components!
33   Why:  => because selection is manipulated in sub-elements
34   
35   WETabView creates element-IDs like
36
37     .h.*.$key.  for the tab-items   (head-mode)
38     .b.$key...  for the tab-content (content-mode) (new, hh)
39   
40   Note: the WETabView JavaScript mode cannot handle duplicate tab-keys.
41 */
42
43 @interface WETabView : WODynamicElement
44 {
45   WOAssociation *selection;
46
47   /* config: */
48   WOAssociation *bgColor;
49   WOAssociation *nonSelectedBgColor;
50   WOAssociation *leftCornerIcon;
51   WOAssociation *rightCornerIcon;
52   
53   WOAssociation *tabIcon;
54   WOAssociation *leftTabIcon;
55   WOAssociation *selectedTabIcon;
56   
57   WOAssociation *asBackground;
58   WOAssociation *width;
59   WOAssociation *height;
60   WOAssociation *activeBgColor;
61   WOAssociation *inactiveBgColor;
62   
63   WOAssociation *disabledTabKeys;
64   
65   WOAssociation *fontColor;
66   WOAssociation *fontSize;
67   WOAssociation *fontFace;
68   
69   id            template;
70 }
71
72 @end
73
74 @interface WETabItem : WODynamicElement
75 {
76   WOAssociation *key;
77   WOAssociation *icon;
78   WOAssociation *label;
79   WOAssociation *action;
80   WOAssociation *isScript;
81   WOAssociation *href;
82   WOAssociation *actionClass;
83   WOAssociation *directActionName;
84   
85   /* config: */
86   WOAssociation *tabIcon;
87   WOAssociation *leftTabIcon;
88   WOAssociation *selectedTabIcon;
89
90   WOAssociation *asBackground;
91   WOAssociation *width;
92   WOAssociation *height;
93   WOAssociation *activeBgColor;
94   WOAssociation *inactiveBgColor;
95   
96   id            template;
97 }
98
99 @end
100
101 @interface WETabItemInfo : NSObject
102 {
103 @public
104   NSString *label;
105   NSString *icon;
106   NSString *key;
107   NSString *uri;
108   NSString *tabIcon;
109   NSString *leftIcon;
110   NSString *selIcon;
111
112   int      asBackground; // 0 -> not set, 1 -> YES, else -> NO
113   NSString *width;
114   NSString *height;
115   NSString *activeBg;
116   NSString *inactiveBg;
117
118   BOOL     isScript;
119 }
120 @end
121
122 #endif /* __WETabView_H__ */