]> err.no Git - sope/blob - skyrix-sope/WEExtensions/WETabView.h
added svn:keywords and svn:ignore where appropriate. removed CVS artifacts.
[sope] / skyrix-sope / WEExtensions / WETabView.h
1 /*
2   Copyright (C) 2000-2004 SKYRIX Software AG
3
4   This file is part of OpenGroupware.org.
5
6   OGo 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   OGo 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 OGo; 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 // $Id$
22
23 #ifndef __WETabView_H__
24 #define __WETabView_H__
25
26 /*
27   This is a library private header !
28 */
29
30 #include <NGObjWeb/WODynamicElement.h>
31
32 /*
33   Does not support tab-head-creation from nested components !!!
34
35   hh: Why not ??? -> Because selection is manipulated in sub-elements
36
37   WETabView creates element-IDs like
38
39     .h.*.$key.  for the tab-items   (head-mode)
40     .b.$key...  for the tab-content (content-mode) (new, hh)
41
42   !!! WETabView JavaScript can't handle duplicate tab-keys !!!
43 */
44
45 @interface WETabView : WODynamicElement
46 {
47   WOAssociation *selection;
48
49   /* config: */
50   WOAssociation *bgColor;
51   WOAssociation *nonSelectedBgColor;
52   WOAssociation *leftCornerIcon;
53   WOAssociation *rightCornerIcon;
54   
55   WOAssociation *tabIcon;
56   WOAssociation *leftTabIcon;
57   WOAssociation *selectedTabIcon;
58   
59   WOAssociation *asBackground;
60   WOAssociation *width;
61   WOAssociation *height;
62   WOAssociation *activeBgColor;
63   WOAssociation *inactiveBgColor;
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
82   /* config: */
83   WOAssociation *tabIcon;
84   WOAssociation *leftTabIcon;
85   WOAssociation *selectedTabIcon;
86
87   WOAssociation *asBackground;
88   WOAssociation *width;
89   WOAssociation *height;
90   WOAssociation *activeBgColor;
91   WOAssociation *inactiveBgColor;
92   
93   id            template;
94 }
95
96 @end
97
98 @interface WETabItemInfo : NSObject
99 {
100 @public
101   NSString *label;
102   NSString *icon;
103   NSString *key;
104   NSString *uri;
105   NSString *tabIcon;
106   NSString *leftIcon;
107   NSString *selIcon;
108
109   int      asBackground; // 0 -> not set, 1 -> YES, else -> NO
110   NSString *width;
111   NSString *height;
112   NSString *activeBg;
113   NSString *inactiveBg;
114
115   BOOL     isScript;
116 }
117 @end
118
119 #endif /* __WETabView_H__ */