Commit Graph

435 Commits

Author SHA1 Message Date
Robbie Gleichman
4a4fd9728a
Add link to Only1Loatheb's fork in README. 2022-03-20 13:40:39 -07:00
Robbie Gleichman
6706abc003 Update Stackage and comment out glance-gui build target. 2022-03-20 13:30:34 -07:00
Robbie Gleichman
685abb04a2 Reformat long lines. 2021-01-03 17:02:16 -08:00
Robbie Gleichman
5361e033fc Use a Set to represent an edge. 2020-12-31 22:22:26 -08:00
Robbie Gleichman
70f34a3d86 Use backspace to delete text. 2020-12-31 21:05:27 -08:00
Robbie Gleichman
0b3efb0262 Update stackage, fix warnings and format some app files with Ormolu. 2020-12-25 22:35:24 -08:00
Robbie Gleichman
a6a9fb988c Create label text with keyboard. 2020-12-25 01:39:37 -08:00
Robbie Gleichman
33280502f2 Pan with wasd. Make low frame rates red. 2020-12-22 20:59:33 -08:00
Robbie Gleichman
4658494972 Scale based on mouse position. 2020-12-18 21:01:46 -08:00
Robbie Gleichman
2c23a5be12 Extract out GTK/GDK code into GtkGui.hs. Put everything else in GuiInternals.hs. 2020-12-18 15:49:09 -08:00
Robbie Gleichman
0eacdab3bd Draw edges between ports. 2020-12-12 01:21:34 -08:00
Robbie Gleichman
683c3f23e2 Connect nodes with edges. 2020-12-09 23:53:59 -08:00
Robbie Gleichman
bbd2a73eed Add ability to draw edges. 2020-12-08 21:06:17 -08:00
Robbie Gleichman
d2880e8279 Add NodeType and use it to only move node when white rectangle clicked. 2020-12-07 23:08:53 -08:00
Robbie Gleichman
c124aa27ef Press space to pan. 2020-12-06 02:06:35 -08:00
Robbie Gleichman
f86a90f9d9 Use a Transform for zooming. 2020-11-29 22:56:28 -08:00
Robbie Gleichman
739c1dfaf7 Fix zooming. Fixes #13. 2020-11-27 20:58:15 -08:00
Robbie Gleichman
e7c3c2ff4c Hook up scroll wheel zoom. 2020-11-27 19:39:53 -08:00
Robbie Gleichman
c5528b9e4c Add zoom factor. 2020-11-14 23:22:05 -08:00
Robbie Gleichman
59bf88103e Update to GHC 8.8.4, lts-16.18. 2020-10-11 23:29:34 -07:00
Robbie Gleichman
76f6c04964 Remove some usages of overloaded labels from gui/Main.hs. 2020-10-11 22:22:00 -07:00
Robbie Gleichman
f13a9d1e99 Emacs style undo. Fixes #12. 2020-10-05 02:01:59 -07:00
Robbie Gleichman
6c7b1f1b81
Add link to YouTube channel to README 2020-09-20 23:14:33 -07:00
Robbie Gleichman
5cdfd12892 Issue #12: Use global IDs that are unique for the entire duration of the program.
This will prevent cherry-picked history actions from having conflicting IDs.
2020-09-20 22:13:34 -07:00
Robbie Gleichman
064aff1138 Implement undo for adding nodes. (Issue #12) 2020-09-19 21:40:22 -07:00
Robbie Gleichman
4bfbb4736a Remove refactor GUI todo. 2020-09-19 20:16:33 -07:00
Robbie Gleichman
8eaf861016 Update todo. 2020-09-19 20:08:11 -07:00
Robbie Gleichman
e55a2688ee Minor changes in gui/Main.hs. 2020-09-15 23:16:44 -07:00
Robbie Gleichman
5ed0c88e78 Use Gdk.EVENT_STOP instead of True. 2020-09-13 22:22:43 -07:00
Robbie Gleichman
9196bc6224 Modify stateRef once instead of twice in timeoutCallback. 2020-09-13 21:41:38 -07:00
Robbie Gleichman
98e5133e85 Make function to add an event to the event queue, and remove mouse button from ClickOnNode. 2020-09-13 21:17:53 -07:00
Robbie Gleichman
007ea43f03 Use elementwiseOp and Data.Tuple.Extra.both in updateState. 2020-09-13 21:03:51 -07:00
Robbie Gleichman
08dde11840 Refactor mouse events. 2020-09-13 04:54:17 -07:00
Robbie Gleichman
b31e721b3f Fix crash from unknown mouse buttons. 2020-09-13 04:00:23 -07:00
Robbie Gleichman
a360b54cba Refoctor gui/Main.hs. 2020-09-06 20:31:07 -07:00
Robbie Gleichman
0dbbab316a Use an Enum for the mouse buttons. 2020-09-04 22:49:03 -07:00
Robbie Gleichman
276d445f97 Update todo.md. 2020-09-04 22:04:37 -07:00
Robbie Gleichman
2aacd40cac Remove commented out line. 2020-09-04 21:40:43 -07:00
Robbie Gleichman
bf9434f5e0 Minor refactors and fix use of deprecated functions in gui/Main.hs. 2020-08-31 21:51:00 -07:00
Robbie Gleichman
73abde9869 Add comment to gui/Main.hs that it's formatted with Ormolu. 2020-08-31 01:30:06 -07:00
Robbie Gleichman
96d7a367bf Format gui/Main.hs with Ormolu. 2020-08-31 01:27:54 -07:00
Robbie Gleichman
896fa34009 Minor code fixes. 2020-08-23 16:34:13 -07:00
Daniel Garcia
15dc0367af Create InputEvents queue 2020-08-23 16:25:31 -07:00
Daniel Garcia
41a38aff33 Add newtype ElemId 2020-08-23 16:25:31 -07:00
Robbie Gleichman
fe31307995 Split node in half. Add struct for input events. 2020-08-23 15:02:39 -07:00
Robbie Gleichman
e809724dad Fix Inputs struct field names. 2020-08-23 14:57:41 -07:00
Robbie Gleichman
2a05dbee3f Show the node ID. 2020-08-23 14:34:20 -07:00
Robbie Gleichman
6f00d11ccb Add hie.yaml and update Stack to GHC 8.8.3. 2020-08-23 14:10:55 -07:00
Robbie Gleichman
b715173710 Refactor out function for updating FPS.
Co-authored-by: Daniel Garcia <pel_daniel@hotmail.com>
2020-08-09 16:08:09 -07:00
Daniel Garcia
648891aded Extract timeoutCallback function
Co-authored-by: Robbie Gleichman <rgleichman@gmail.com>
2020-08-09 15:49:26 -07:00