forked from MuSmile/DearEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
427 additions
and
433 deletions.
There are no files selected for viewing
Submodule Qt-Advanced-Docking-System
updated
2 files
+4 −3 | src/DockAreaWidget.cpp | |
+1 −1 | src/DockOverlay.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ QMenuBar { | |
} | ||
|
||
QMenu { | ||
min-width: 80px; | ||
/*min-width: 80px;*/ | ||
font-size: &[Font/sizeMenuItem]; | ||
} | ||
#end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-144 Bytes
(100%)
editor/common/pyqtads/osx/libqt6advanceddocking.4.0.2.dylib
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,55 @@ | ||
from PySide6.QtCore import * | ||
from PySide6.QtGui import * | ||
from PySide6.QtWidgets import * | ||
# from editor.tools.testkit import * | ||
# from editor.widgets.menubar import * | ||
# from editor.widgets.screenshot import * | ||
# from editor.widgets.dropdown import * | ||
# from editor.widgets.new_tree import * | ||
from PySide6.QtWidgets import QMainWindow | ||
from editor.widgets.menubar import createMenuBar | ||
from editor.widgets.toolbar import * | ||
from editor.widgets.statusbar import * | ||
# from editor.widgets.color_picker import * | ||
from editor.widgets.toolbar import createToolBar | ||
from editor.widgets.statusbar import createMainStatusBar | ||
from editor.view_manager import createDockManager, createDockView | ||
|
||
import editor.views | ||
import editor.views, extensions | ||
|
||
class MainWindow(QMainWindow): | ||
def __init__(self, parent = None): | ||
super().__init__(parent) | ||
self.setGeometry(1000, 300, 800, 600) | ||
def __init__(self, parent = None): | ||
super().__init__(parent) | ||
self.setGeometry(1000, 300, 800, 600) | ||
|
||
self.setMenuBar(createMenuBar(self)) | ||
self.addToolBar(createToolBar(self)) | ||
self.setStatusBar(createMainStatusBar(self)) | ||
self.setMenuBar(createMenuBar(self)) | ||
self.addToolBar(createToolBar(self)) | ||
self.setStatusBar(createMainStatusBar(self)) | ||
|
||
self.setupEditorViews() | ||
self.setFocus() | ||
self.setupEditorViews() | ||
self.setFocus() | ||
|
||
|
||
def closeEvent(self, evt): | ||
for fw in self.dockManager.floatingWidgets(): fw.close() | ||
super().closeEvent(evt) | ||
def setupEditorViews(self): | ||
dockManager = createDockManager(self) | ||
self.dockManager = dockManager | ||
|
||
def setupEditorViews(self): | ||
dockManager = createDockManager(self) | ||
self.dockManager = dockManager | ||
dock1 = createDockView('Hierarchy') | ||
dock1.addIntoEditor('right') | ||
|
||
dock1 = createDockView('Hierarchy') | ||
dock1.addIntoEditor('right') | ||
dock2 = createDockView('Project') | ||
dock2.addIntoEditor('center') | ||
|
||
dock2 = createDockView('Project') | ||
dock2.addIntoEditor('center') | ||
dock3 = createDockView('Console') | ||
dock3.addIntoEditor('right') | ||
|
||
dock3 = createDockView('Inspector') | ||
dock3.addIntoEditor('right') | ||
dock4 = createDockView('Scene') | ||
dock4.addIntoEditor('bottom') | ||
|
||
dock4 = createDockView('Scene') | ||
dock4.addIntoEditor('bottom') | ||
# # rootarea = showEditorView('opengl', 'left') | ||
# area1 = showEditorView('Imgui', 'left') | ||
# area2 = showEditorView('Project', 'right') | ||
# showEditorView('Inspector', 'bottom', area2) | ||
# showEditorViewTabTo('Console', 'Inspector') | ||
# showEditorViewTabTo('Hierarchy', 'Imgui') | ||
# showEditorViewTabTo('FsmGraph', 'Imgui') | ||
|
||
# # rootarea = showEditorView('opengl', 'left') | ||
# area1 = showEditorView('Imgui', 'left') | ||
# area2 = showEditorView('Project', 'right') | ||
# showEditorView('Inspector', 'bottom', area2) | ||
# showEditorViewTabTo('Console', 'Inspector') | ||
# showEditorViewTabTo('Hierarchy', 'Imgui') | ||
# showEditorViewTabTo('FsmGraph', 'Imgui') | ||
# setDockSplitterSizes(area2, [600, 600]) | ||
# setDockSplitterSizes(area1, [600, 600]) | ||
|
||
# setDockSplitterSizes(area2, [600, 600]) | ||
# setDockSplitterSizes(area1, [600, 600]) | ||
# setDockFocused('Hierarchy') | ||
|
||
# setDockFocused('Hierarchy') | ||
|
||
def closeEvent(self, evt): | ||
for fw in self.dockManager.floatingWidgets(): fw.close() | ||
super().closeEvent(evt) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.