Commit Graph

23 Commits

Author SHA1 Message Date
Julian Ospald 274aabe1f3
GTK: make tabs reorderable and scrollable 2016-05-10 02:16:03 +02:00
Julian Ospald 8739ccc55f
Adjust to hpath-0.6.0 2016-05-10 02:05:05 +02:00
Julian Ospald 41e2ae6131
Adjust to new HPath API 2016-05-09 16:37:02 +02:00
Julian Ospald 5fc77f6b24
Move to new HPath API 2016-05-09 14:41:57 +02:00
Julian Ospald 526db2cbb7
GTK: fix opening symlinks that point to directories 2016-05-02 22:13:33 +02:00
Julian Ospald c5afe976cf
GTK: adjust to new APIs, CopyMode functionality is broken for now! 2016-05-02 19:14:41 +02:00
Julian Ospald 3008e4463b
GTK: implement tabs wrt #45
This also restructures the meaning of MyGUI and MyView.
They are now more strictly a hierarchy and everything that may
be specific to a view (like urlBar) has been moved into the MyView
context.

In addition, this also fixes #42
2016-04-24 18:38:47 +02:00
Julian Ospald 9d572c8a6e
GTK: remove obsolete void usage 2016-04-20 00:39:53 +02:00
Julian Ospald 680a75f5be
GTK: implement rudimentary history support wrt #21
5 items back and forth only. Implemented via a simple
TVar ([], []). Might be improved in the future.
2016-04-20 00:38:22 +02:00
Julian Ospald 8b8c9a669f
GTK: implement file drag and drop
Still doesn't work on multiple rows.

Also see #14
2016-04-18 00:51:45 +02:00
Julian Ospald e2c83b3c31
LIB/GTK: remove obsolete fullPath/fullPathS and refactor for prettiness 2016-04-16 21:50:15 +02:00
Julian Ospald 0fca64594d
LIB/GTK: use more recent library versions 2016-04-16 19:14:08 +02:00
Julian Ospald bb6c1b3cda
LIB/GTK: refactor File base type
We have now ditched AnchoredFile and just use File with Path Abs
in the path field.

This is useful since we now:
* don't allow "." or ".." as filenames anymore
* normalise paths in our path parsers and reject paths with ".."

This also allows us to know that filepaths are always valid. In addition
the 'basename' function from hpath may throw an exception if run
on the root dir "/". This exception is basically uncatched currently,
which is fine, because it's not a selectable directory.
2016-04-15 14:23:41 +02:00
Julian Ospald b7ee2ccd3d
LIB: move 'hiddenFile' to hpath package 2016-04-10 22:03:30 +02:00
Julian Ospald bad817d32d
LIB/GTK: use ByteString instead of String for 2016-04-05 00:56:36 +02:00
Julian Ospald b6342068f2
GTK: cleanup refreshView a bit
This moves some of the parsing logic where it belong, into Gtk.hs
and fixes the type to be proper 'Path Abs'.
2016-04-03 04:13:08 +02:00
Julian Ospald 0781fc690d
LIB/GTK: improve documentation 2016-04-03 03:57:35 +02:00
Julian Ospald 4da3c92e5e
LIB/GTK: cleanup compiler warnings 2016-03-31 16:19:31 +02:00
Julian Ospald 51abfb1dce
GTK: fix spelling 2016-03-31 02:44:44 +02:00
Julian Ospald 2d447a05da
GTK: improve error handling in refreshView'
This could theoretically lead to infinite recursion, but only
in case "/" is inaccessible or something. In which case the user
has really bigger problems.
2016-03-31 02:44:10 +02:00
Julian Ospald a2e6ced69a
GTK: improve error handling on invalid paths
Fixes #28
2016-03-31 02:29:16 +02:00
Julian Ospald dd013b7d7b
Fix Copyright 2016-03-31 00:28:23 +02:00
Julian Ospald 74a48b2668
Restructure module layout 2016-03-30 20:16:34 +02:00