src.ui package¶
Submodules¶
src.ui.Branch module¶
src.ui.Command module¶
-
class
src.ui.Command.
InsertNodeCommand
(context, *args, **kwargs)[源代码]¶ 基类:
PyQt5.QtWidgets.QUndoCommand
insert node
-
class
src.ui.Command.
MoveCommand
(context, *args, **kwargs)[源代码]¶ 基类:
PyQt5.QtWidgets.QUndoCommand
move node
-
class
src.ui.Command.
NodeColorCommand
(context, *args, **kwargs)[源代码]¶ 基类:
PyQt5.QtWidgets.QUndoCommand
Change Node Color
src.ui.Component module¶
-
class
src.ui.Component.
Link
(*args, **kwargs)[源代码]¶ 基类:
PyQt5.QtWidgets.QMainWindow
New a Link Window
new a Link Window under activateNode
- Signals:
link: close Link Window send link content linkChange: Link Window text Change
-
link
¶
-
linkChange
¶
-
class
src.ui.Component.
MySlider
(view, *args, **kwargs)[源代码]¶ 基类:
PyQt5.QtWidgets.QSlider
ReWrite for QSlider
Control View Scale Due to slide time delay, start a timer.
-
view
¶ QGraphicsView对象
-
src.ui.Config module¶
src.ui.Graph module¶
-
class
src.ui.Graph.
Graph
(*args, **kwargs)[源代码]¶ 基类:
PyQt5.QtWidgets.QGraphicsScene
ReWrite QGraphicsScene
Add Node and Branch to Scene
- Signals:
contentChanged: node content change signal nodeNumChange: num od node changed messageShow: message show in status bar press_close: press scene close subWindow(Note Window and Link Window)
-
brachDistance
= 80¶
-
contentChanged
¶
-
messageShow
¶
-
nodeNumChange
¶
-
press_close
¶
src.ui.Left_panel module¶
src.ui.Node module¶
-
class
src.ui.Node.
Node
(*args, **kwargs)[源代码]¶ 基类:
PyQt5.QtWidgets.QGraphicsTextItem
ReWrite QGraphicsTextItem
- Signals:
nodeChanged: node content change nodeMoved: node moved nodeEdited: dobleclick edit node nodeSelected: click select node nodeLostFocus: node lost focus
-
nodeChanged
¶
-
nodeEdited
¶
-
nodeLostFocus
¶
-
nodeMoved
¶
-
nodeSelected
¶
src.ui.Top_panel module¶
src.ui.main_panel module¶
src.ui.mainwindow module¶
-
class
src.ui.mainwindow.
MainWindow
(settings)[源代码]¶ 基类:
PyQt5.QtWidgets.QMainWindow
Main Window
Show the main window for app
- Signals:
addNote: (int, int, str) -> (pos_x, pos_y, note_text) addLink: (int, int, str) -> (pos_x, pos_y, link_text) close_signal: MainWindow close signal
-
addLink
¶
-
addNote
¶
-
close_signal
¶