This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TextMate grammer cannot move across multiple lines. Use the suggestion workaround mentioned in this issue: microsoft/vscode-textmate#41
- Loading branch information
1 parent
4356a68
commit 0a865bf
Showing
2 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
UserButton { | ||
id: plotButton | ||
x: typeColumnLayout.x + 20 | ||
y: typeColumnLayout.y + typeColumnLayout.height + 20 | ||
font.pixelSize: topItem.pixelSize + 1 | ||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter | ||
text: checked? qsTr("停止") : qsTr("绘图") | ||
property bool waiting: false | ||
onClicked : | ||
{ | ||
if(!waiting) | ||
{ | ||
waiting = true | ||
if(checked) | ||
{ | ||
|
||
for(let [key, value] of ObjCreation.objs) | ||
{ | ||
log.write(Verbose.Debug, `Charts Object: ${key}`) | ||
} | ||
} | ||
else | ||
{ | ||
log.write(Verbose.Debug, "try close plot thread.") | ||
checked = true | ||
plot.stop() | ||
} | ||
} | ||
} | ||
|
||
onCreated : { | ||
if(!waiting) | ||
{ | ||
waiting = true | ||
if(checked) | ||
{ | ||
|
||
for(let [key, value] of ObjCreation.objs) | ||
{ | ||
log.write(Verbose.Debug, `Charts Object: ${key}`) | ||
} | ||
} | ||
else | ||
{ | ||
log.write(Verbose.Debug, "try close plot thread.") | ||
checked = true | ||
plot.stop() | ||
} | ||
} | ||
} | ||
} |
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