-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1957 from kylecorry31/path-group-export
Path group export
- Loading branch information
Showing
10 changed files
with
161 additions
and
47 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
app/src/main/java/com/kylecorry/trail_sense/navigation/paths/domain/FullPath.kt
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,3 @@ | ||
package com.kylecorry.trail_sense.navigation.paths.domain | ||
|
||
data class FullPath(val path: Path, val points: List<PathPoint>, val parent: PathGroup? = null) |
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
14 changes: 13 additions & 1 deletion
14
app/src/main/java/com/kylecorry/trail_sense/navigation/paths/domain/PathStyle.kt
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 |
---|---|---|
@@ -1,10 +1,22 @@ | ||
package com.kylecorry.trail_sense.navigation.paths.domain | ||
|
||
import androidx.annotation.ColorInt | ||
import com.kylecorry.trail_sense.shared.colors.AppColor | ||
|
||
data class PathStyle( | ||
val line: LineStyle, | ||
val point: PathPointColoringStyle, | ||
@ColorInt val color: Int, | ||
val visible: Boolean | ||
) | ||
){ | ||
companion object { | ||
fun default(): PathStyle { | ||
return PathStyle( | ||
LineStyle.Dotted, | ||
PathPointColoringStyle.None, | ||
AppColor.Gray.color, | ||
true | ||
) | ||
} | ||
} | ||
} |
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
1 change: 1 addition & 0 deletions
1
app/src/main/java/com/kylecorry/trail_sense/navigation/paths/ui/PathGroupAction.kt
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
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