|
|
|
@ -44,7 +44,8 @@ method view(editor: RoutineEditorState): Widget {.locks: "unknown".} = |
|
|
|
|
#later, this may be "selected by default?", instead. |
|
|
|
|
#"selected" checkboxes wiould be added to the list view. |
|
|
|
|
#to allow the user to select which routines are used for a given run. |
|
|
|
|
text = "<span weight=\"bold\">Enabled?</span>" |
|
|
|
|
text = "<span weight=\"bold\" color=\"#FFF469\">Enabled?</span>" |
|
|
|
|
tooltip = "Should this Routine be enabled for inclusion in the Bkup run?" |
|
|
|
|
xAlign = 0 |
|
|
|
|
useMarkup = true |
|
|
|
|
Switch {.expand: false.}: |
|
|
|
@ -54,7 +55,8 @@ method view(editor: RoutineEditorState): Widget {.locks: "unknown".} = |
|
|
|
|
if not editor.changed.isNil: |
|
|
|
|
editor.changed.callback(editor.routine) |
|
|
|
|
Label {.expand: false.}: |
|
|
|
|
text = "<span weight=\"bold\">Sources:</span>" |
|
|
|
|
text = "<span weight=\"bold\" color=\"#FFF469\">Sources:</span>" |
|
|
|
|
tooltip = "The file(s) or folder(s) you want to backup when this Routine is run." |
|
|
|
|
xAlign = 0 |
|
|
|
|
useMarkup = true |
|
|
|
|
Box {.expand: false.}: |
|
|
|
@ -149,13 +151,15 @@ method view(editor: RoutineEditorState): Widget {.locks: "unknown".} = |
|
|
|
|
text = routineSource |
|
|
|
|
xAlign = 0 |
|
|
|
|
Button {.expand: false.}: |
|
|
|
|
icon = "user-trash-symbolic" |
|
|
|
|
icon = "user-trash-symbolic" |
|
|
|
|
tooltip = "Delete this Source. Warning: will not ask you to confirm." |
|
|
|
|
proc clicked() = |
|
|
|
|
editor.routine.sources.delete(it) |
|
|
|
|
if not editor.changed.isNil: |
|
|
|
|
editor.changed.callback(editor.routine) |
|
|
|
|
Label {.expand: false.}: |
|
|
|
|
text = "<span weight=\"bold\">Destinations:</span>" |
|
|
|
|
text = "<span weight=\"bold\" color=\"#FFF469\">Destinations:</span>" |
|
|
|
|
tooltip = "The folder(s) or drive(s) you want to backup this Routine's Sources to." |
|
|
|
|
xAlign = 0 |
|
|
|
|
useMarkup = true |
|
|
|
|
Box {.expand: false.}: |
|
|
|
@ -212,7 +216,8 @@ method view(editor: RoutineEditorState): Widget {.locks: "unknown".} = |
|
|
|
|
text = routineDestination |
|
|
|
|
xAlign = 0 |
|
|
|
|
Button {.expand: false.}: |
|
|
|
|
icon = "user-trash-symbolic" |
|
|
|
|
icon = "user-trash-symbolic" |
|
|
|
|
tooltip = "Delete this Destination. Warning: will not ask you to confirm." |
|
|
|
|
proc clicked() = |
|
|
|
|
editor.routine.destinations.delete(it) |
|
|
|
|
if not editor.changed.isNil: |
|
|
|
|