]> err.no Git - scalable-opengroupware.org/commitdiff
added common
authorznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 7 Jun 2004 10:52:47 +0000 (10:52 +0000)
committerznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 7 Jun 2004 10:52:47 +0000 (10:52 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@15 d1b88da0-ebda-0310-925b-ed51d893ca5b

17 files changed:
ZideStore/UI-X/Common/CommonUIProduct.m [new file with mode: 0644]
ZideStore/UI-X/Common/GNUmakefile [new file with mode: 0644]
ZideStore/UI-X/Common/OGoAppFrame.m [new file with mode: 0644]
ZideStore/UI-X/Common/OGoAppFrame.wox [new file with mode: 0644]
ZideStore/UI-X/Common/OGoAppHeader.m [new file with mode: 0644]
ZideStore/UI-X/Common/OGoAppHeader.wox [new file with mode: 0644]
ZideStore/UI-X/Common/OGoAppNavigation.m [new file with mode: 0644]
ZideStore/UI-X/Common/OGoAppNavigation.wox [new file with mode: 0644]
ZideStore/UI-X/Common/OGoPageFrame.m [new file with mode: 0644]
ZideStore/UI-X/Common/OGoPageFrame.wox [new file with mode: 0644]
ZideStore/UI-X/Common/Version [new file with mode: 0644]
ZideStore/UI-X/Common/bundle-info.plist [new file with mode: 0644]
ZideStore/UI-X/Common/calendar.css [new file with mode: 0644]
ZideStore/UI-X/Common/common.h [new file with mode: 0644]
ZideStore/UI-X/Common/images/OGoLogo.gif [new file with mode: 0755]
ZideStore/UI-X/Common/product.plist [new file with mode: 0644]
ZideStore/UI-X/Common/zidestoreui.css [new file with mode: 0644]

diff --git a/ZideStore/UI-X/Common/CommonUIProduct.m b/ZideStore/UI-X/Common/CommonUIProduct.m
new file mode 100644 (file)
index 0000000..b5a4da4
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+  Copyright (C) 2000-2003 SKYRIX Software AG
+
+  This file is part of OGo
+
+  OGo is free software; you can redistribute it and/or modify it under
+  the terms of the GNU Lesser General Public License as published by the
+  Free Software Foundation; either version 2, or (at your option) any
+  later version.
+
+  OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or
+  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
+  License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with OGo; see the file COPYING.  If not, write to the
+  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+  02111-1307, USA.
+*/
+// $Id: CommonUIProduct.m,v 1.1 2003/11/24 01:24:40 helge Exp $
+
+#import <Foundation/NSObject.h>
+
+@interface CommonUIProduct : NSObject
+{
+}
+
+@end
+
+#include "common.h"
+
+@implementation CommonUIProduct
+@end /* CommonUIProduct */
diff --git a/ZideStore/UI-X/Common/GNUmakefile b/ZideStore/UI-X/Common/GNUmakefile
new file mode 100644 (file)
index 0000000..a5492e9
--- /dev/null
@@ -0,0 +1,44 @@
+# $Id: GNUmakefile,v 1.2 2003/12/09 17:38:42 helge Exp $
+
+include $(GNUSTEP_MAKEFILES)/common.make
+
+BUNDLE_NAME        = CommonUI
+BUNDLE_EXTENSION   = .zsp
+BUNDLE_INSTALL_DIR = $(GNUSTEP_USER_ROOT)/Library/ZideStore12
+
+CommonUI_PRINCIPAL_CLASS = CommonUIProduct
+
+CommonUI_OBJC_FILES = \
+       CommonUIProduct.m       \
+       OGoPageFrame.m          \
+       OGoAppFrame.m           \
+       OGoAppHeader.m          \
+       OGoAppNavigation.m      \
+
+CommonUI_RESOURCE_FILES += \
+       Version                 \
+       product.plist           \
+       OGoPageFrame.wox        \
+       OGoAppFrame.wox         \
+       OGoAppHeader.wox        \
+       OGoAppNavigation.wox    \
+       \
+       zidestoreui.css         \
+       calendar.css            \
+       images/OGoLogo.gif      \
+
+ZIDESTORE=../..
+
+ADDITIONAL_INCLUDE_DIRS += \
+       -I. \
+       -I$(ZIDESTORE)/Frontend -I$(ZIDESTORE)/Backend -I$(ZIDESTORE)
+
+# make
+
+-include GNUmakefile.preamble
+include $(GNUSTEP_MAKEFILES)/bundle.make
+-include GNUmakefile.postamble
+
+after-all ::
+       @(cd $(BUNDLE_NAME)$(BUNDLE_EXTENSION);\
+         cp ../bundle-info.plist .)
diff --git a/ZideStore/UI-X/Common/OGoAppFrame.m b/ZideStore/UI-X/Common/OGoAppFrame.m
new file mode 100644 (file)
index 0000000..789558f
--- /dev/null
@@ -0,0 +1,11 @@
+// $Id: OGoAppFrame.m,v 1.1 2003/12/09 17:38:42 helge Exp $
+
+#include <NGObjWeb/SoComponent.h>
+
+@interface OGoAppFrame : SoComponent
+@end
+
+#include "common.h"
+
+@implementation OGoAppFrame
+@end /* OGoAppFrame */
diff --git a/ZideStore/UI-X/Common/OGoAppFrame.wox b/ZideStore/UI-X/Common/OGoAppFrame.wox
new file mode 100644 (file)
index 0000000..0437cf3
--- /dev/null
@@ -0,0 +1,44 @@
+<?xml version='1.0' standalone='yes'?>
+
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:var="http://www.skyrix.com/od/binding"
+      xmlns:const="http://www.skyrix.com/od/constant"
+>
+  <head>
+    <title><var:string value="title"/></title>
+    
+    <meta name="description" content="ZideStore Web Interface" />
+    <meta name="author"      content="SKYRIX Software AG" />
+    <meta name="robots"      content="stop" />
+    
+    <link href="mailto:hh@skyrix.com" rev="made" />
+  </head>
+  
+  <frameset rows="48,*" frameborder="0" framespacing="0" border="0">
+    
+    <frame src="appheader"
+           name="head"
+           leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" 
+           scrolling="no" noresize="yes" />
+
+    <frameset cols="150,*">
+
+      <frame src="appnavigation"
+             name="navi"
+             leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" 
+             scrolling="yes" />
+
+      <frame src="view"
+             name="content"
+             leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" 
+             scrolling="yes" />
+
+    </frameset>
+
+  </frameset>
+
+  <noframes>
+    This pages requires frame tags, which your browser does not support,
+    sorry ;->
+  </noframes>
+</html>
diff --git a/ZideStore/UI-X/Common/OGoAppHeader.m b/ZideStore/UI-X/Common/OGoAppHeader.m
new file mode 100644 (file)
index 0000000..f748f88
--- /dev/null
@@ -0,0 +1,11 @@
+// $Id: OGoAppHeader.m,v 1.1 2003/12/09 17:38:42 helge Exp $
+
+#include <NGObjWeb/SoComponent.h>
+
+@interface OGoAppHeader : SoComponent
+@end
+
+#include "common.h"
+
+@implementation OGoAppHeader
+@end /* OGoAppHeader */
diff --git a/ZideStore/UI-X/Common/OGoAppHeader.wox b/ZideStore/UI-X/Common/OGoAppHeader.wox
new file mode 100644 (file)
index 0000000..4f8c0d2
--- /dev/null
@@ -0,0 +1,32 @@
+<?xml version='1.0' standalone='yes'?>
+
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:var="http://www.skyrix.com/od/binding"
+      xmlns:const="http://www.skyrix.com/od/constant"
+      xmlns:rsrc="OGo:url"
+>
+  <head>
+    <link type="text/css" rel="stylesheet" rsrc:href="zidestoreui.css" />
+
+    <script language="javascript">
+      function viewInNavi(url) {
+        parent.navi.location=url;
+        return true
+      }
+    </script>
+  </head>
+
+  <body>
+    <div id="header">
+      <img filename="OGoLogo.gif" class="headerlogo" alt="Logo" />
+      <div id="headerhistory">
+        <span id="navtitle">ZideStore UI - Experimental</span>
+      </div>
+    </div>
+    
+    <div style="text-align: right; font-size: 8pt;">
+      <a href="#" onClick="viewInNavi('appnavigation')">reload</a> -
+      resistance is obsolete <entity name="trade"/> ;-)
+    </div>
+  </body>
+</html>
diff --git a/ZideStore/UI-X/Common/OGoAppNavigation.m b/ZideStore/UI-X/Common/OGoAppNavigation.m
new file mode 100644 (file)
index 0000000..e765fb1
--- /dev/null
@@ -0,0 +1,11 @@
+// $Id: OGoAppNavigation.m,v 1.1 2003/12/09 17:38:42 helge Exp $
+
+#include <NGObjWeb/SoComponent.h>
+
+@interface OGoAppNavigation : SoComponent
+@end
+
+#include "common.h"
+
+@implementation OGoAppNavigation
+@end /* OGoAppNavigation */
diff --git a/ZideStore/UI-X/Common/OGoAppNavigation.wox b/ZideStore/UI-X/Common/OGoAppNavigation.wox
new file mode 100644 (file)
index 0000000..27eadaf
--- /dev/null
@@ -0,0 +1,85 @@
+<?xml version='1.0' standalone='yes'?>
+
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:var="http://www.skyrix.com/od/binding"
+      xmlns:const="http://www.skyrix.com/od/constant"
+      xmlns:rsrc="OGo:url"
+>
+  <head>
+    <link type="text/css" rel="stylesheet" rsrc:href="zidestoreui.css" />
+
+    <style>
+      a:link, a:visited, a:active, a:hover { 
+        text-decoration: none; 
+        font-family:     Arial, Helvetica, Helv, Sans-Serif;
+        font-size:       9pt;
+        color:           #0000FF;
+      }
+      a.reloadlink {
+        color:      black;
+      }
+
+      ul {
+        margin:          0; /*removes indent IE and Opera*/
+        padding:         0; /*removes indent Mozilla and NN7*/
+        /* list-style-type: none; */ /*turns off display of bullet*/
+        font-family:     Arial, Helvetica, sans-serif;
+        font-size:       14pt;
+      }
+
+      ul li {
+        /* padding-left: 4px; */
+        /* list-style: url(http://vesper.in.skyrix.com/SKYRiXgreen/WebServerResources/EN.lproj/nav_folder_open.gif); */
+        list-style: url(http://move:9000/OpenGroupware.woa/WebServerResources/English.lproj/icon_folder.gif);
+      }
+
+      ul li a {
+        display: block;
+        border:           1px solid #FFFFFF;
+        padding:          2px 2px 2px 24px;
+        width:            80%;
+        background-color: #EEEEEE;
+      }
+
+      ul li a:link, ul li a:visited {
+        text-decoration:  none;
+      }
+      ul li a:hover {
+        border:           1px solid #333333;
+        background-color: #CCCCCC;
+      }
+    </style>
+
+    <script language="javascript"><![CDATA[
+      function viewInContent(url) {
+        parent.content.location=url;
+        return true;
+      }
+    ]]></script>
+  </head>
+
+  <body leftmargin="0"  topmargin="0" marginwidth="0" marginheight="0">
+    <br />
+    <ul>
+      <li><a href="#">OGo</a></li>
+      <li><a href="#" onclick="viewInContent('view')"         >View</a></li>
+      <li><a href="#" onclick="viewInContent('weekoverview')" >Week</a></li>
+      <li><a href="#" onclick="viewInContent('monthoverview')">Month</a></li>
+      <li><a href="#">OGo</a></li>
+    </ul>
+    <br />
+    
+    <div style="border-top: 1px solid #000000;">
+      <a href="appnavigation" class="reloadlink" 
+         var:_o="context.contextID"><i>(reload)</i></a>
+    </div>
+
+    <br />
+
+    <div style="border-top: 1px solid #000000; font-size: 8pt">
+      <var:string value="context.contextID" />
+    </div>
+    <a href="http://www.projectseven.com/tutorials/css_menus/list_01/"
+       target="extlink">CSS Menues</a>
+  </body>
+</html>
diff --git a/ZideStore/UI-X/Common/OGoPageFrame.m b/ZideStore/UI-X/Common/OGoPageFrame.m
new file mode 100644 (file)
index 0000000..2470ed4
--- /dev/null
@@ -0,0 +1,30 @@
+// $Id: OGoPageFrame.m,v 1.2 2003/12/11 22:16:36 helge Exp $
+
+#include <NGObjWeb/SoComponent.h>
+
+@interface OGoPageFrame : SoComponent
+{
+  NSString *title;
+}
+
+@end
+
+#include "common.h"
+
+@implementation OGoPageFrame
+
+- (void)dealloc {
+  [self->title release];
+  [super dealloc];
+}
+
+/* accessors */
+
+- (void)setTitle:(NSString *)_value {
+  ASSIGN(self->title, _value);
+}
+- (NSString *)title {
+  return self->title;
+}
+
+@end /* OGoPageFrame */
diff --git a/ZideStore/UI-X/Common/OGoPageFrame.wox b/ZideStore/UI-X/Common/OGoPageFrame.wox
new file mode 100644 (file)
index 0000000..99f9892
--- /dev/null
@@ -0,0 +1,32 @@
+<?xml version='1.0' standalone='yes'?>
+
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:var="http://www.skyrix.com/od/binding"
+      xmlns:const="http://www.skyrix.com/od/constant"
+      xmlns:rsrc="OGo:url"
+>
+  <head>
+    <title><var:string value="title"/></title>
+    
+    <meta name="description" content="ZideStore Web Interface" />
+    <meta name="author"      content="SKYRIX Software AG" />
+    <meta name="robots"      content="stop" />
+    
+    <link type="text/css" rel="stylesheet" rsrc:href="zidestoreui.css" />
+    <link type="text/css" rel="stylesheet" rsrc:href="calendar.css"    />
+    <link href="mailto:hh@skyrix.com" rev="made" />
+  </head>
+  
+  <body>
+<!--
+    <div id="header">
+      <img filename="OGoLogo.gif" class="headerlogo" alt="Logo" />
+      <div id="headerhistory">
+        <span id="navtitle">ZideStore UI - Experimental</span>
+      </div>
+    </div>
+    <br />
+-->
+    <var:component-content />
+  </body>
+</html>
diff --git a/ZideStore/UI-X/Common/Version b/ZideStore/UI-X/Common/Version
new file mode 100644 (file)
index 0000000..d64ce5a
--- /dev/null
@@ -0,0 +1,5 @@
+# $Id: Version,v 1.1 2003/11/24 01:24:40 helge Exp $
+
+SUBMINOR_VERSION:=1
+
+# 1.1.0 requires NGObjWeb 4.2.202
diff --git a/ZideStore/UI-X/Common/bundle-info.plist b/ZideStore/UI-X/Common/bundle-info.plist
new file mode 100644 (file)
index 0000000..2488770
--- /dev/null
@@ -0,0 +1,23 @@
+{
+  "__cvs__" = "$Id: bundle-info.plist,v 1.1 2003/11/24 01:24:40 helge Exp $";
+
+  requires = {
+    bundleManagerVersion = 1;
+    classes = (
+      { name = NSObject;    }
+    );
+  };
+
+  provides = {
+    ZideStoreProducts = ( { name = CommonUIProduct; } );
+    
+    classes = (
+      { name = CommonUIProduct;       },
+      { name = OGoPageFrame;          },
+    );
+
+    WOComponents = (
+      { name = OGoPageFrame; }
+    );
+  };
+}
diff --git a/ZideStore/UI-X/Common/calendar.css b/ZideStore/UI-X/Common/calendar.css
new file mode 100644 (file)
index 0000000..74c25bf
--- /dev/null
@@ -0,0 +1,15 @@
+.weekoverview_title {
+  color:            #000000;
+  background-color: #AAAAAA;
+}
+.weekoverview_content {
+  color:            #FFFFFF;
+  background-color: #DDDDDD;
+}
+
+.weekoverview_content a {
+  color:           #0000FF;
+  font-family:     Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
+  letter-spacing:  0pt;
+  text-decoration: none;
+}
diff --git a/ZideStore/UI-X/Common/common.h b/ZideStore/UI-X/Common/common.h
new file mode 100644 (file)
index 0000000..d179d30
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+  Copyright (C) 2000-2003 SKYRIX Software AG
+
+  This file is part of OGo
+
+  OGo is free software; you can redistribute it and/or modify it under
+  the terms of the GNU Lesser General Public License as published by the
+  Free Software Foundation; either version 2, or (at your option) any
+  later version.
+
+  OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or
+  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
+  License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with OGo; see the file COPYING.  If not, write to the
+  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+  02111-1307, USA.
+*/
+// $Id: common.h,v 1.1 2003/11/24 01:24:40 helge Exp $
+
+#import <Foundation/Foundation.h>
+
+#if LIB_FOUNDATION_LIBRARY
+#  import <Foundation/exceptions/GeneralExceptions.h>
+#elif NeXT_Foundation_LIBRARY || COCOA_Foundation_LIBRARY
+#  import <FoundationExt/NSObjectMacros.h>
+#  import <FoundationExt/NSString+Ext.h>
+#  import <FoundationExt/GeneralExceptions.h>
+#endif
+
+#include <NGExtensions/NGExtensions.h>
+#include <NGObjWeb/NGObjWeb.h>
+#include <NGObjWeb/SoObjects.h>
diff --git a/ZideStore/UI-X/Common/images/OGoLogo.gif b/ZideStore/UI-X/Common/images/OGoLogo.gif
new file mode 100755 (executable)
index 0000000..ea1b5f5
Binary files /dev/null and b/ZideStore/UI-X/Common/images/OGoLogo.gif differ
diff --git a/ZideStore/UI-X/Common/product.plist b/ZideStore/UI-X/Common/product.plist
new file mode 100644 (file)
index 0000000..c3e351e
--- /dev/null
@@ -0,0 +1,31 @@
+{
+  requires = ( MAIN );
+
+  publicResources = (
+    calendar.css,
+    zidestoreui.css,
+    OGoLogo.gif
+  );
+  
+  factories = {
+  };
+
+  categories = {
+    SxFolder = {
+      methods = {
+        "app" = { 
+          protectedBy = "View";
+          pageName    = "OGoAppFrame"; 
+        };
+        "appheader" = { 
+          protectedBy = "View";
+          pageName    = "OGoAppHeader"; 
+        };
+        "appnavigation" = { 
+          protectedBy = "View";
+          pageName    = "OGoAppNavigation"; 
+        };
+      };
+    };
+  };
+}
diff --git a/ZideStore/UI-X/Common/zidestoreui.css b/ZideStore/UI-X/Common/zidestoreui.css
new file mode 100644 (file)
index 0000000..66ae6f5
--- /dev/null
@@ -0,0 +1,38 @@
+/* ZideStore UI Stylesheet */
+
+/* common stuff */
+
+body {
+  font-size: 12pt;
+}
+
+/* header */
+
+div#header {
+  margin-left:  5px;
+  margin-right: 5px;
+  padding:      0;
+  border-bottom: 1px solid #000000;
+}
+div#header img.headerlogo {
+  float:  right; 
+  width:  182px; 
+  height: 30px;
+}
+
+div#header div#headerhistory {
+  font-size:   11px;
+  color:       #000000;
+  margin:      0px;
+  padding-top: 18px;
+  height:      12px;
+}
+div#header a, div#header span {
+  margin:      0px;
+}
+div#header span#navtitle {
+  font-weight: bold;
+}
+div#header a:hover {
+  text-decoration: none;
+}