- see ChangeLog;

Monotone-Parent: eff2a89851c827b8574eba829286bdde96ab40b1
Monotone-Revision: 7650ec5fee84864554e6480b82a7d8b63269e075

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-07-06T20:39:21
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2006-07-06 20:39:21 +00:00
parent 7c9258ed49
commit 3777576421
3 changed files with 21 additions and 2 deletions

View File

@ -12,6 +12,9 @@
* UI/Common/UIxToolbar.m: new "isLastGroup" method to determine
within the templates whether a separator should be displayed.
* UI/Common/UIxToolbar.m ([UIxToolbar -hasButtons]): new method
that returns NO if the toolbar is empty.
2006-07-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Templates/UIxPageFrame.wox: replaced central table with a DIV.

View File

@ -222,4 +222,19 @@
== ([toolbarConfig count] - 1));
}
- (BOOL) hasButtons
{
id tbConfig;
unsigned int count, max, amount;
tbConfig = [self toolbarConfig];
amount = 0;
max = [tbConfig count];
for (count = 0; count < max; count++)
amount += [[tbConfig objectAtIndex: count] count];
return (amount > 0);
}
@end /* UIxToolbar */

View File

@ -1,12 +1,12 @@
<?xml version="1.0" standalone="yes"?>
<div class="toolbar"
<var:if condition="hasButtons"
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">
<div class="toolbar">
<var:foreach list="toolbarConfig" item="toolbarGroup">
<var:foreach list="toolbarGroup" item="buttonInfo">
<var:if condition="isButtonEnabled">
@ -36,3 +36,4 @@
</var:if>
</var:foreach>
</div>
</var:if>