-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tooltip tray icon * Add, remove, copy, drag items in sequence list * Add presets * Shitty drag and drop * Add current list saving and loading * Randomize colors * Move sequence model to root folder * Bind new model to timer and dials * add color selector * repair master model add and copy * reload colors order on change * Refactor colors model * Restore image-based tray icon * Add external preset drop * add json file drag * Fix drag and drop glitches * Remove all unused properties from drag * Refactor sequence view. Add QML native header and footer items * Bring back notification system * Add split highlighting * Fix next item creation * Remove special pomodoro model * Remove cpp notification system * Fix notification text on in global timer mode * Block sequence editing while timer is running * Minor appearance tweaks * Add resource files * Fix notify on setting * Resolve some user experience issues * Add custom font * Add checkboxes to preferences * Add text input validation
- Loading branch information
Showing
77 changed files
with
1,759 additions
and
785 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
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
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,78 @@ | ||
import QtQuick 2.0 | ||
|
||
Item{ | ||
id: externalDrop | ||
anchors.fill: parent | ||
|
||
property bool validFile: false | ||
|
||
function loadContent(url){ | ||
var req = new XMLHttpRequest; | ||
req.open("GET", url); | ||
req.onreadystatechange = function() { | ||
if (req.readyState === XMLHttpRequest.DONE) { | ||
console.log(req.responseText) | ||
masterModel.data = req.responseText | ||
masterModel.load() | ||
} | ||
}; | ||
req.send(); | ||
} | ||
|
||
Rectangle{ | ||
id: rectangle | ||
visible: validFile | ||
color: colors.getColor('bg') | ||
radius: 3 | ||
border.color: colors.getColor('light') | ||
border.width: 2 | ||
anchors.fill: parent | ||
|
||
Text { | ||
id: externalDropText | ||
height: 150 | ||
color: colors.getColor("mid") | ||
text: "Not valid file type" | ||
clip: true | ||
fontSizeMode: Text.Fit | ||
anchors.right: parent.right | ||
anchors.rightMargin: 50 | ||
anchors.left: parent.left | ||
anchors.leftMargin: 50 | ||
font.pointSize: 26 | ||
anchors.verticalCenter: parent.verticalCenter | ||
verticalAlignment: Text.AlignVCenter | ||
horizontalAlignment: Text.AlignHCenter | ||
} | ||
} | ||
|
||
DropArea { | ||
id: dropData | ||
anchors.fill: parent | ||
onEntered: { | ||
externalDrop.validFile = true | ||
drag.accept() | ||
externalDropText.text = "Drop "+ window.title + " preset here" | ||
} | ||
onExited: { | ||
externalDrop.validFile = false | ||
} | ||
onDropped: if (drop.hasText) { | ||
if (drop.proposedAction == Qt.MoveAction || drop.proposedAction == Qt.CopyAction) { | ||
externalDrop.loadContent(drop.text) | ||
drop.acceptProposedAction() | ||
externalDrop.validFile = false | ||
} | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
|
||
|
||
/*##^## | ||
Designer { | ||
D{i:0;autoSize:true;height:480;width:640}D{i:2;anchors_width:447} | ||
} | ||
##^##*/ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.