]> err.no Git - scalable-opengroupware.org/commitdiff
paper clip
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Wed, 6 Oct 2004 13:55:49 +0000 (13:55 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Wed, 6 Oct 2004 13:55:49 +0000 (13:55 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@366 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/UI/Mailer/ChangeLog
SOGo/UI/Mailer/Images/title_attachment_14x14.png [moved from SOGo/UI/Mailer/Images/title_attachment.png with 100% similarity]
SOGo/UI/Mailer/UIxMailListView.m
SOGo/UI/Mailer/UIxMailListView.wox
SOGo/UI/Mailer/Version

index e069617401deeb55743d842cde43b70024034aba..b81bc809b8b0a865740d2c26756b8554e5a0ec2d 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-06  Helge Hess  <helge.hess@opengroupware.org>
+
+       * UIxMailListView.m: added support for paper clip icon when messages
+         are bigger than a certain size (v0.9.26)
+
 2004-10-05  Helge Hess  <helge.hess@opengroupware.org>
 
        * v0.9.25
index a3d0ed6982bf617f295e94110543f1ff50d425ea..e98e1ac3e459c88e815f8edb3fc9c4fec69eed6e 100644 (file)
@@ -39,6 +39,8 @@
 
 @implementation UIxMailListView
 
+static int attachmentFlagSize = 8096;
+
 - (void)dealloc {
   [self->sortedUIDs release];
   [self->messages   release];
   return [[[self message] valueForKey:@"uid"] stringValue];
 }
 
+- (BOOL)hasMessageAttachment {
+  /* we detect attachments by size ... */
+  unsigned size;
+  
+  size = [[[self message] valueForKey:@"size"] intValue];
+  return size > attachmentFlagSize;
+}
+
 /* fetching messages */
 
 - (NSArray *)fetchKeys {
index a732baa9bdd213af9df47a6ff2895b32599354e1..5d90729cccdceb589f15b22915d2db16c6604596 100644 (file)
@@ -59,6 +59,9 @@
           <td class="tbtv_headercell" width="17">
             <img rsrc:src="title_read_14x14.png" width="14" height="14" />
           </td>
+          <td class="tbtv_headercell" width="17">
+            <img rsrc:src="title_attachment_14x14.png" width="14" height="14" />
+          </td>
           <td class="tbtv_headercell">
             <a href="view" _sort="date">
               <var:string label:value="Date" />
@@ -70,7 +73,7 @@
           </td>
         </tr>
         <tr class="tableview">
-          <td colspan="4" class="tbtv_navcell" align="right">
+          <td colspan="5" class="tbtv_navcell" align="right">
             <var:if condition="showsAllMessages">
               <var:string value="sortedUIDs.count" />
               <var:string label:value="messages" />
             </td>
             <td>
               <!-- TODO: show compose links -->
+              <!-- TODO: different color for internal vs external addrs -->
               <var:if condition="showToAddress" const:negate="YES">
                 <var:string value="message.envelope.from"
                             formatter="context.mailEnvelopeAddressFormatter" />
                 </div>
               </var:if>
             </td>
+            <td>
+              <var:if condition="hasMessageAttachment">
+                <img rsrc:src="title_attachment_14x14.png" 
+                     width="14" height="14" />
+              </var:if>
+            </td>
            
             <td>
               <span class="mailer_datefield">
index 8b283eb3b53cdd6a8e556ffea74b87430ca7e635..9c8dad696fbf09aeea17bac42db877c2327d5bbb 100644 (file)
@@ -1,3 +1,3 @@
 # $Id$
 
-SUBMINOR_VERSION:=25
+SUBMINOR_VERSION:=26