]> err.no Git - scalable-opengroupware.org/blob - SOGo/UI/Common/UIxTabView.h
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@103 d1b88da0-ebda-0310-925b-ed51d...
[scalable-opengroupware.org] / SOGo / UI / Common / UIxTabView.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 __UIxTabView_H__
24 #define __UIxTabView_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   UIxTabView 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   !!! UIxTabView JavaScript can't handle duplicate tab-keys !!!
43 */
44
45 @interface UIxTabView : WODynamicElement
46 {
47   WOAssociation *selection;
48
49   /* config: */
50   WOAssociation *headerStyle;
51   WOAssociation *bodyStyle;
52   WOAssociation *tabStyle;
53   WOAssociation *selectedTabStyle;
54
55   /* old config: */
56   WOAssociation *bgColor;
57   WOAssociation *nonSelectedBgColor;
58   WOAssociation *leftCornerIcon;
59   WOAssociation *rightCornerIcon;
60   
61   WOAssociation *tabIcon;
62   WOAssociation *leftTabIcon;
63   WOAssociation *selectedTabIcon;
64   
65   WOAssociation *asBackground;
66   WOAssociation *width;
67   WOAssociation *height;
68   WOAssociation *activeBgColor;
69   WOAssociation *inactiveBgColor;
70
71   WOAssociation *fontColor;
72   WOAssociation *fontSize;
73   WOAssociation *fontFace;
74
75   id            template;
76 }
77
78 @end
79
80 @interface UIxTabItem : WODynamicElement
81 {
82   WOAssociation *key;
83   WOAssociation *label;
84
85   WOAssociation *href;
86   WOAssociation *isScript;
87
88   WOAssociation *action;
89   WOAssociation *icon;
90
91   /* config: */
92   WOAssociation *tabStyle;
93   WOAssociation *selectedTabStyle;
94
95   /* old config */
96   WOAssociation *tabIcon;
97   WOAssociation *leftTabIcon;
98   WOAssociation *selectedTabIcon;
99
100   WOAssociation *asBackground;
101   WOAssociation *width;
102   WOAssociation *height;
103   WOAssociation *activeBgColor;
104   WOAssociation *inactiveBgColor;
105   
106   id            template;
107 }
108
109 @end
110
111 @interface UIxTabItemInfo : NSObject
112 {
113 @public
114   NSString *label;
115   NSString *icon;
116   NSString *key;
117   NSString *uri;
118   NSString *tabIcon;
119   NSString *leftIcon;
120   NSString *selIcon;
121   NSString *tabStyle;
122   NSString *selectedTabStyle;
123
124   int      asBackground; // 0 -> not set, 1 -> YES, else -> NO
125   NSString *width;
126   NSString *height;
127   NSString *activeBg;
128   NSString *inactiveBg;
129
130   BOOL     isScript;
131 }
132 @end
133
134 #endif /* __UIxTabView_H__ */