summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-10-30gui/help.c, help.html, Makefile, README: remove WebKit supportWerner Almesberger4-107/+1
We didn't normally use it, if using it, it would have made things quite slow, and having to support it would complicate generalizing viewer windows (which will happen soon).
2016-10-30gui/help.c (help_content), gui.c: make the help text copiableWerner Almesberger2-0/+7
This also requires globally setting gtk-label-select-on-focus to FALSE in order to avoid the text already being selected when opening the window.
2016-10-29file/: implement caching version of git_repository_open_ext for libgit2 < 0.22Werner Almesberger4-3/+41
In version 0.22, this was added: Share open packfiles across repositories to share descriptors and mmaps Unfortunately, some people are unable to upgrade to modern libraries. Without FD sharing, eeshow may run out of file descriptors when loading large repositories. This commit adds a cache to reduce the number of times a repository is opened, which may in turn reduce the number of open files.
2016-10-29main.h (usage): add __attribute__((noreturn))Werner Almesberger1-1/+1
This way, older versions of gcc will not complain about eetest's "main" ending with a call to "usage".
2016-10-29file/git-file.c: add cache for remembering commits we've already visitedWerner Almesberger1-6/+49
This brings the time for eeplot -d "%s" HEAD:neo900.pro -o neo900.pdf down from 100 s to about 1.2 s, only slightly longer than the 0.75 s plotting takes without date processing.
2016-10-28README: document sheet date overridingWerner Almesberger1-0/+48
2016-10-28kicad/pl-render.c (format_date): fix handling of %} in argumentWerner Almesberger1-7/+7
2016-10-28gui/clipboard.h: also forgot to commit (again reported by Martin Borgert)Werner Almesberger1-0/+18
2016-10-28file/git-file.c (vcs_git_time): only retrieve time if we may use it (HACK)Werner Almesberger2-1/+16
Rough performance comparison: eeplot HEAD:neo900.pro -o neo900.pdf Without -d 0.750 s -d "%s", search until blob no longer in tree 1.40 min (x 112) -d "%s", search to bottom 21 min (x 15)
2016-10-28file/git-file.c (recurse_time): search entire tree, not only top levelWerner Almesberger1-3/+19
2016-10-28kicad/pl-render.c: new date formats %s (sheet date) and %S (max sheet date)Werner Almesberger1-5/+26
2016-10-28kicad/sch.h, sch-parse.c: keep the file's mtime also in "struct sheet"Werner Almesberger2-0/+5
2016-10-28file/git-file.c (vcs_git_time): getting the right date is a little harder ...Werner Almesberger1-1/+49
First, we should be using the author ("content") date, not the commit ("envelope") date: http://stackoverflow.com/questions/11856983/why-git-authordate-is-different-from-commitdate Second, the date of the commit where we picked up the file doesn't seem to be very relevant. What we're really interested in is when the file last changed. For this, we need to perform an expensive search.
2016-10-28file/git-file.c (related_same_repo, related_only_repo): copy commit, tooWerner Almesberger1-0/+2
Else, we'll have an undefined vcs_git->commit, and crash.
2016-10-28kicad/pl-render.c: complex date formatting (for eeplot -d, WIP)Werner Almesberger1-1/+109
2016-10-28gui/clipboard.c: forgot to commit (reported by Martin Borgert)Werner Almesberger1-0/+57
2016-10-28kicad/pl-render.c (expand): don't try to free string literalWerner Almesberger1-1/+1
2016-10-28file/: retrieve file mtime or commit timeWerner Almesberger4-17/+53
2016-10-28kicad/pl-render.c: add section commentsWerner Almesberger1-0/+9
2016-10-26gfx/pdftoc.c, test/README, web/index.html: update repo URLs (cgit transition)Werner Almesberger3-6/+6
2016-10-25main/eeplot.c (main, usage): option "-d date" to override sheet dateWerner Almesberger1-2/+7
2016-10-25kicad/pl.h, pl-render.c (date_override): option override for sheet dateWerner Almesberger2-1/+4
2016-10-25web/cp.png: include generated image (command-line tools make a mess)Werner Almesberger2-2/+10
Generating cp.png from cp.xcf isn't all that easy - both ImageMagic and xcf2png fail to produce the correct result.
2016-10-25web/index.html, wt-cp.fig, Makefile: add description of copy & pasteWerner Almesberger3-1/+56
2016-10-25web/cp.xcf: combine copy & paste screenshots into single imageWerner Almesberger1-0/+0
2016-10-25web/cp-comp-ref.png, cp-glabel.png, cp-text.png: screenshots for copy & pasteWerner Almesberger3-0/+0
2016-10-22gui/sheet.c: highlight text (block) being selectedWerner Almesberger1-2/+28
2016-10-22gfx/record.c (record_find_text_bbox), record.h: find text, return bounding boxWerner Almesberger2-6/+16
2016-10-22gui/pop.c (place_pop_cover), pop.h: place pop-up to cover bounding boxWerner Almesberger2-0/+22
2016-10-22gui/over.c (overlay_draw, overlay_size): support overlays without contentWerner Almesberger1-2/+19
2016-10-22gui/comp.c (add_comp_aoi): don't crash if component is undefinedWerner Almesberger1-1/+6
2016-10-19gui/common.h, gui/sheet.c: use dragging instead of click for copying textWerner Almesberger2-5/+28
This feels much more "natural", but still lacks visual feedback.
2016-10-19gui/sheet.c (sheet_click): send text to the clipboard (uses xsel)Werner Almesberger3-2/+5
Copy & paste in Gtk/Gdk seems to have issues in a multi-head setup. xsel works fine, so we just use that for now.
2016-10-19gui/sheet.c (sheet_click): if clicking on text, show on standard error (WIP)Werner Almesberger1-5/+16
2016-10-19gfx/record.c (record_find_text): lookup text by positionWerner Almesberger2-0/+27
2016-10-19gfx/record.c: record bounding box of text (for future use)Werner Almesberger1-6/+13
2016-10-19gfx/record.h, record.c: put bounding box in its own structWerner Almesberger2-34/+45
2016-10-18web/index.html: add table of contents, with linksWerner Almesberger1-0/+15
2016-10-18web/: add documentation viewing exampleWerner Almesberger4-1/+44
2016-10-18main/eeshow.c (usage): mark -d as experimentalWerner Almesberger1-1/+1
2016-10-18README: document the experimental documentation viewing featureWerner Almesberger1-0/+80
2016-10-18gui/comp.c: restructure information flow; pop-up now disappears on clickWerner Almesberger1-43/+83
The goal is to provide visual feedback when clicking on a pop-up item, since starting a browser or loading a large PDF can take long enough for the user to become uncertain whether the click was actually processed. For this, we need to pass "gui" to comp_click, which is complicated by there only being one user-provided argument, which we already used for the URL. We now have a per-item structure (which is passed to comp_click) that provides both URL and "gui" pointer, and also makes a few other things easier.
2016-10-17eeshow-viewer: support url#page for PDF when using xpdf or evinceWerner Almesberger1-3/+19
2016-10-17eeshow-viewer: delete output file if wget failsWerner Almesberger1-1/+1
2016-10-17gui/comp.c (get_bbox): filter by unit (for multi-unit parts)Werner Almesberger1-1/+4
2016-10-16eeshow-viewer: caching wrapper for document viewersWerner Almesberger2-1/+68
2016-10-15TODO: mark documentation viewing as WIPWerner Almesberger1-1/+1
The basics are present, but we still need tools to generate the database. Also, the database itself should be versioned.
2016-10-15main/eeshow.c, gui/comp.c: -d file.doc_db load doc db; comp pop shows entriesWerner Almesberger2-2/+23
2016-10-15db/doc.c: documentation reference databaseWerner Almesberger3-0/+175
The format is intended mainly for machine-generation.
2016-10-15gui/comp.c (get_bbox): apply transformation matrixWerner Almesberger1-6/+16