コード例 #1
0
text = TextEditor()
text.setMinimumSize(212, 212)
text.connectGraph(graph)

nodeTree = NodeSelectorTree(
    "Function")  # todo: rename to specify this is the function tree
nodeTree.Widget().setMinimumSize(212, 600)
nodeTree.setMinimumSize(212, 212)
nodeTreeVar = NodeSelectorTree("Variable")
nodeTreeVar.Widget().setMinimumSize(212, 600)
nodeTreeVar.setMinimumSize(212, 212)
nodeTree.filterSignal.connect(nodeTreeVar.onFilterEvent)

console = Console()
console.connectLog(cmake_output_log)

# create dock widget "containers" for the text and graph widgets
graphContainer = QDockWidget(settings.cmakeFilePath)
graphContainer.setAllowedAreas(Qt.LeftDockWidgetArea)
graphContainer.setWidget(graph)

textContainer = QDockWidget("Cmake Text")
textContainer.setAllowedAreas(Qt.RightDockWidgetArea)
textContainer.setWidget(text)

nodeSelectorContainer = QDockWidget("Functions")
nodeSelectorContainer.setAllowedAreas(Qt.LeftDockWidgetArea)
nodeSelectorContainer.setWidget(nodeTree)

nodeSelectorContainerVar = QDockWidget("Variables")