ItEr45S09RFNavegacionOrganizacionTraballoItEr44S15: Added icons for toolbarbox buttons

This commit is contained in:
Lorenzo Tilve 2010-01-27 14:28:34 +01:00 committed by Javier Moran Rua
parent 88dfe07554
commit 623cfee7df
9 changed files with 16 additions and 13 deletions

View file

@ -323,8 +323,6 @@ public class Planner extends HtmlMacroComponent {
this.ganttPanel = new GanttPanel(this.context,
commandsOnTasksContextualized, doubleClickCommand,
disabilityConfiguration);
Button button = (Button) getFellow("btnPrint");
button.setDisabled(!context.isPrintEnabled());
}
@SuppressWarnings("unchecked")

View file

@ -7,12 +7,28 @@ planner = self;
<borderlayout sclass="plannerlayout" width="auto">
<north height="30px" border="0">
<hbox align="center" id="toolbar" sclass="toolbar-box">
<!-- Commands -->
<button id="btnPrint" onClick="planner.print()"
image="/common/img/ico_print.png"
tooltiptext="${i18n:_('Print')}" />
<separator/>
<!-- Visualization modes -->
<label>${i18n:_('Zoom level')}:</label>
<listbox mold="select" rows="1"
model="${planner.zoomLevels}"
onSelect="planner.setZoomLevel(self.selectedItem.value);" >
</listbox>
<button id="showCriticalPath" onClick="planner.showCriticalPath();"
image="/common/img/ico_criticalpath.png"
tooltiptext="${i18n:_('Show/Hide Critical path')}" />
<button id="showAllLabels" onClick="planner.showAllLabels();"
image="/common/img/ico_labels.png"
tooltiptext="${i18n:_('Show/Hide all labels')}" sclass="planner-command show-labels" />
<button id="showAllResources" onClick="planner.showAllResources();"
image="/common/img/ico_resources.png"
tooltiptext="${i18n:_('Show all resources')}" sclass="planner-command show-resources" />
<!-- Filtering -->
<separator/>
<label>${i18n:_('Filter')}:</label>
<combobox>
@ -29,17 +45,6 @@ planner = self;
</combobox>
<textbox/>
<separator />
<button id="showCriticalPath" onClick="planner.showCriticalPath();"
label="${i18n:_('Critical path')}" />
<button id="showAllLabels" onClick="planner.showAllLabels();"
label="${i18n:_('Show all labels')}" sclass="planner-command show-labels" />
<button id="showAllResources" onClick="planner.showAllResources();"
label="${i18n:_('Show all resources')}" sclass="planner-command show-resources" />
<button id="btnPrint" onClick="planner.print()"
label="${i18n:_('Print')}" />
</hbox>
</north>

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB