Chart2 Single-Click Concept

From Apache OpenOffice Wiki
Revision as of 16:12, 21 August 2006 by Bm@openoffice.org (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Currently, users have to do a double-click to activate a chart object embedded in a container document. After the double click, a following single-click selects the object below the mouse cursor. As this is quite complicated and not expected by users, the new chart should be able to do the activation and selection of an object in one step.

This is a proposal for solving this issue.

Activation Behaviour

Currently, we favor a mechanism that does the following:

  • When a Calc document is loaded, for all charts that have a certain flag the model should be loaded, but no view should be created unless there is no replacement-image available. See below (#Loading Charts that use Calc Data Early enough) for a more detailed information about this.
  • So, a chart usually shows its replacement image. When a user clicks on the chart object with a single click, the container application must activate the chart (State UI_ACTIVE), convert the current mouse cursor position to local coordinates of the embedded object and pass them via an (to-be-defined) interface. Then the chart shows the same behaviour like when a single click is done at this position while being UI-active.
  • We have to find out if a double-click in the chart is also available with this mechanism. (I.e., a user double-clicks, which does the same as a double-click in an activated chart, which is, opens the properties dialog of the selected object).
  • Disadvantages: With this mechanism, the quick help texts that are shown when hovering with the mouse over chart objects will not be available until the chart is activated. That is, a user must at least have clicked once into the chart for activation to have the quick help available.
  • Advantages: As the replacement images are still used (when available), scrolling through a document containing charts is much faster as no views have to be created until the chart is activated (by a single-click).


Loading Charts that use Calc Data Early enough

Personal tools