Commit graph

4574 commits

Author SHA1 Message Date
Farruco Sanjurjo
5d49d113b1 Revert comments that prevented the use of timeplot
* All problems have been fixed so it's safe to use it now

FEA: ItEr02S03MigracionZK5
2010-11-15 12:34:24 +01:00
Farruco Sanjurjo
5a697262fa Polished version of previous commit (load chart on demand)
FEA: ItEr02S03MigracionZK5
2010-11-15 12:28:39 +01:00
Farruco Sanjurjo
38fd09db85 First approach for loading charts on demand
* Code needs to be polished

FEA: ItEr02S03MigracionZK5
2010-11-15 12:09:16 +01:00
Farruco Sanjurjo
96cb860594 Added named parameters for TaskComponent widget-events
FEA: ItEr02S03MigracionZK5
2010-10-29 11:43:25 +02:00
Farruco Sanjurjo
f83d779e79 Added resize capabilities to tasks
* When tasks are resized an onUpdateWidth event is fired to the server

FEA: ItEr02S03MigracionZK5
2010-10-29 11:07:59 +02:00
Farruco Sanjurjo
9412d2f204 Fixed bug regarding Widget.addAft() function
* After creating a new dependency the server responded with a call to addAft for adding the dependecy. But as we were deleting all dependecy lines, addAft failed to find the hook point (where to add after)

* Now only the unlinked dependency (temporary) is deleted

FEA: ItEr02S03MigracionZK5
2010-10-29 10:11:51 +02:00
Farruco Sanjurjo
ce6832a731 Added missing setClass method for TaskComponent widget-class
* This method is invoked from the server after composing the component

FEA: ItEr02S03MigracionZK5
2010-10-26 12:36:15 +02:00
Farruco Sanjurjo
50072a0f01 Deleted deprecated code
* This code was used for handling onIncrease and onDecrease (zoomLevel) events but those are now longer used

FEA: ItEr02S03MigracionZK5
2010-10-26 12:34:25 +02:00
Farruco Sanjurjo
a93970fd98 Ganttpanel changed to scroll on zoomlevel change
* It's not working yet, but I prefer to do small commits

FEA: ItEr02S03MigracionZK5
2010-10-26 09:58:35 +02:00
Farruco Sanjurjo
6e52fa9c57 Sent timetracker's scroll_left value when planner's zoom level changes
* It's sent on the same event as the chosen zoom level

FEA: ItEr02S03MigracionZK5
2010-10-22 13:31:47 +02:00
Farruco Sanjurjo
6db8cfed95 Added a token for referencing elements on event data
* Now you can individually pick elements within the event data

FEA: ItEr02S03MigracionZK5
2010-10-22 13:28:47 +02:00
Farruco Sanjurjo
d85543e0b3 Replaced listener on zul code with listener on widget
* When GanttPannel's zoomLevel is changed we have to update the timetracker and scroll the pannel, so
we need the timetracker's scrollLeft value. Instead of asking for it to the GanttPannel after the listener
is executed at Planner.java we will send both the selected zoomLevel and the scroll value. We replaced the
listener at the zul file and added a new listener at Planner's widget class. Currently we are only sending the
desired zoomLevel

FEA: ItEr02S03MigracionZK5
2010-10-22 09:54:37 +02:00
Jacobo Aragunde Pérez
09e62a9d2d Delay the construction and data retrieval for the charts below the company view until they are actually shown.
The charts have also been configured to be hidden by default,
to boost the load of the initial screen.

FEA: ItEr60S17CambiosPantallaVistaEmpresa
2010-10-13 13:18:04 +02:00
Farruco Sanjurjo
edf67c3fea Updated timelinez version to 2.3.1_50 2010-09-09 13:46:34 +02:00
Farruco Sanjurjo
12277443f5 Added a scroll listener for LimitingResourcesPanel
* This will scroll the timetracker when the limiting resources is scrolled
* Also, changed the superclass to zk.Macro

FEA: ItEr02S03MigracionZK5
2010-09-08 14:51:45 +02:00
Farruco Sanjurjo
8a9fb40137 Overwritten getWidgetClass method for LimitingResourcesPanel
* Using setWidgetClass won't do anything if we want to use a different widget-class. This happens because
LimitingResourcesPanel extends HTMLMacroComponent and this class overwrites getWidgetclass too, for returning the "zk.Macro" string. So
when redrawing the component, the _wgtcls (widget class) property, setted with setWidgetClass, wont't we used well the redraw method
calls getWidgetClass

