This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/50_task_navigation_by_weel'
There were big conflicts, so the conflict resolve and merge was manual
- Loading branch information
Showing
33 changed files
with
441 additions
and
230 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
305 changes: 181 additions & 124 deletions
305
Timetracker/Base.lproj/Main.storyboard → Timetracker/Views/Base.lproj/Main.storyboard
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
Timetracker/Views/TaskList/TaskListViewController+TaskPingReceiver.swift
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,28 @@ | ||
// | ||
// TaskListViewController+TaskPingReceiver.swift | ||
// Timetracker | ||
// | ||
// Created by Antonio Ribeiro on 29/04/2020. | ||
// Copyright © 2020 Antonio Ribeiro. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
extension TaskListViewController: TaskPingReceiver { | ||
|
||
func taskStarted() { | ||
filterTasks() | ||
} | ||
|
||
func ping(_ interval: TimeInterval) { | ||
L.v("Ping in TaskListViewController") | ||
let lastRow = tasks?.count | ||
calculateTime() | ||
tableView.reloadData(forRowIndexes: [lastRow!], columnIndexes: [TableColumns.accumulated.rawValue]) | ||
} | ||
|
||
func taskStopped() { | ||
filterTasks() | ||
} | ||
|
||
} |
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,25 @@ | ||
// | ||
// TaskListWindowController.swift | ||
// Timetracker | ||
// | ||
// Created by Antonio Ribeiro on 28/04/2020. | ||
// Copyright © 2020 Antonio Ribeiro. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import AppKit | ||
|
||
class TaskListWindowController: NSWindowController { | ||
|
||
@IBOutlet weak var startDatePicker: NSDatePicker! | ||
@IBOutlet weak var timespanSelector: NSSegmentedControl! | ||
|
||
var startDate: Date { | ||
return startDatePicker.dateValue | ||
} | ||
|
||
var timeSpan: TaskListViewController.TimeSpan? { | ||
return TaskListViewController.TimeSpan(rawValue: self.timespanSelector.selectedSegment) | ||
} | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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