Another little demo script for the qt-plugin. Execute it to recreate
the standard leo layout with docks instead of splitters. Then
rearrange things to your hearts content.
The title bar of a dock can be any widget (I think) so the outline
dock can have hoist and chapter controls, and the notebook can have
its tabs, in the title bar.
Any extra body editors could also be in docks, (possibly tabbed), that
would save an awfull lot of hassel with splitters in the body pane.
###
import PyQt4.QtCore as QtCore
import PyQt4.QtGui as QtGui
Qt = QtCore.Qt
top = c.frame.top; ui = top.ui
h =ui.horizontalLayout; v= ui.verticalLayout
top.setDockOptions(top.dockOptions() | top.VerticalTabs)
tree = ui.treeWidget
tabs = ui.tabWidget
dock = QtGui.QDockWidget("Outlne One", top)
dock.setAllowedAreas(Qt.AllDockWidgetAreas)
dock.setWidget(tree)
top.addDockWidget(Qt.TopDockWidgetArea, dock)
dock = QtGui.QDockWidget("Outlne", top)
dock.setAllowedAreas(Qt.AllDockWidgetAreas)
dock.setWidget(tabs)
top.addDockWidget(Qt.TopDockWidgetArea, dock)
###
--
hag
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---