2004-10-11 Helge Hess <helge.hess@opengroupware.org>
+ * v0.9.30
+
+ * UIxMailEditor.wox: moved recipient selection to an own component
+ (UIxMailToSelection)
+
+ * UIxMailMainFrame.wox: fixed script link
+
* v0.9.29
* product.plist: trigger UIxMailEditorAction for compose instead of
UIxMailAccountView.m \
UIxMailListView.m \
UIxMailView.m \
+ \
UIxMailEditor.m \
UIxMailEditorAction.m \
+ UIxMailToSelection.m \
\
UIxMailPartViewer.m \
UIxMailPartTextViewer.m \
UIxMailAccountView.wox \
UIxMailListView.wox \
UIxMailView.wox \
+ \
UIxMailEditor.wox \
+ UIxMailToSelection.wox \
\
UIxMailPartTextViewer.wox \
UIxMailPartMixedViewer.wox \
#endif
}
-@end
+@end /* UIxMailEditor */
title="name"
const:hideFolderTree="1"
>
+ <div id="compose_panel">
+<!-- we don't support multiple accounts ...
<div id="compose_fromline">
From:
- <!-- always a popup on Thunderbird -->
+ [always a popup on Thunderbird]
<select name="totype_00" style="width: 90%;">
<option value="to" selected="selected">xxx@yyy.com</option>
</select>
</div>
-
+-->
+
<div id="compose_toselection">
- [repetition]<br />
+ <var:component className="UIxMailToSelection"
+ recipients="recipients" />
+ </div>
+
+ <div id="compose_subject">
<table border="0" width="100%">
- <!-- TODO: make repetition -->
- <!-- TODO: form field needs to have an index -->
<tr>
- <td width="20%">
- <!-- var:popup? -->
- <select name="totype_00" style="width: 100%;">
- <option value="to" >To:</option>
- <option value="cc" >CC:</option>
- <option value="bcc">BCC:</option>
- </select>
- </td>
- <td width="80%">
- <input name="email_00" type="text" style="width: 100%;"/>
+ <td class="compose_label" width="15%">
+ <a rsrc:href="tbird_073_compose.png">Subject:</a>
</td>
+ <td width="85%"><input name="subject"
+ id="compose_subject_input" type="text" /></td>
</tr>
</table>
</div>
- <div id="compose_subject">
- Subject:
- <input name="subject" type="text" style="width: 80%;"/>
- </div>
-
- <!-- separate line -->
+ <!-- separator line -->
<div id="compose_text">
- <textarea style="width:100%;" name="content" />
+ <textarea name="content" />
</div>
- <!-- a rsrc:href="tbird_073_compose.png">screenshot</a -->
- <img rsrc:src="tbird_073_compose.png" alt="screenshot" />
+ <!-- img rsrc:src="tbird_073_compose.png" alt="screenshot" / -->
+ </div>
</var:component>
<meta name="author" content="SKYRIX Software AG"/>
<meta name="robots" content="stop"/>
- <script rsrc:src="mailer.js" />
+ <script rsrc:src="mailer.js"> </script>
<link type="text/css" rel="stylesheet" rsrc:href="uix.css"/>
<link type="text/css" rel="stylesheet" rsrc:href="mailer.css"/>
--- /dev/null
+/*
+ Copyright (C) 2004 SKYRIX Software AG
+
+ This file is part of OpenGroupware.org.
+
+ 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$
+
+#include <SOGoUI/UIxComponent.h>
+
+@interface UIxMailToSelection : UIxComponent
+{
+ unsigned currentFieldRowIndex;
+}
+
+@end
+
+#include "common.h"
+
+@implementation UIxMailToSelection
+
+/* accessors */
+
+- (void)setCurrentFieldRowIndex:(unsigned)_idx {
+ self->currentFieldRowIndex = _idx;
+}
+- (unsigned)currentFieldRowIndex {
+ return self->currentFieldRowIndex;
+}
+
+- (NSString *)typeFormName {
+ unsigned char buf[16];
+ sprintf(buf, "type_%d", [self currentFieldRowIndex]);
+ return [NSString stringWithCString:buf];
+}
+- (NSString *)mailFormName {
+ unsigned char buf[16];
+ sprintf(buf, "email_%d", [self currentFieldRowIndex]);
+ return [NSString stringWithCString:buf];
+}
+
+- (NSArray *)dummyList {
+ static NSArray *d = nil;
+ if (d == nil)
+ d = [[NSArray alloc] initWithObjects:@"0", @"1", @"2", nil];
+ return d;
+}
+
+@end /* UIxMailToSelection */
--- /dev/null
+<?xml version="1.0" standalone="yes"?>
+<table
+ 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"
+ xmlns:label="OGo:label"
+ xmlns:so="http://www.skyrix.com/od/so-lookup"
+ border="0" width="100%"
+>
+ <var:foreach list="dummyList" item="currentFieldRowIndex">
+ <tr>
+ <td width="15%">
+ <select var:name="typeFormName" style="width: 100%;">
+ <option value="to" ><var:string label:value="To"/>:</option>
+ <option value="cc" ><var:string label:value="CC"/>:</option>
+ <option value="bcc"><var:string label:value="BCC"/>:</option>
+ </select>
+ </td>
+ <td width="85%">
+ <input var:name="mailFormName" type="text" style="width: 100%;"/>
+ </td>
+ </tr>
+ </var:foreach>
+</table>
# $Id$
-SUBMINOR_VERSION:=29
+SUBMINOR_VERSION:=30
.tbicon_junk { background-image: url(tbtb_trash.png); }
.tbicon_print { background-image: url(tbtb_print.png); }
.tbicon_stop { background-image: url(tbtb_deletedoc.png); }
-
-/* TODO: add proper compose icons! */
-.tbicon_send { background-image: url(tbtb_compose.png); }
+.tbicon_send { background-image: url(tbtb_compose_send_30x30.png); }
+.tbicon_attach { background-image: url(tbtb_compose_attach_30x30.png); }
+.tbicon_save { background-image: url(tbtb_compose_file_30x30.png); }
/* mail tableview */
padding: 8px;
}
-img.mailer_imagecontent {
+img.mailer_imagecontent {
border: 0px;
}
pre.mailer_plaincontent {
/* compose */
-div.compose_fromline {
- width: 98%;
+div#compose_panel div {
+ padding: 2px;
+}
+
+div#compose_fromline {
+}
+div#compose_toselection {
+}
+div#compose_subject {
+ border-bottom-color: #808080;
+ border-bottom-width: 1;
+ border-bottom-style: solid;
+}
+div#compose_text {
+ border-top-color: white;
+ border-top-width: 1;
+ border-top-style: solid;
+}
+
+div#compose_toselection select {
+ font-size: 10px;
}
-div.compose_toselection {
- width: 98%;
+div#compose_toselection input {
+ font-size: 10px;
}
-div.compose_subject {
- width: 98%;
+
+input#compose_subject_input {
+ font-size: 10px;
+ width: 100%;
+}
+
+.compose_label {
+ font-size: 11px;
+ text-align: left;
}
-div.compose_text {
- width: 98%;
+
+div#compose_text textarea {
+ width: 100%;
+ height: 280px;
}
label = "Send"; },
{ link = "contacts"; target = "addressbook";
cssClass = "tbicon_addressbook"; label = "Contacts"; },
+ { link = "attach";
+ cssClass = "tbicon_attach"; label = "Attach"; },
+ { link = "save";
+ cssClass = "tbicon_save"; label = "Save"; },
)
);
};