Commit Graph
100 Commits
Author SHA1 Message Date
Josh Holtrop 08128f5be0 Config class writes out its values 2011-03-19 21:13:31 -04:00
Josh Holtrop f56791b2dd update status label 2011-03-19 20:31:07 -04:00
Josh Holtrop 9333672655 add some info to About dialog; center Close button 2011-03-19 20:19:25 -04:00
Josh Holtrop 502de1354c left-align "Tasks" header 2011-03-19 20:14:24 -04:00
Josh Holtrop bfa7640e67 add Close button to About window 2011-03-19 18:47:28 -04:00
Josh Holtrop 4aa70624b3 add a rather boring Help menu and About window 2011-03-19 18:43:42 -04:00
Josh Holtrop 076882051b add File menu 2011-03-19 18:32:46 -04:00
Josh Holtrop 861d0e9e32 do not expand widgets 2011-03-19 18:23:25 -04:00
Josh Holtrop eb111d8590 fix using "rows" var where "row" should be used 2011-03-19 18:16:42 -04:00
Josh Holtrop a4406fe5a2 implemented Exit button 2011-03-19 18:14:53 -04:00
Josh Holtrop e11ee5a930 minor formatting 2011-03-19 18:12:51 -04:00
Josh Holtrop ed6aeb02a2 whitespace 2011-03-19 18:09:21 -04:00
Josh Holtrop af65d8bc83 update first column size and alignment 2011-02-26 14:54:24 -05:00
Josh Holtrop cf448b0689 add project combobox not restricted to column 1 2011-02-25 22:51:37 -05:00
Josh Holtrop e8ae65e22d widen columns 2011-02-25 21:27:03 -05:00
Josh Holtrop 010e69fc36 tidy up button bar on bottom of screen 2011-02-25 21:24:08 -05:00
Josh Holtrop 7e2ffb3e24 compute/add total hours column 2011-02-25 21:21:59 -05:00
Josh Holtrop f4d60098e1 add getProjectWeekHours()
show project rows that have hours by default
2011-02-25 21:12:49 -05:00
Josh Holtrop 96e018e308 show hours to the hundredth by default 2011-02-25 21:00:30 -05:00
Josh Holtrop 06350823ea fix lowest resolution on hoursFromSeconds() 2011-02-25 20:50:45 -05:00
Josh Holtrop 0b2abe676b add updateProjectHours() to fill in hours cells 2011-02-25 20:45:23 -05:00
Josh Holtrop a8222d3247 fix hours returned for DataStore.get*Hours() 2011-02-25 20:44:52 -05:00
Josh Holtrop 9463dc489c sort project rows by name 2011-02-25 20:17:09 -05:00
Josh Holtrop f179720d1c projects_to_show and shown_projects store proj IDs 2011-02-25 20:08:35 -05:00
Josh Holtrop cf89eec609 create hours labels for project rows 2011-02-25 19:55:47 -05:00
Josh Holtrop 6842051a08 added DataStore.getProjectDailyHours() 2011-02-25 19:48:29 -05:00
Josh Holtrop 18984c32a0 add Totals row and reorganize code a little 2011-02-25 18:21:09 -05:00
Josh Holtrop a93f550cab set row spacings 2011-02-25 15:38:34 -05:00
Josh Holtrop 2a945f5bf0 fix row that project title appears on 2011-02-25 15:16:25 -05:00
Josh Holtrop fba10585f3 show projects_table after reloading it 2011-02-25 15:14:11 -05:00
Josh Holtrop c562f471bc trying to add projects to the table 2011-02-22 23:35:19 -05:00
Josh Holtrop 416a9f35bd quit if user presses Escape 2011-02-22 23:15:36 -05:00
Josh Holtrop 3f446746a4 respond to events to add a project row 2011-02-22 23:13:31 -05:00
Josh Holtrop a9442457f3 added DataStore.getDailyHours() 2011-02-22 11:18:24 -05:00
Josh Holtrop b24dcf4bad extra Window elements: monday and shown_projects 2011-02-22 10:45:40 -05:00
Josh Holtrop 48a377ec6a DataStore.createProject() returns project ID 2011-02-22 10:45:18 -05:00
Josh Holtrop 2f9c4e7df8 add initial Config class, calculate config fname 2011-02-21 23:04:01 -05:00
Josh Holtrop 15136b9c26 get project table column count from header row 2011-02-21 23:00:17 -05:00
Josh Holtrop 3eaeaa8313 add Window.updateProjects() 2011-02-21 22:14:31 -05:00
Josh Holtrop cd1fbf332c take dbfile as an argument, default to ~/.dwtt.db 2011-02-21 22:14:04 -05:00
Josh Holtrop d316405db7 take a DataStore argument 2011-02-16 15:00:32 -05:00
Josh Holtrop 067ab0dcde check for valid projectid in createTask() 2011-02-16 11:49:31 -05:00
Josh Holtrop 3cc8868699 add createProject(), fix a couple things 2011-02-15 22:18:41 -05:00
Josh Holtrop 66f2ee7c17 add createTask(), getNextId() 2011-02-15 22:15:21 -05:00
Josh Holtrop 951bf59dab add DataStore.getTasks() 2011-02-15 19:37:55 -05:00
Josh Holtrop 8f6345d478 added DataStore.getProjects() 2011-02-10 16:09:00 -05:00
Josh Holtrop 757f325ae9 add column headers 2011-02-10 14:41:22 -05:00
Josh Holtrop 59202e9a7a better code organization, add control bar buttons 2011-02-09 15:01:05 -05:00
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
Josh Holtrop 2982469274 add .gitignore for .db files 2010-12-28 23:46:14 -05:00
Josh Holtrop 40e36c4a02 separate local module imports 2010-12-28 19:05:08 -05:00