update
This commit is contained in:
parent
dd9542622e
commit
75e239a92f
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/manage/wnss.bat" charset="GBK" />
|
||||
</component>
|
||||
</project>
|
|
@ -8,7 +8,8 @@
|
|||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/frame/ContentView.py" beforeDir="false" afterPath="$PROJECT_DIR$/frame/ContentView.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/graph/undirected_graph/UDGPresent.py" beforeDir="false" afterPath="$PROJECT_DIR$/graph/undirected_graph/UDGPresent.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/parse/StoryMap.py" beforeDir="false" afterPath="$PROJECT_DIR$/parse/StoryMap.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/manage/NovelManage.py" beforeDir="false" afterPath="$PROJECT_DIR$/manage/NovelManage.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/manage/wnss.bat" beforeDir="false" afterPath="$PROJECT_DIR$/manage/wnss.bat" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
@ -36,33 +37,33 @@
|
|||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">{
|
||||
"keyToString": {
|
||||
"Python.CompareViews.executor": "Run",
|
||||
"Python.CompareWindow.executor": "Run",
|
||||
"Python.ContentView.executor": "Debug",
|
||||
"Python.DAGGraph (1).executor": "Run",
|
||||
"Python.DAGGraph.executor": "Run",
|
||||
"Python.DAGLayout (1).executor": "Run",
|
||||
"Python.DAGLayout.executor": "Run",
|
||||
"Python.DAGPresent.executor": "Run",
|
||||
"Python.MergeView.executor": "Run",
|
||||
"Python.MileStone.executor": "Run",
|
||||
"Python.NovelManage.executor": "Debug",
|
||||
"Python.ReferView.executor": "Run",
|
||||
"Python.StoryMap.executor": "Run",
|
||||
"Python.UDGLayout.executor": "Run",
|
||||
"Python.UDGPresent.executor": "Run",
|
||||
"Python.ast_load.executor": "Debug",
|
||||
"Python.entry.executor": "Run",
|
||||
"Python.test.executor": "Run",
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"git-widget-placeholder": "master",
|
||||
"last_opened_file_path": "D:/Projects/Python/StoryTools",
|
||||
"settings.editor.selected.configurable": "debugger.dataViews"
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"Python.CompareViews.executor": "Run",
|
||||
"Python.CompareWindow.executor": "Run",
|
||||
"Python.ContentView.executor": "Run",
|
||||
"Python.DAGGraph (1).executor": "Run",
|
||||
"Python.DAGGraph.executor": "Run",
|
||||
"Python.DAGLayout (1).executor": "Run",
|
||||
"Python.DAGLayout.executor": "Run",
|
||||
"Python.DAGPresent.executor": "Run",
|
||||
"Python.MergeView.executor": "Run",
|
||||
"Python.MileStone.executor": "Run",
|
||||
"Python.NovelManage.executor": "Debug",
|
||||
"Python.ReferView.executor": "Run",
|
||||
"Python.StoryMap.executor": "Run",
|
||||
"Python.UDGLayout.executor": "Run",
|
||||
"Python.UDGPresent.executor": "Run",
|
||||
"Python.ast_load.executor": "Debug",
|
||||
"Python.entry.executor": "Run",
|
||||
"Python.test.executor": "Run",
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"git-widget-placeholder": "master",
|
||||
"last_opened_file_path": "D:/Projects/Python/StoryTools",
|
||||
"settings.editor.selected.configurable": "debugger.dataViews"
|
||||
}
|
||||
}</component>
|
||||
}]]></component>
|
||||
<component name="PyDebuggerOptionsProvider">
|
||||
<option name="mySaveCallSignatures" value="true" />
|
||||
<option name="mySupportGeventDebugging" value="true" />
|
||||
|
@ -181,19 +182,19 @@
|
|||
<method v="2" />
|
||||
</configuration>
|
||||
<list>
|
||||
<item itemvalue="Python.UDGPresent" />
|
||||
<item itemvalue="Python.test" />
|
||||
<item itemvalue="Python.UDGLayout" />
|
||||
<item itemvalue="Python.ContentView" />
|
||||
<item itemvalue="Python.DAGPresent" />
|
||||
<item itemvalue="Python.UDGLayout" />
|
||||
<item itemvalue="Python.UDGPresent" />
|
||||
<item itemvalue="Python.test" />
|
||||
</list>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Python.ContentView" />
|
||||
<item itemvalue="Python.DAGPresent" />
|
||||
<item itemvalue="Python.UDGPresent" />
|
||||
<item itemvalue="Python.test" />
|
||||
<item itemvalue="Python.UDGLayout" />
|
||||
<item itemvalue="Python.DAGPresent" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
|
|
|
@ -4,7 +4,7 @@ from typing import Dict, List
|
|||
from PyQt5.QtCore import QPoint, Qt
|
||||
from PyQt5.QtGui import QTransform
|
||||
from PyQt5.QtWidgets import QApplication, QWidget, QGridLayout, QSlider, QDoubleSpinBox
|
||||
from PyQt5.QtWidgets import QMenu, QHBoxLayout
|
||||
from PyQt5.QtWidgets import QMenu, QHBoxLayout, QVBoxLayout
|
||||
|
||||
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
|
||||
from graph.DataType import Arrow, Point, Line
|
||||
|
@ -176,13 +176,14 @@ class ArticleRefsView(QWidget):
|
|||
|
||||
if __name__ == "__main__":
|
||||
app = QApplication(sys.argv)
|
||||
#view = StorylinesView(None)
|
||||
view = ArticleRefsView(None)
|
||||
view.show()
|
||||
view1 = StorylinesView(None)
|
||||
view2 = ArticleRefsView(None)
|
||||
view1.show()
|
||||
view2.show()
|
||||
|
||||
tool = XAST_ParseTool(global_ast_path)
|
||||
# view.present_stories_graph(tool.get_story_graph())
|
||||
view.present_volumes_graph(tool.get_article_nodes())
|
||||
view1.present_stories_graph(tool.get_story_graph())
|
||||
view2.present_volumes_graph(tool.get_article_nodes())
|
||||
|
||||
# view.fragment_view.highlight_graph_link(["血脉的源头", "血脉的源头&待续"])
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -249,7 +249,6 @@ class UDGPresent(QGraphicsView):
|
|||
if item is not None and item.node_type() == PresentNodeType.PresentNode:
|
||||
vnode: PresentNode = item
|
||||
self.node_clicked.emit(vnode.node_name)
|
||||
print(vnode.node_name)
|
||||
pass
|
||||
pass
|
||||
pass
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -9,6 +9,7 @@ from parse.StoryMap import XAST_ParseTool, storyline_list2map
|
|||
from parse.StorylineCmp import CmpTool
|
||||
from manage.MileStone import base_store_path, current_store_path
|
||||
from frame.CompareViews import CompareWindow
|
||||
from frame.ContentView import StorylinesView, ArticleRefsView
|
||||
|
||||
|
||||
def git_save(target_dir: str):
|
||||
|
@ -61,4 +62,22 @@ if __name__ == "__main__":
|
|||
all_changed = cmp_tool.graph_compare(map_new, map_old)
|
||||
present_view = CompareWindow(map_new, all_changed, None)
|
||||
present_view.show()
|
||||
pass
|
||||
|
||||
elif cmd_line == "wnss:-prsn":
|
||||
git_save(os.getcwd())
|
||||
nsc_compile(os.getcwd())
|
||||
stool = XAST_ParseTool(current_store_path)
|
||||
graph_curr = stool.get_story_graph()
|
||||
story_lines_view = StorylinesView(None)
|
||||
story_lines_view.show()
|
||||
story_lines_view.present_stories_graph(graph_curr)
|
||||
|
||||
frags_curr = stool.get_article_nodes()
|
||||
frags_refs_view = ArticleRefsView(None)
|
||||
frags_refs_view.show()
|
||||
frags_refs_view.present_volumes_graph(frags_curr)
|
||||
|
||||
pass
|
||||
|
||||
app.exec()
|
Binary file not shown.
Binary file not shown.
|
@ -1,7 +1,5 @@
|
|||
@echo off
|
||||
for %%i in (%0) do (
|
||||
set "FolderPath=%%~dpi"
|
||||
)
|
||||
set FolderPath=%~dp0
|
||||
|
||||
set "ScriptName=NovelManage.py"
|
||||
set ScriptPath=%FolderPath%%ScriptName%
|
||||
|
@ -10,6 +8,9 @@ set args_opt=wnss%1
|
|||
|
||||
if %args_opt% == wnss-cmp (
|
||||
python %ScriptPath% wnss -cmp
|
||||
) else if %args_opt% == wnss-prsn (
|
||||
python %ScriptPath% wnss -prsn
|
||||
) else (
|
||||
echo 对比基线: wnss -cmp
|
||||
echo 显示内容: wnss -prsn
|
||||
)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue