src.ui package

Submodules

src.ui.Branch module

class src.ui.Branch.Branch(*args, **kwargs)[源代码]

基类:PyQt5.QtWidgets.QGraphicsLineItem

Rewrite QGraphicsLineItem

adjust()[源代码]

src.ui.Command module

class src.ui.Command.Context[源代码]

基类:object

context for Command

class src.ui.Command.CopyCommand(context, *args, **kwargs)[源代码]

基类:PyQt5.QtWidgets.QUndoCommand

redo(self)[源代码]
undo(self)[源代码]
class src.ui.Command.CutCommand(context, *args, **kwargs)[源代码]

基类:PyQt5.QtWidgets.QUndoCommand

redo(self)[源代码]
undo(self)[源代码]
class src.ui.Command.InsertNodeCommand(context, *args, **kwargs)[源代码]

基类:PyQt5.QtWidgets.QUndoCommand

insert node

redo(self)[源代码]
undo(self)[源代码]
class src.ui.Command.MoveCommand(context, *args, **kwargs)[源代码]

基类:PyQt5.QtWidgets.QUndoCommand

move node

id(self) → int[源代码]
mergeWith(command)[源代码]

merge movecommand

redo(self)[源代码]
undo(self)[源代码]
class src.ui.Command.NodeColorCommand(context, *args, **kwargs)[源代码]

基类:PyQt5.QtWidgets.QUndoCommand

Change Node Color

redo(self)[源代码]
undo(self)[源代码]
class src.ui.Command.PasteCommand(context, *args, **kwargs)[源代码]

基类:PyQt5.QtWidgets.QUndoCommand

redo(self)[源代码]
undo(self)[源代码]
class src.ui.Command.RemoveNodeCommand(context, *args, **kwargs)[源代码]

基类:PyQt5.QtWidgets.QUndoCommand

remove node

redo(self)[源代码]
undo(self)[源代码]
class src.ui.Command.TextColorCommand(context, *args, **kwargs)[源代码]

基类:PyQt5.QtWidgets.QUndoCommand

Change Text Color

redo(self)[源代码]
undo(self)[源代码]

src.ui.Component module

基类: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

handle_close()[源代码]
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对象

mousePressEvent(e)[源代码]

record last time value

mouseReleaseEvent(self, QMouseEvent)[源代码]
scaleView()[源代码]
class src.ui.Component.Note(*args, **kwargs)[源代码]

基类:PyQt5.QtWidgets.QMainWindow

New a Note SubWindow

new a window under activateNode

Signals:

note: close Note Window send note content noteChange: Note Window text Change

bold()[源代码]
changeFormat(fmt)[源代码]
handle_addnote(x, y, note)[源代码]
handle_close()[源代码]
note
noteChange
skew()[源代码]
text_changed()[源代码]
underline()[源代码]

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)

addBranch(srcNode, dstNode)[源代码]
addFirstFileNode(fileNode)[源代码]
addFirstNode()[源代码]
addSiblingNode(text=None)[源代码]
addSonNode(text=None)[源代码]
adjustBranch()[源代码]
adjustNode(parent, son, reverse=False)[源代码]
adjustSubTreeNode()[源代码]
brachDistance = 80
buildRelation()[源代码]
contentChanged
contextMenuEvent(self, QGraphicsSceneContextMenuEvent)[源代码]
copy()[源代码]
cut()[源代码]
genSubTree(nodeInfo, nodeList)[源代码]
getSonNodeMaxPos()[源代码]
getSonPos()[源代码]
getSubTree(node)[源代码]
getSubTreeBranch(node)[源代码]
insertPicture(image)[源代码]
keyPressEvent(self, QKeyEvent)[源代码]
messageShow
mousePressEvent(self, QGraphicsSceneMouseEvent)[源代码]
moveDown()[源代码]
moveLeft()[源代码]
moveRight()[源代码]
moveTree(node, dy)[源代码]
moveUp()[源代码]
nodeChanged()[源代码]
nodeColor()[源代码]
nodeEdited()[源代码]
nodeFactory()[源代码]
nodeLostFocus()[源代码]
nodeMoved(x, y)[源代码]
nodeNumChange
nodeSelected()[源代码]
node_(node, father)[源代码]
paste()[源代码]
press_close
readContentFromXmlFile(filename)[源代码]
removeAllBranches()[源代码]
removeAllNodes()[源代码]
removeBranch(m_node)[源代码]
removeNode()[源代码]
setActivateNode(node)[源代码]
setUndoStack(stack)[源代码]
textColor()[源代码]
writeContentToPdfFile(filename)[源代码]
writeContentToPngFile(filename)[源代码]
writeContentToXmlFile(filename)[源代码]

src.ui.Left_panel module

class src.ui.Left_panel.Left_panel[源代码]

基类:object

add_tag(path, tag)[源代码]
create_tag()[源代码]
retranslateUi(DockWidget)[源代码]
search_through_tag(tag)[源代码]
setupUi(DockWidget)[源代码]

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

focusOutEvent(self, QFocusEvent)[源代码]
insertPicture(image)[源代码]
itemChange(self, QGraphicsItem.GraphicsItemChange, Any) → Any[源代码]
mouseDoubleClickEvent(self, QGraphicsSceneMouseEvent)[源代码]
mouseMoveEvent(self, QGraphicsSceneMouseEvent)[源代码]
mousePressEvent(self, QGraphicsSceneMouseEvent)[源代码]
nodeChanged
nodeEdited
nodeLostFocus
nodeMoved
nodeSelected
paint(self, QPainter, QStyleOptionGraphicsItem, QWidget)[源代码]
setBorder(hasBorder)[源代码]
setColor(color)[源代码]
setEditable(editable)[源代码]
setMargin(margin)[源代码]
setNodeLevel(level)[源代码]
setText(text)[源代码]
setTextColor(textColor)[源代码]

src.ui.Top_panel module

class src.ui.Top_panel.Top_panel[源代码]

基类:object

setupUi(MainWindow)[源代码]
slot1()[源代码]

src.ui.main_panel module

class src.ui.main_panel.Ui_MainWindow[源代码]

基类:object

retranslateUi(MainWindow)[源代码]
setupUi(MainWindow)[源代码]

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

about()[源代码]
addNote
add_icon()[源代码]
center()[源代码]
closeEvent(self, QCloseEvent)[源代码]
close_file()[源代码]
close_signal
contentChanged(changed=True)[源代码]
exportas_pdf()[源代码]
exportas_png()[源代码]
file_autoSave()[源代码]
file_last_open()[源代码]
file_new()[源代码]
file_open(filename='')[源代码]
file_print()[源代码]
file_save(checkIfReadOnly=True)[源代码]
file_saveas()[源代码]
getNote(note)[源代码]
getPos(size)[源代码]
hot_key()[源代码]
initUI()[源代码]
labelShow(v)[源代码]
messageShow(text)[源代码]
nodeNumChange(v)[源代码]
quit()[源代码]
setLeftPanel()[源代码]
setPropertyDock()[源代码]

Dock Widget Show Hot Key Help

setUpIconToolBar()[源代码]
setUpMenuBar()[源代码]
setUpStatusBar()[源代码]
setUpToolBar()[源代码]
set_shortcut()[源代码]
show_file_tree(file_tree)[源代码]

输入一个文件树,对其进行显示

参数

file_tree (FileTree) – 需要显示的文件树

slot1()[源代码]
update_title()[源代码]

Module contents