Commit graph

976 commits

Author SHA1 Message Date
Manuel Rego Casasnovas
0acc29aadf Replaced tabs for 4-spaces in several files. 2011-07-01 09:49:46 +02:00
Óscar González Fernández
8ee51a7721 [Bug #1103] Fix bug
this._timeplotcontainer was not being initialized correctly since the
ready event is not always produced. Now it is queried instead of
initializing it at the start.

FEA: ItEr75S08MigrationZK5
2011-06-30 19:51:08 +02:00
Óscar González Fernández
389ceeb953 Remove unnecessary files
Mold files written in JavaScript are used now.

FEA: ItEr75S08MigrationZK5
2011-06-30 19:51:08 +02:00
Óscar González Fernández
0c2d08ec13 Avoid duplicating visual effect on arrows
A background was being applied via css besides the src property. Now
divs are used so the duplication is removed.

FEA: ItEr75S08MigrationZK5
2011-06-30 16:19:45 +02:00
Óscar González Fernández
d2c759bb03 Merge branch 'migration-to-ZK5' into master
Conflicts:
	ganttzk/src/main/java/org/zkoss/ganttz/TaskList.java
	ganttzk/src/main/resources/web/ganttz/zul/plannerLayout.zul
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/tabs/MultipleTabsPlannerController.java

FEA: ItEr75S08MigrationZK5
2011-06-28 20:00:26 +02:00
Óscar González Fernández
48ac38c138 ScriptsComponent and associated clases no longer needed
Now zk package mechanism for grouping scripts is used.

FEA: ItEr75S08MigrationZK5
2011-06-28 19:09:49 +02:00
Óscar González Fernández
7e759bafed Remove no longer needed js files
FEA: ItEr75S08MigrationZK5
2011-06-24 20:14:41 +02:00
Óscar González Fernández
174101c82a Extract mixin for copied and pasted code
FEA: ItEr75S08MigrationZK5
2011-06-24 19:03:30 +02:00
Óscar González Fernández
eb207f6eb4 Rename memoize to throttle
It represents better the purpose of the function.

FEA: ItEr75S08MigrationZK5
2011-06-24 13:44:15 +02:00
Óscar González Fernández
dfabb2e6c2 Delete no longer needed js files
FEA: ItEr75S08MigrationZK5
2011-06-23 21:44:36 +02:00
Óscar González Fernández
c9761ef295 Throttle the drawing of the dependencies
If the dependencies have been drawn in the last 25 ms, they are not
redrawn.

FEA: ItEr75S08MigrationZK5
2011-06-23 21:44:25 +02:00
Óscar González Fernández
128342b8e8 Reimplement moving dependencies when moving task
It wasn't working most of the time. Instead of fixing it, reimplement
using simpler approach.

FEA: ItEr75S08MigrationZK5
2011-06-23 21:36:29 +02:00
Óscar González Fernández
53c57655a1 Fix the key of the response
Guaranteeing that the dependency's redraw response is invoked once for
each dependency when requested.

FEA: ItEr75S08MigrationZK5
2011-06-23 21:36:26 +02:00
Óscar González Fernández
f76552371f The elements must be queried again otherwise the offset is calculated badly
This seems to be the cause of the problem:
http://bugs.jquery.com/ticket/7602

FEA: ItEr75S08MigrationZK5
2011-06-23 21:36:23 +02:00
Óscar González Fernández
5d60359518 Remove unncessary calls to redraw
DependencyComponents already listen to changes on Task.

FEA: ItEr75S08MigrationZK5
2011-06-23 21:36:19 +02:00
Óscar González Fernández
b8cb0bf255 Avoid error when moving a task
The setCssClass method was missing in DependencyComponent.

FEA: ItEr75S08MigrationZK5
2011-06-23 21:36:12 +02:00
Óscar González Fernández
9fb3a3e87f Sometimes a double was returned
Allow to keep it working if a double number of pixels is returned
2011-06-15 19:01:12 +02:00
Óscar González Fernández
18c2f12211 Fix error when changing zoom
* adjust_height is removed from TaskList because the equivalent
  functionality is called from GanttPanel.

* GanttPanel.js receives the new methods for tracking the scroll. This
  should be simpler. It should be rewritten in the future.
2011-06-15 18:33:22 +02:00
Manuel Rego Casasnovas
6beac59394 Released 1.1.1 version.
* Bump to 1.1.1.
* Updated NEWS file.
* Updated debian package changelog.

FEA: ItEr74S03CommunityMaterialItEr73S03
2011-06-07 11:11:05 +02:00
Manuel Rego Casasnovas
de23a1ff42 [i18n] Fixed uppercase/lowercases incoherences.
FEA: ItEr74S04BugFixing
2011-06-06 23:01:57 +02:00
Óscar González Fernández
8370d66ebb Avoid where possible to mark a method as throws Exception
FEA: ItEr74S04BugFixing
2011-06-06 18:06:02 +02:00
Óscar González Fernández
af5ca60af2 Mark classes as static when not referencing outer class
FEA: ItEr74S04BugFixing
2011-06-06 18:06:01 +02:00
Óscar González Fernández
1a54013e7e Avoid the use of Number constructors
They look bad and are more inefficient.

FEA: ItEr74S04BugFixing
2011-06-06 18:06:01 +02:00
Diego Pino
91b9422224 [Bug #789] Renamed 'i18n' prefix in ganttzk to 'ganttzk_i18n'
A name collision made that the ganttzk package used the
webapp.I18nHelper to resolve localized strings, this caused that some
strings were not translated.

FEA: ItEr74S04BugFixing
2011-06-06 16:21:08 +02:00
Óscar González Fernández
f56fe6ba8d Merge branch 'master' into migration-to-ZK5-merging
Conflicts:
	NEWS
	debian/changelog
	ganttzk/pom.xml
	ganttzk/src/main/java/org/zkoss/ganttz/DependencyComponent.java
	ganttzk/src/main/java/org/zkoss/ganttz/GanttPanel.java
	ganttzk/src/main/java/org/zkoss/ganttz/TaskList.java
	ganttzk/src/main/java/org/zkoss/ganttz/util/LongOperationFeedback.java
	ganttzk/src/main/resources/web/ganttz/zul/plannerLayout.zul
	ganttzk/src/main/resources/web/ganttz/zul/timetracker/timetrackersecondlevel.zul
	navalplanner-business/pom.xml
	navalplanner-webapp/pom.xml
	navalplanner-webapp/src/main/java/org/navalplanner/web/calendars/BaseCalendarCRUDController.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/calendars/IBaseCalendarModel.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/common/components/ExtendedJasperreport.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/common/components/NewAllocationSelector.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/externalcompanies/ExternalCompanyDTO.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/limitingresources/LimitingResourcesPanel.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/limitingresources/QueueComponent.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/montecarlo/MonteCarloController.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/orders/AssignedTaskQualityFormsToOrderElementController.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/allocation/ResourceAllocationController.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/chart/ChartFiller.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/company/CompanyPlanningController.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/company/CompanyPlanningModel.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/tabs/AdvancedAllocationTabCreator.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/reports/NavalplannerReport.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/reports/OrderCostsPerResourceReport.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/resourceload/ResourceLoadModel.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/resources/criterion/CriterionAdminController.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/resources/search/NewAllocationSelectorController.java
	navalplanner-webapp/src/main/resources/i18n/es.po
	navalplanner-webapp/src/main/resources/i18n/gl.po
	navalplanner-webapp/src/main/resources/i18n/keys.pot
	navalplanner-webapp/src/main/webapp/calendars/_edition.zul
	navalplanner-webapp/src/main/webapp/externalcompanies/_listExternalCompanies.zul
	navalplanner-webapp/src/main/webapp/labels/_editLabelType.zul
	navalplanner-webapp/src/main/webapp/orders/_projectDetails.zul
	navalplanner-webapp/src/main/webapp/orders/components/_listOrderElementMaterials.zul
	navalplanner-webapp/src/main/webapp/orders/components/_orderElementTree.zul
	navalplanner-webapp/src/main/webapp/planner/order.zul
	navalplanner-webapp/src/main/webapp/reports/completedEstimatedHoursPerTask.zul
	navalplanner-webapp/src/main/webapp/reports/schedulingProgressPerOrderReport.zul
	navalplanner-webapp/src/main/webapp/reports/timeLineMaterialReport.zul
	navalplanner-webapp/src/main/webapp/reports/workingProgressPerTaskReport.zul
	navalplanner-webapp/src/main/webapp/resources/machine/_machineCriterions.zul
	navalplanner-webapp/src/main/webapp/resources/search/allocation_selector.zul
	navalplanner-webapp/src/main/webapp/workreports/workReportQuery.zul
	pom.xml
2011-06-03 18:42:09 +02:00
Manuel Rego Casasnovas
03c1945001 [i18n] Updated Spanish and Galician translations.
FEA: ItEr74S03CommunityMaterialItEr73S03
2011-06-03 13:17:45 +02:00
Manuel Rego Casasnovas
22f85d2ee4 [i18n] Fixed issue in keys generator and updated keys.pot files.
FEA: ItEr74S04BugFixing
2011-06-03 13:17:39 +02:00
Manuel Rego Casasnovas
def4d3f931 [i18n] Updated Spanish and Galician translations.
FEA: ItEr74S03CommunityMaterialItEr73S03
2011-06-03 12:33:08 +02:00
Manuel Rego Casasnovas
62d78ebc3b [i18n] Fixed translation of "progress" to Galician and Spanish.
FEA: ItEr74S04BugFixing
2011-06-03 11:02:04 +02:00
Manuel Rego Casasnovas
b79685ba11 [i18n] Marked "Choosing template" for translate.
It was needed to move it to a new line, as it seems that 2 strings
marked to translate in the same .zul file do not work properly.

FEA: ItEr74S04BugFixing
2011-06-03 11:01:58 +02:00
Manuel Rego Casasnovas
43b2df69fc [i18n] Updated keys.pot files
FEA: ItEr74S04BugFixing
2011-06-02 18:26:30 +02:00
Óscar González Fernández
ec3d8ba1c6 [Bug #1083] Fix bug
The initial points where calculated uncorrectly in backwards
scheduling mode.

FEA: ItEr74S04BugFixingx
2011-06-02 12:41:47 +02:00
Óscar González Fernández
b02ca2f056 [Bug #1082] Fix bug
Making that the parent recalculations go after the normal ones. Thus
if a normal recalculation is needed for a parent, i.e. a container,
it's executed before the parent recalculation. Otherwise the parent
recalculation would apply the modifications and the normal
recalculation will think that no modifications have been done and its
successors would not be executed.

FEA: ItEr74S04BugFixing
2011-06-01 14:07:59 +02:00
Óscar González Fernández
74ecf0e493 Revert "Fix bug"
The bug was present when introducing a dependency between containers,
the children were not affected by the movement of the parent. The
solution fixed this problem, but introduced others. For example
when adding a dependency from a top level task that is not a
container to a container.

This reverts commit 48ba72511d.

FEA: ItEr74S04BugFixing
2011-06-01 14:04:22 +02:00
Óscar González Fernández
0d49317ada Now the clearing behaviour can be parametrized
A when no longer referenced strategy can be used, so
IServletRequestHandler is not keep around in memory more time than
necessary.

FEA: ItEr74S08DeployFramework
2011-05-26 19:34:07 +02:00
Óscar González Fernández
7d8020037d Improve toString message
FEA: ItEr74S04BugFixing
2011-05-24 16:48:15 +02:00
Óscar González Fernández
48ba72511d Fix bug
Parent recalculations must be the ones that are done first.

FEA: ItEr74S04BugFixing
2011-05-24 16:46:18 +02:00
Óscar González Fernández
c3f5718f24 Reduce the time that request handlers are kept around in CallbackServlet
FEA: ItEr74S08DeployFramework
2011-05-23 19:29:55 +02:00
Óscar González Fernández
a4db574b11 Don't let the thread local hang forever in the threads local map
FEA: ItEr74S08DeployFramework
2011-05-23 19:29:54 +02:00
Óscar González Fernández
7a909fcfea Fix leak
Make thread local static to avoid keep alive the GanttDiagramGraph
from the thread local set in the thread.

FEA: ItEr74S08DeployFramework
2011-05-23 19:29:54 +02:00
Óscar González Fernández
e17ac70699 Remove unnecessary timers.
FEA: ItEr74S08DeployFramework
2011-05-23 19:29:54 +02:00
Óscar González Fernández
5eca63869d Reduce the live time of desktops
Keep alive pages with timers and reduce timeout time for desktops.

FEA: ItEr74S08DeployFramework
2011-05-23 04:16:26 +02:00
Manuel Rego Casasnovas
50aecc4cc3 Released 1.1.0 version.
* Bump to 1.1.0.
* Updated NEWS file.
* Updated debian package changelog.

FEA: ItEr74S03CommunityMaterialItEr73S03
2011-05-19 07:50:37 +02:00
Óscar González Fernández
d733ba80a8 [Bug #1070] Calculate the critical path using a topological order
Avoid exponential increase of calculations done, only visiting a node
when all their predecessors have already been processed. This
guarantees that the nodes are processed in a topological order, i.e.,
a node is not processed until their predecessors are processed.

FEA: ItEr74S04BugFixing
2011-05-15 21:08:28 +02:00
Óscar González Fernández
f82b20bbd1 Remove tasks that are not really initial from the initial and end tasks
FEA: ItEr74S04BugFixing
2011-05-15 21:05:59 +02:00
Óscar González Fernández
f1f9074647 Cache the calculated topological order
FEA: ItEr74S04BugFixing
2011-05-14 22:43:20 +02:00
Óscar González Fernández
feea8ef382 [Bug #1070] Fix problem in GanttDiagramGraph
getRecalculationsNeeded took a huge amount of time when tasks can be
reached from several paths in complex graphs. In the case a task is
reached from another path the recalculation for that task was removed
from the result and added to the pending queue. Thus it was guaranteed
that the result was a topological order, since recalculations would be
pushed to the end. But the recalculations dependent of the already
added were still in the pending queue and executed. This caused more
removals from the result and subsequent additions to the pending
queue.

Now a topological order is applied to the recalculations
calculated. For each task point a depth value is calculated. A
topological order is necessary, so a recalculation is executed after
all its predecessors.

FEA: ItEr74S04BugFixing
2011-05-14 22:38:33 +02:00
Óscar González Fernández
907c232492 When enforcing all the constraints using only the ones without incoming dependencies
Otherwise repeated calculations are done.

FEA: ItEr74S04BugFixing
2011-05-14 22:38:25 +02:00
Óscar González Fernández
fd2c2ca718 When populating the graph with dependencies don't enforce contraints yet
The constraints are asked to be enforced later.

FEA: ItEr74S04BugFixing
2011-05-14 22:38:13 +02:00
Óscar González Fernández
48cb431159 [Bug #1067] Fix bug
Highlight was not working outside the execution of a event. Previously
it was executing bound to a bookmark change event, but now using
matrix parameters it is no longer true.

Now highlight would work outside the handling of an event listener.

FEA: ItEr74S04BugFixing
2011-05-13 12:21:08 +02:00