OpenLayers OpenLayers

Ticket #417 (closed feature: fixed)

Opened 2 years ago

Last modified 2 years ago

Generic Toolbar

Reported by: camerons Assigned to:
Priority: major Milestone: 2.4 Release
Component: Control Version:
Keywords: Cc:
State:

Description

I think we should factor a generic ToolBar.js function. Users can then add tools to the ToolBar. ToolBar is responsible for determining what Tool is selected, and rendering the buttons in a line for selection. It can also handle hiding/displaying the toolbar.

A tool (or you could call it a button) has the following: * imageIn * imageOut * buttonType = radio, 2state, select * function mouseUpAction() * function mouseDownAction() * function mouseDblClick() etc

After a Toolbar is created, tools can be added to the Toolbar.

Note 1: This concept uses the State Design Pattern. Note 2: There is already a Control.MouseToolbar which contains some of this functionality, but it needs to be made generic.

Attachments

irc Mapbuilder16022007.txt (9.9 kB) - added by openlayers on 02/19/07 03:30:49.
mapbuidler irc meeting about OL and MB toolbar

Change History

12/12/06 09:00:15 changed by pgiraud

Bertil > important things for us and probably also for others projects is to allow to put the control in other div

A patch is proposed for that. See http://trac.openlayers.org/ticket/445

12/28/06 20:03:21 changed by euzuro

  • milestone changed from 2.4 Release to 2.5 Release.

01/24/07 15:52:14 changed by camerons

This feature is of particular interest to the http://communitymapbuilder.org community. In particular, Mapbuilder would like to integrate the Mapbuilder toolbar with the OpenLayers toolbar. So when this is coded, we should use Mapbuilder terms and design concepts where possible.

02/19/07 03:30:49 changed by openlayers

  • attachment irc Mapbuilder16022007.txt added.

mapbuidler irc meeting about OL and MB toolbar

03/09/07 17:33:26 changed by sderle

this is fixed in vector-2.4 now.

04/01/07 20:29:21 changed by crschmidt

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone changed from 2.5 Release to 2.4 Release.

Included in what will be the 2.4 release.