FEA: ItEr02S03MigracionZK5
2010-09-08 14:46:10 +02:00
Farruco Sanjurjo
833ec2cd2e Created LimitingResourcesPanel widget-class
* Configured this widget-class on lang-addon.xml
* Added entry on zk.wpd

FEA: ItEr02S03MigracionZK5
2010-09-08 12:49:49 +02:00
Farruco Sanjurjo
edc9a420b4 Explicitely added width attr for vbox at _orderElementTree
* Without this attribute, the with of the orders table was only 2px on chrome (on Firefox it worked properlly)

FEA: ItEr02S03MigracionZK5
2010-09-08 12:30:01 +02:00
Farruco Sanjurjo
1e8a943e47 Deleted useless Javascript dependencies
FEA: ItEr02S03MigracionZK5
2010-09-08 10:33:45 +02:00
Farruco Sanjurjo
c08736da82 Changed how the CSS class of a class is set
* Rather than creating ourselves a response (with an AuInvoke), we leverage on the setSclass method
* In this commit is also included some comments deleted

FEA: ItEr02S03MigracionZK5
2010-09-08 10:27:15 +02:00
Farruco Sanjurjo
7e0ecdea82 Overwrote default setLeft method
FEA: ItEr02S03MigracionZK5
2010-09-08 10:15:20 +02:00
Farruco Sanjurjo
4a7987b8f3 Added drag&drop functionallity
* Yahoo is included on the file for providing drag&drop. This must be deleted if the drag&drop is implemented with jQuery

