Toolbar Rewrite

From Inkscape Wiki
Revision as of 07:38, 15 October 2021 by Tavmjong (talk | contribs) (Created page with " A page to explore rewriting the Toolbox widget == Current Situation == Toolbars: * Tools: Now a Flowbox * Snapping: Now a Popover * Main: (File ops, Undo/Redo, Copy/Paste,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A page to explore rewriting the Toolbox widget

Current Situation

Toolbars:

  • Tools: Now a Flowbox
  • Snapping: Now a Popover
  • Main: (File ops, Undo/Redo, Copy/Paste, etc.) Two possible positions/orientations.
  • Auxiliary : Changes depending on which tool is active.

Widget Structure

Tools

GtkEventBox  "ToolboxCommon"
  GtkBox     "ToolToolbox
     GtkFlowbox "tool-toolbox"
       GtkFlowboxChild
         GtkToggleButton
       GktFlowboxChild
         ...

Snap

GtkEventBox  "ToolboxCommon"
  GtkBox     "SnapToolbox
     GtkToolbar "snap-toolbox"
       GtkToggleToolButton
         GktToolButton
       GtkToolItem     "tool-item-advanced"
         GtkMenuButton "btn-advanced"
       GtkToolItem     "tool-item-simple"
         GtkMenuButton "btn-simple"

Main

GtkEventBox  "ToolboxCommon"
   GtkToolbar "CommandsToolbar"
     GtkToolButton  "FileNew"
       GtkButton
     GtkToolButton  "FileOpen"
       ...

Auxillary

GtkEventBox  "ToolboxCommon"
  GtkBox     "AuxToolBox"
    GtkGrid  "SelectToolbar"
       GtkToolbar "SubToolbar"
         GtkToolButton
          GtkButton
          ...
    GtkGrid  "NodeToolbar"
       ...