Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Sidebar implementation is mainly in sfx module. Related files or concept is as follows. The object down will be created by the object up.
For above picture, below concept are referred to:

Concept

Roles

Dispatcher

Internally maintains a stack of objects, each representing a context. Examples for these contexts are “document”, “view”, “text”, “table”, “cell” etc

Binding

Associate for dispatcher. To be a connector between dispatcher and context state.

Context

A specific situation, such as the current selection or cursor position in a document, has a context

View frame(shell)

View frame extended from shell. Context is represented by a stack of shell object

Interface

Each interface has a static slot array

Slot

Slot represents a command  
2) contains function pointers to 
execute the command or get
status information about it   
3) has a unique slotID 
Represents a command. Contains functions pointers to execute the command or get status info about it. Has a unique slotID

Work window

Dispatch use it to created sidebar child window.

Child window

Child window is not a real window. But it relates with a real window which can be a docking window. It is a data structure for framework to operate real window in a common way.

Others

Dock window, panel and section are easy to be understood from the overview picture.

...