Commit graph

5025 commits

Author SHA1 Message Date
Farruco Sanjurjo
dde31cd2da Changed the order Plotinfos are appended
* If the want to maintaint this order: overloads on the back, maximum capacity on the middle and current load on the front; we have append
Plotinfo objects on this new order to the Timeplot component. Otherwise the overload layer will hide everything as it was the last to be added.

FEA: ItEr02S03MigracionZK5
2011-01-10 12:40:23 +01:00
Farruco Sanjurjo
1f071acb82 Deleted method used to adapt callbacks for older versions on Timelinez
* This method was added due to a bug on Timeline, see: http://sourceforge.net/mailarchive/message.php?msg_id=25935247
* Since newer versions of Timeplot (2.3.X) this is not happening anymore.
* This method was causing weird behaviours with the URL used by timeline to retrieve the data. As a result of deleting the first "/" the final URL
used by timeline was relative to the page where the chart was shown, i.e. if the callback-url submited by the application was "navalplanner-webapp/callback/XXXXXXX" and the page that contained the chart was "http://localhost:8080/navalplanner-webapp/planner/index.zul", the resulting callback was "http://localhost:8080/navalplanner-webapp/planner/navalplanner-webapp/callback/XXXXXXX". As a result, several mappings were needed at web.xml (now deleted)

FEA: ItEr02S03MigracionZK5
2011-01-05 13:46:55 +01:00
Farruco Sanjurjo
eaacb7c977 Fixed some bugs on DependencyComponent's widget-class
FEA: ItEr02S03MigracionZK5
2011-01-03 12:00:51 +01:00
Farruco Sanjurjo
8484610f8c Deleted native namespace
* As of ZK 5.0.5 native elements can't be retrieved with .getFellow(...) or a ComponentNotFoundException will be raised
* This should be the expected behaviour on previous versions but it wasn't working properly (check http://sourceforge.net/mailarchive/message.php?msg_id=26816348)

FEA: ItEr02S03MigracionZK5
2010-12-30 11:02:46 +01:00
Farruco Sanjurjo
8b050df1bb Missing commit
* This commit must have been performed with this one eb5407ae28

FEA: ItEr02S03MigracionZK5
2010-12-30 10:42:42 +01:00
Farruco Sanjurjo
090f7b1a0d Added configuration property for using trendy molds
* Instead of configuring each button individually, we can use this property to do it globally

FEA: ItEr02S03MigracionZK5
2010-12-28 14:18:44 +01:00
Farruco Sanjurjo
276a357e08 Added a comment to explain why we are not using XulElement#setContext
FEA: ItEr02S03MigracionZK5
2010-12-28 12:58:58 +01:00
Farruco Sanjurjo
eb5407ae28 Replaced EventListener by XulElement#setContext
* This listener listened to "onRightClick" (over a task) events for showing the contextual menu, but now we
have moved to XulElement#setContext as it does all event-handling work for us