FEA: ItEr02S03MigracionZK5
2010-09-08 10:14:04 +02:00
Farruco Sanjurjo
e87e715758 Added missing methods for adding depencies
FEA: ItEr02S03MigracionZK5
2010-09-08 10:12:45 +02:00
Farruco Sanjurjo
ddb5a0cf95 Changed how we retrieve the DependencyList widget
FEA: ItEr02S03MigracionZK5
2010-09-07 16:53:30 +02:00
Farruco Sanjurjo
a3b8a0d7c8 Added a z-index property to .box class
* This is done to simplify the UnlinkedDependencyComponent#isOverTask easier. This method checks if the mouse is over a task, and to be sure of that the task must be over anything on the ganttpanel
* This commit must be done before (when I added the isOverTask) but I missed it :(

FEA: ItEr02S03MigracionZK5
2010-09-07 13:16:36 +02:00
Farruco Sanjurjo
d395f77dca Modified UnlinkedDependencyComponent and how it's inserted on the DOM
* Commonly used properties are initialized now on the $init method. If we did it on the bind_ method there was an error as the unbind_ method was called even if the bind_ wasn't and at unbind_ we used properties set at bind_
* We dropped the overrided method appendChild at DepencyList. Instead of that, we now use the DependencyList mold and the appendChild(widget, ignoredom) method directly at TaskComponent
* Removed event listeners used by the UnlinkedDependencyComponent

FEA: ItEr02S03MigracionZK5
2010-09-07 13:10:08 +02:00
Farruco Sanjurjo
a61037aa1d Added singleton-like structure for DependencyList
* Added seg/getInstance methods

FEA: ItEr02S03MigracionZK5
2010-09-07 09:37:35 +02:00
Farruco Sanjurjo
66cd602c24 Added behaviour for consolidating a new depedency
* Uses TaskComponent#consolidateNewDependency

FEA: ItEr02S03MigracionZK5
2010-09-06 14:41:23 +02:00
Farruco Sanjurjo
1d244498b8 New isOverTask method
* we leave aside the coordinate calculations and take advantage of ZK 5 widget-object-model
* Added a property to TaskComponent widget: mouseOverTask

FEA: ItEr02S03MigracionZK5
2010-09-06 14:40:18 +02:00
Farruco Sanjurjo
d4070a94ef Fixed method call at DependencyComponentBase
FEA: ItEr02S03MigracionZK5
2010-09-06 13:17:22 +02:00
Farruco Sanjurjo
8b1cce42bf Fixed typo on variable name
FEA: ItEr02S03MigracionZK5
2010-09-06 12:07:26 +02:00
Farruco Sanjurjo
2efaa389d6 Converted jQuery-Array-like to proper Array
FEA: ItEr02S03MigracionZK5
2010-09-06 12:05:48 +02:00
Farruco Sanjurjo
6eca4b57e8 Test code for using UnlinkedDependencyComponent
FEA: ItEr02S03MigracionZK5
2010-09-03 15:15:03 +02:00
Farruco Sanjurjo
c9855e8513 Done some changes to improve performance while adding dependencies
* To sum up the changes, I did the following:
  - replace jQuery CSS method by native DOM attribute accessors (i.e. <object>.style.height rather than <jQobject>.height(...))
  - better use of jQuery selectors. You submit the container element (where you want to look for other elements) as a second parameter to the jq('<selector>') function
  - the origin coordinates for the dependency are just calculated once

FEA: ItEr02S03MigracionZK5
2010-09-03 15:09:59 +02:00
Farruco Sanjurjo
ad7f6de038 Behaviour for UnlinkedDependencyComponent
* This kind of dependency will be used when creating a dependency between two tasks

FEA: ItEr02S03MigracionZK5
2010-09-03 10:48:44 +02:00
Farruco Sanjurjo
246663975c Added missing Math.abs(...)
* This caused the .end line to be 0-length

FEA: ItEr02S03MigracionZK5
2010-09-03 10:47:35 +02:00
Farruco Sanjurjo
887e358a24 Added missing constant for DependencyComponentBase
FEA: ItEr02S03MigracionZK5
2010-09-03 10:30:24 +02:00
Farruco Sanjurjo
7fbbc8597b Moved setupArrow method to top class
* This is moved here as all extending classes must setup its arrow

FEA: ItEr02S03MigracionZK5
2010-09-03 10:28:17 +02:00
Farruco Sanjurjo
688a2d3564 Basic implementation for UnlinkedDependencyComponent
* This components will be used when creating dependencies on a project instead of DependencyComponent (which has a counterpart on the model)

FEA: ItEr02S03MigracionZK5
2010-09-02 12:13:49 +02:00
Farruco Sanjurjo
ada3bd15e8 Created a base widget-class for dependency elements
* Most content has been refactored from DependencyComponent
* This will be used by DependencyComponent and other Dependency-like components (for example when creating a dependency)

FEA:ItEr02S03MigracionZK5
2010-09-02 12:09:54 +02:00
Farruco Sanjurjo
4baf3efc0a Added missing $supers call at overwrote method
* As this $supers call was missing the children wasn't added to the parent's children array, it was just inserted at the DOM

FEA: ItEr02S03MigracionZK5
2010-09-02 11:33:59 +02:00
Farruco Sanjurjo
e2a3b7d1d8 Fixed bug that caused and exception on empty Strings
FEA: ItEr02S03MigracionZK5
2010-09-01 13:30:51 +02:00
Farruco Sanjurjo
d69fd6935c Adapted retrieveData to use JSONArray objects
* This type is used now on zAu requests when sending an array
* Also deleted "stripPX" methods as now the coordinates are sent without "px" sufix

FEA: ItEr02S03MigracionZK5
2010-09-01 12:29:14 +02:00
Farruco Sanjurjo
f614e7b35f Added addRelatedDependency method for TaskComponent widget-class
FEA: ItEr02S03MigracionZK5
2010-08-31 11:31:11 +02:00
Farruco Sanjurjo
43c2f05c7a Added methods for drawing dependency arrows
FEA: ItEr02S03MigracionZK5
2010-08-31 11:11:59 +02:00
Farruco Sanjurjo
8510249ff0 Added required constants for TaskComponent widget-class
FEA: ItEr02S03MigracionZK5
2010-08-31 11:10:39 +02:00
Farruco Sanjurjo
113ec42f93 Added common.Common as a dependency for ganttz package
FEA: ItEr02S03MigracionZK5
2010-08-31 11:08:07 +02:00
Farruco Sanjurjo
9b629bad36 Created a Common widget-class
* This is expected to be a place to put common utilities used by other classes. In order to use it, you have to give it as a dependency on the zk.wpd of the package that uses it
* This is experimental, might be deleted on following commits

FEA : ItEr02S03MigracionZK5
2010-08-31 11:05:04 +02:00
Farruco Sanjurjo
3675988e04 Overwrote appendChild method for DependencyList widget-class
* We have to overwrite it if we want to append child to the #listdependencies inner div

FEA: ItEr02S03MigracionZK5
2010-08-31 09:53:26 +02:00
Farruco Sanjurjo
cd8d9364a0 Fixed bug on TaskContainer mold
* Added missing <div> closing tag

FEA: ItEr02S03MigracionZK5
2010-08-30 14:12:11 +02:00