118 Commits

Author SHA1 Message Date
Josh Holtrop
83258c5d18 add DataStore class to create sqlite3 db 2011-02-09 14:36:51 -05:00
Josh Holtrop
8d70696c3b add useless MenuBar 2011-02-09 12:47:45 -05:00
Josh Holtrop
5fc2cb8a53 switching to new GUI, remove CmdWindow 2011-02-08 22:07:08 -05:00
Josh Holtrop
9af4c655b1 only do an implicit out if the start task exists 2011-01-03 15:41:18 -05:00
Josh Holtrop
776072cb84 clear command after activating 2011-01-03 15:00:52 -05:00
Josh Holtrop
5fb84110e1 allowed command window to persist across commands 2011-01-03 14:55:44 -05:00
Josh Holtrop
7a10dd335a added Result class to hold command result 2011-01-03 13:53:45 -05:00
Josh Holtrop
b8d96c8b5a added cheap status handler, printing to console 2011-01-03 13:45:56 -05:00
Josh Holtrop
8dac698ca2 show full path to current task in command window 2011-01-03 12:57:24 -05:00
Josh Holtrop
6c2b6df94c added counting timer to CmdWindow for current task 2011-01-03 12:50:46 -05:00
Josh Holtrop
1acaefb193 added short name lookups for tasks 2011-01-03 12:15:54 -05:00
Josh Holtrop
99d37c6268 added start time parameter to CmdWindow 2011-01-03 11:05:40 -05:00
Josh Holtrop
4d641af494 add status line to CmdWindow 2011-01-03 10:58:14 -05:00
Josh Holtrop
987145e530 better type checking, only store >0 time entries 2011-01-03 09:06:05 -05:00
Josh Holtrop
32d4226eb6 fix adding tasks with no parents 2011-01-03 08:31:37 -05:00
Josh Holtrop
24451fa127 temporary print errors to console 2011-01-03 08:31:04 -05:00
Josh Holtrop
7f5aef193d always exit on empty command line 2011-01-03 08:27:08 -05:00
Josh Holtrop
4edabbdf3b processing start, out, and task commands 2011-01-02 22:10:58 -05:00
Josh Holtrop
fa2413810d DataStore.createTask(): strip names 2011-01-02 22:07:34 -05:00
Josh Holtrop
1f861b12ea DataStore.clearCurrentTask() takes no arguments 2011-01-02 22:05:40 -05:00
Josh Holtrop
b825457cdd added DataStore.getParentTaskByName() 2011-01-02 21:59:53 -05:00
Josh Holtrop
7c51c068b2 change TaskRef.dt to TaskRef.time 2011-01-02 21:54:39 -05:00
Josh Holtrop
36bfb39320 added DataStore.clearCurrentTask() 2011-01-02 21:51:31 -05:00
Josh Holtrop
0ee8461ef2 added command handlers, handling "task" command 2011-01-02 21:42:50 -05:00
Josh Holtrop
20b7681521 added DataStore.updateTask() 2011-01-02 21:42:03 -05:00
Josh Holtrop
64428ab99e added DataStore.getTaskByName(), strip task names 2011-01-02 21:17:40 -05:00
Josh Holtrop
70e687afca add "task" Command 2011-01-02 21:17:13 -05:00
Josh Holtrop
d1a81c2a9c added DataStore.getTaskByNameParent() 2011-01-02 15:21:42 -05:00
Josh Holtrop
bcac83a5a9 added DataStore.addTime() 2011-01-02 15:01:48 -05:00
Josh Holtrop
8ad5fc3c71 add taskid attribute to Task class 2011-01-02 14:29:35 -05:00
Josh Holtrop
585d3d65e1 added DataStore.createTask() 2011-01-02 14:23:43 -05:00
Josh Holtrop
6574f4d4fd added Task class and DataStore.getTaskByID() 2011-01-02 14:04:50 -05:00
Josh Holtrop
af10a21be7 added DataStore.updateCurrentTask() 2011-01-02 12:03:10 -05:00
Josh Holtrop
855068c43f added DataStore.getCurrentTask() and TaskRef class 2011-01-02 11:53:25 -05:00
Josh Holtrop
e6d8d36aeb loop to handle commands & possibly re-show window 2011-01-01 23:14:12 -05:00
Josh Holtrop
684834806e updated database schema again for dates and hours 2011-01-01 23:06:10 -05:00
Josh Holtrop
78cb101357 Command constructor: default_time optional 2011-01-01 17:51:04 -05:00
Josh Holtrop
67a04df59a fix handling date of "yesterday" 2011-01-01 17:34:08 -05:00
Josh Holtrop
4779e75ffd Changed dbfile argument to be optional, default to ~/.dwtt.db 2011-01-01 17:30:19 -05:00
Josh Holtrop
6a982d3a8c reworked command processing, "show" aliases to "status", updated tests to pass 2011-01-01 17:19:00 -05:00
Josh Holtrop
2bce1b33e1 change show command to status, added command aliases 2011-01-01 16:04:36 -05:00
Josh Holtrop
fac74e651a remove @ prefix for timespecs 2010-12-29 00:22:30 -05:00
Josh Holtrop
9ea2fbed41 beautify Command to string a little 2010-12-29 00:20:57 -05:00
Josh Holtrop
0eb5a89d18 absolute times before 7:00 without AM/PM default to PM 2010-12-29 00:19:57 -05:00
Josh Holtrop
3a225f002c bugfix in parseCommandLine() and parseTimeSpec(), tests passing 2010-12-29 00:18:05 -05:00
Josh Holtrop
ab0f265baa added an actual "start" command and test (failing) 2010-12-29 00:15:27 -05:00
Josh Holtrop
51ab4c5d7e Command.parseTimeSpec(): fix date parsing 2010-12-29 00:10:44 -05:00
Josh Holtrop
73c1310157 fix up relative time in Command.parseTimeSpec() 2010-12-29 00:06:32 -05:00
Josh Holtrop
9431ff1c88 whoops, return the_time from Command.parseTimeSpec() 2010-12-29 00:03:55 -05:00
Josh Holtrop
cc54eb8883 added Command.__str__(), setting the_time with relative time offset 2010-12-29 00:02:05 -05:00