FEA: ItEr02S03MigracionZK5
2010-12-28 12:33:34 +01:00
Farruco Sanjurjo
69bec5175b Upgraded to ZK 5.0.5
* We need to exclude jruby as a transitive dependency of org.zkoss.zk. Loading jruby caused problems with joda-time (something like this http://jira.codehaus.org/browse/JRUBY-3559)

FEA: ItEr02S03MigracionZK5
2010-12-27 12:49:25 +01:00
Farruco Sanjurjo
c804838272 Changed base widget-class for DependencyComponent
* This allows us to use XulElement#setContext method for creating contextual menus

FEA: ItEr02S03MigracionZK5
2010-12-27 11:04:13 +01:00
Farruco Sanjurjo
57321d07e6 Fixed bug on TaskComponent widget
* When adding a new dependency all existing dependencies where erased

FEA: ItEr02S03MigracionZK5
2010-12-21 11:04:22 +01:00
Farruco Sanjurjo
0660490c9b Adding a dependency is cancelled if you click anywhere that's not a task
FEA: ItEr02S03MigracionZK5
2010-12-20 11:48:48 +01:00
Farruco Sanjurjo
2e99fc12dc ESC keypress event is now handled
* If you press the ESC key while adding a dependency (before it's consolidated) the depency line will be removed

FEA: ItEr02S03MigracionZK5
2010-12-20 11:12:13 +01:00
Farruco Sanjurjo
b4028cc062 Added initial implementation for Milestone widget
* It's based on TaskComponent widget

FEA: ItEr02S03MigracionZK5
2010-12-20 11:11:49 +01:00
Farruco Sanjurjo
a5e48ab696 Added missing ">" symbol at task-list mold
* It caused the DepencencyList component to be wrongly placed

FEA: ItEr02S03MigracionZK5
2010-12-14 14:13:11 +01:00
Farruco Sanjurjo
59bd2180c9 Fixed bug on TaskComponent widget-class
* A string with values "true"/"false" was treated as if it was a proper boolean. As a result the test always succeeded

FEA: ItEr02S03MigracionZK5
2010-12-13 13:09:25 +01:00
Farruco Sanjurjo
54225361d1 Added if-check to avoid exception caused by Milestone
* Using TaskElementAdapter#getTooltipText or TaskElementAdapter#getLabelsText
with a Milestone object raised an exception because it was trying to use
an order element which it hasn't

FEA: ItEr02S03MigracionZK5
2010-12-10 13:16:21 +01:00
Farruco Sanjurjo
6977a37c3b Fixed shrinked treecol on resource load view
FEA: ItEr02S03MigracionZK5
2010-12-10 11:17:28 +01:00
Farruco Sanjurjo
55ef398e1c Changed the given id for TimeTracker at AdvancedAllocationController
* Got rid of "timeTracker" which is used nowhere else on the application

FEA: ItEr02S03MigracionZK5
2010-12-07 14:21:23 +01:00
Farruco Sanjurjo
8cd849034e Recoded advanceAllocation Javascript file
* Uses jQuery instead of YUI
FEA: ItEr02S03MigracionZK5
2010-12-07 14:19:39 +01:00
Farruco Sanjurjo
3c5c1500c5 Added method to retrieve the TimeTracker's real width
FEA: ItEr02S03MigracionZK5
2010-12-07 14:15:45 +01:00
Farruco Sanjurjo
8ed236b4c1 Added scrolling functionallity to TimeTracker's widget-class
* Also included this widget on lang-addon.xml and zk.wpd so it's avaliable to use
* Added getWidgetClass method to TimeTrackerComponent to ovewrite the HtmlMacroComponent method. This is required if we want TimeTrackerComponent to use
our new widget-class instead of HtmlMacroComponent's: zk.Macro

FEA: ItEr02S03MigracionZK5
2010-12-07 14:12:40 +01:00
Farruco Sanjurjo
85957d30cb Added code to make TimeTracker's widget-class singleton
FEA: ItEr02S03MigracionZK5
2010-12-03 14:00:41 +01:00
Farruco Sanjurjo
3c401a05d0 Skeletal code for TimeTracker widget-class
FEA: ItEr02S03MigracionZK5
2010-12-03 13:58:36 +01:00
Farruco Sanjurjo
d391d7b2ef Explicitly set width to solve shrinking problems with chrome
FEA: ItEr02S03MigracionZK5
2010-11-30 13:09:50 +01:00
Farruco Sanjurjo
091762e072 Fixed shrinked tables on labels tab
* The tables on labels tab use now 100% of all avaliable widt avaliable widthh

FEA: ItEr02S03MigracionZK5
2010-11-30 11:04:12 +01:00
Farruco Sanjurjo
fb00c28278 Added missing closing symbol
* As a result of it, the names of resources appeared on the chart

FEA: ItEr02S03MigracionZK5
2010-11-29 12:49:47 +01:00
Óscar González Fernández
b4ea86c80f FEA: ItEr02S03MigracionZK5
Avoid uses of Mode#goToOrderMode that cause unnecessary repaintings

Now the mode is changed after hiding the previous tab, so the previous
tab is not repainted and the new tab is showed with the correct mode.

FEA: ItEr63S03BugFixing
2010-11-29 12:35:20 +01:00
Farruco Sanjurjo
9a99ef5b0f Changed valing attribute to pack
*This is deprecated on ZK 5

FEA: ItEr02S03MigracionZK5
2010-11-29 12:24:49 +01:00
Farruco Sanjurjo
2f3e6f3096 Replaced DOM methods with jQuery
* We go back to jQuery after checking that using directly DOM methods didn't improve performance

FEA: ItEr02S03MigracionZK5
2010-11-23 11:46:52 +01:00
Farruco Sanjurjo
5a92a1542f Fixed bug that caused Duplicated ID exception
* The listener must be removed or we'll be appending the same object twice

FEA: ItEr02S03MigracionZK5
2010-11-19 13:30:55 +01:00
Farruco Sanjurjo
4464734858 Fixed onflicts:
ganttzk/src/main/java/org/zkoss/ganttz/TaskComponent.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/company/CompanyPlanningModel.java

FEA: ItEr02S03MigracionZK5
2010-11-15 14:05:22 +01:00
Farruco Sanjurjo
e39d57e33f Missing commit
* This commit had to be created back on time but I forgot to do it : (

FEA: ItEr02S03MigracionZK5
2010-11-15 12:36:26 +01:00
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
Óscar González Fernández
bb53ec7060 Merge branch 'master' into migration-to-ZK5-dev
Conflicts:
	ganttzk/src/main/java/org/zkoss/ganttz/DependencyComponent.java
	ganttzk/src/main/java/org/zkoss/ganttz/TaskComponent.java
	ganttzk/src/main/resources/web/ganttz/zul/plannerLayout.zul
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/chart/ChartFiller.java
	pom.xml
2010-10-26 17:17:49 +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
Óscar González Fernández
3fe0a1466f Resolve the address
Otherwise in some systems a IPv6 was returned and CutyCapt couldn't
handle it.

FEA: ItEr62S05BugFixing
2010-10-25 19:40:06 +02:00
Óscar González Fernández
355f24f276 [Bug #694] Fix bug
Doing reload inside afterCompose so when accessing the bindings the
controllers are already initialized.

FEA: ItEr62S05BugFixing
2010-10-25 17:41:30 +02:00
Óscar González Fernández
ebea641c7a In Java fields must not start in uppercase.
FEA: ItEr62S05BugFixing
2010-10-25 17:27:06 +02:00
Óscar González Fernández
2b225b3d00 Remove try..catch
It was swallowing the exception, albeit it reported it. Let it happen.

FEA: ItEr62S05BugFixing
2010-10-25 17:23:21 +02:00
Óscar González Fernández
364e98c958 Remove no longer needed method
FEA: ItEr62S05BugFixing
2010-10-25 16:51:05 +02:00
Óscar González Fernández
fa7d860cc8 [Bug #689] Fix bug
The new end was not being calculated correctly. For durations lesser
than a day, getLengthMilliseconds returned zero. Now the parts that do
not reach a one day value are summed correctly.

FEA: ItEr62S05BugFixing
2010-10-25 16:48:54 +02:00
Jacobo Aragunde Pérez
bd10b8ef31 Remove code textboxes from the 'to refresh' list when the row they belong is deleted.
We do it to prevent deleted textboxes to be refreshed. Besides, the list has
been replaced with a map, for convenience.

FEA: ItEr62S08PerformanceOrderEdition
2010-10-25 10:14:15 +02:00