Commit Graph
100 Commits
Author SHA1 Message Date
Josh Holtrop 3f6463b2c0 do not need BUTTON_PRESS_MASK event explicitly allowed 2011-03-21 16:52:14 -04:00
Josh Holtrop dc0acdae22 tasks are selectable 2011-03-21 16:51:24 -04:00
Josh Holtrop 19f3e8ec1b project hour labels clickable to select project 2011-03-20 11:04:23 -04:00
Josh Holtrop 16f205178f add some experimental colors to status line 2011-03-20 10:38:14 -04:00
Josh Holtrop 73d846ab0d shorter/simpler status bar text 2011-03-20 10:31:46 -04:00
Josh Holtrop 6801a8eee5 shown_projects is a dictionary 2011-03-19 23:07:13 -04:00
Josh Holtrop 91b120ae22 pressing Escape triggers destroy_event
only call gtk.main_quit() from one place
2011-03-19 23:05:08 -04:00
Josh Holtrop 743bcb03f1 remove debug prints 2011-03-19 23:02:54 -04:00
Josh Holtrop 514ad17ea1 add TODOs 2011-03-19 23:02:12 -04:00
Josh Holtrop 0a72411586 update status label on In/Out event 2011-03-19 23:00:25 -04:00
Josh Holtrop 3b48bce57b update status on startup, In/Out handling 2011-03-19 22:22:28 -04:00
Josh Holtrop e125972edd add clear() method 2011-03-19 22:15:33 -04:00
Josh Holtrop 42eff0b8d3 do not write variables beginning with '_' 2011-03-19 22:08:10 -04:00
Josh Holtrop 3a4e23f7d4 add timer to update status label 2011-03-19 22:02:19 -04:00
Josh Holtrop 2262d2c92a save config on exit 2011-03-19 21:46:22 -04:00
Josh Holtrop daf1a95050 initialize mark time if set in config 2011-03-19 21:45:40 -04:00
Josh Holtrop ec8eb3b140 fix Config error, add get()/set() 2011-03-19 21:37:25 -04:00
Josh Holtrop 3c6703771d create a Config and pass it to the Window 2011-03-19 21:16:17 -04:00
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