Commit Graph

4 Commits

Author SHA1 Message Date
baldurk f8b7f0ca87 Serialise area objects as [name, data] pairs, with custom persist data
* This works by presuming a property 'persistData' set up on an object.
  If configured, it will be set and restored in the data value.
2016-10-07 15:58:49 +02:00
baldurk e548cb5cf7 Allow disabling a specific tab from being dragged
* Also cancels any re-arrangements that involve that tab (mostly useful
  for a fixed tab at the start of the tab list).
2015-07-10 16:38:44 +02:00
baldurk 4627ead8f2 Add custom properties to ToolWindowManager toolwindows, update titles
* Two properties added - DisallowUserDocking which completely prevents
  a toolwindow from being dragged or docked other than programmatically.
* HideCloseButton also hides the close button that normally appears on
  the tabs created
* Also tabs now watch for title change signals and update the titles in
  tabs.
2015-07-10 16:38:44 +02:00
baldurk 764d13e11d Include ToolWindowManager for Qt docking implementation
* From https://github.com/Riateche/toolwindowmanager
* It seems superior to the built-in Qt docking as-is, and since it's
  a few open source files it should be easy to improve with features
  we might want to match DockingUI functionality.
* Programmatic sizing for the default layout seems inflexible, but since
  that's a one-time thing it's not the end of the world.
* There's no auto-hide functionality.
* The highlighting of where to drop could be improved, as well as the
  detection of where to drop (currently it seems to cycle through
  several possibilities each second rather than having a consistent drop
  location).
* Floating windows could be styled a bit better.
* Need to check whether we can have nested docking sections (so the
  texture viewer e.g. can have its own docks, that won't float or go out
  of the texture viewer.
2015-07-10 16:38:17 +02:00