-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
8,680 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
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,72 @@ | ||
import bb.cascades 1.0 | ||
|
||
Sheet { | ||
id: backupRestoreSheet | ||
signal backup(); | ||
signal restore(); | ||
|
||
Page { | ||
titleBar: TitleBar { | ||
title: "Backup/Restore" | ||
visibility: ChromeVisibility.Visible | ||
dismissAction: ActionItem { | ||
title: "Cancel" | ||
onTriggered: { | ||
backupRestoreSheet.close(); | ||
} | ||
} | ||
} | ||
|
||
Container { | ||
Container {} | ||
Container { | ||
leftPadding: 24 | ||
rightPadding: 24 | ||
topPadding: 44 | ||
bottomPadding: 28 | ||
horizontalAlignment: HorizontalAlignment.Fill | ||
Button { | ||
horizontalAlignment: HorizontalAlignment.Fill | ||
text: "Backup your writings" | ||
onClicked: { | ||
backup(); | ||
backupRestoreSheet.close(); | ||
} | ||
} | ||
Label { | ||
topMargin: 12 | ||
horizontalAlignment: HorizontalAlignment.Left | ||
text: "This will create a backup file, containing all of your writings and save it to a specified backup destination." | ||
multiline: true | ||
textStyle.fontSize: FontSize.XSmall | ||
textStyle.color: Color.DarkGray | ||
} | ||
} // end of back up Container | ||
Container { | ||
visible: true | ||
leftPadding: 24 | ||
rightPadding: 24 | ||
bottomPadding: 28 | ||
horizontalAlignment: HorizontalAlignment.Fill | ||
Button { | ||
horizontalAlignment: HorizontalAlignment.Fill | ||
text: "Restore your writings" | ||
onClicked: { | ||
restore(); | ||
backupRestoreSheet.close(); | ||
} | ||
} | ||
Label { | ||
topMargin: 12 | ||
horizontalAlignment: HorizontalAlignment.Center | ||
multiline: true | ||
text: "Restore your writings from a backup file." | ||
textStyle.fontSize: FontSize.XSmall | ||
textStyle.color: Color.DarkGray | ||
} | ||
} // restore Container | ||
|
||
} // end of Root Container | ||
} // end of Page | ||
|
||
} // end of Sheet |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.