path: root/gui
AgeCommit message (Collapse)AuthorFilesLines
2016-09-04gui/history.c (hover_history): prevent "migration" at top and bottomWerner Almesberger1-1/+3
Reported by Joerg.
2016-09-04gui/gui.c (get_history): sch_name should be just "name" for it can be .pro, tooWerner Almesberger1-3/+3
2016-09-03gui/timer.c: forgot to #include "misc/util.h" (for alloc_printf)Werner Almesberger1-0/+1
2016-09-01gui/sheet.c (hover_sheet): show file name in sheet detailsWerner Almesberger1-2/+4
2016-08-30misc/util.h (alloc_printf): error-checking vasprintf wrapper; use itWerner Almesberger3-11/+7
2016-08-30gfx/cro.c (cro_img): add alpha mode; get rid of paint_yellowWerner Almesberger1-33/+3
This didn't work before because we didn't use CAIRO_OPERATOR_SOURCE.
2016-08-30gui/render.c (render_delta): we had old/new drawing order reversedWerner Almesberger1-5/+5
This resulted in red being drawn over green, instead of the other way around.
2016-08-30gui/render.c (on_draw_event): remove "if" left over from older versionWerner Almesberger1-1/+0
Fortunately it didn't break anything important ...
2016-08-30kicad/delta.c (sheet_eq): make recursing optional; don't recurse in indexWerner Almesberger3-3/+3
In the index, we don't want to have pages marked because there's a page underneath that has changed. After all, that other page is being shown in the index as well. However, in all other cases we still want to recurse.
2016-08-29new option "-E command" to execute commands when the GUI is readyWerner Almesberger2-2/+22
This is mainly intended for taking screenshots, e.g., with xdotool and xwd.
2016-08-29gui/history.c: when skipping, only draw top/bottom extensions at edgesWerner Almesberger1-11/+26
2016-08-29gui/history.c: draw skipped commits overlayed and in grey (WIP)Werner Almesberger1-14/+23
We still need to control the vertical bits, to prevent them from sticking out.
2016-08-29gui/history.c: draw threads of the revision historyWerner Almesberger2-2/+103
2016-08-29gui/over.c (over_iterate_geometry): iterate overlays and pass geometryWerner Almesberger2-0/+26
This way, one can draw things in relation to overlays. E.g., the threads in the revision history.
2016-08-29gui/history.c (history_draw_event): dim the sheet (like in index mode)Werner Almesberger1-4/+4
2016-08-29gui/render.c (on_draw_event): move history drawing to history_draw_eventWerner Almesberger3-9/+30
2016-08-29gui/common.h: don't forget to #include <cairo/cairo.h>Werner Almesberger1-0/+1
2016-08-28gui/history.c: add more section commentsWerner Almesberger1-0/+6
2016-08-28file/git-hist.c (hist_iterate): pass "next" pointer as wellWerner Almesberger1-3/+5
This way, the callback don't need to search the list to figure it out on its own.
2016-08-28gui/history.c: add scrolling with the scroll wheelWerner Almesberger1-0/+16
2016-08-28gui/gui.c: clarify that "sheet_eq" does more than compare a single sheetWerner Almesberger1-0/+5
Did fool myself there ...
2016-08-28file/git-hist.c, gui/: support multiple heads; update GUI accordinglyWerner Almesberger2-5/+3
While we try to iterate HEAD first, this won't result in HEAD coming out on top if there is another branch that is ahead of HEAD. While we could try some heuristics to avoid this, it'll be better to just sort the whole list first by (partial) git history order and then by date. That way, the result will never be too far from what a human user will expect to see.
2016-08-28gui/history.c (skip_history): don't skip entries that are heads of branchesWerner Almesberger1-2/+5
Also simplified the function a little.
2016-08-27gui/history.c (hover_history): use vcs_git_summary_for_pangoWerner Almesberger1-7/+5
... instead of vcs_git_summary.
2016-08-27file/git-hist.h (struct hist, struct history): prepend vcs_Werner Almesberger2-4/+4
2016-08-27file/git-hist.c: introduce history descriptor to API, removing global "history"Werner Almesberger3-8/+11
This will be used for more things in the future.
2016-08-26gui/sheet.c (sheet_key): N/D/O need to do_revision_overlays to update overlaysWerner Almesberger1-0/+3
Else, the frame remains in its prior state, not indicating the mode change.
2016-08-26gui/sheet.c (sheet_key): toggle diff/delta with Shift+D; document itWerner Almesberger1-5/+5
This frees "A" for other uses.
2016-08-25gui/index.c (thumbnail_pos): since we have "alloc", we don't need "gui"Werner Almesberger1-4/+3
2016-08-25gui/gui.c (get_sheets): use "sch" for "struct sheet *", not "sheet"Werner Almesberger1-3/+3
We use the latter for "struct gui_sheet *"
2016-08-25gui/: "struct gui_ctx" is now "struct gui"; also s/gui_ctx/gui/ in aoi_ctxWerner Almesberger8-102/+102
2016-08-25gui/: "struct gui_ctx *ctx" is now "struct gui_ctx *gui"Werner Almesberger9-497/+497
2016-08-25gui/index.c, help.c: more GDK_KEY_HelpWerner Almesberger2-0/+2
2016-08-25gui/sheet.c (sheet_key): keypad +, =, *, -; GDK_KEY_HelpWerner Almesberger1-0/+5
2016-08-24GUI performance timer, toggle with "T"Werner Almesberger5-0/+121
Shows milliseconds between last event and completion of screen update.
2016-08-24separate argument list from gfx_init; related API changesWerner Almesberger2-7/+3
2016-08-24remove global gfx state (pass context as argument)Werner Almesberger4-44/+46
2016-08-24gui/: cover entire thumbnail in yellow when highlighting in diff modeWerner Almesberger2-10/+48
Alas, the "clean" solution with alpha doesn't work for some reason. So we use some more pixel editing ...
2016-08-24gui/index.c (thumb_set_style): highlight changed sheets in diff modeWerner Almesberger1-0/+10
2016-08-24gui/index.c: show sheet name when hoveringWerner Almesberger2-6/+51
2016-08-24gui/over.c (overlay_draw_text): clipping shaved off rightmost pixelsWerner Almesberger1-1/+1
2016-08-24gui/index.c (index_resize): politely bow out if asked for impossible sizeWerner Almesberger1-3/+7
2016-08-24gui/index.c (best_ratio): fix algorithm; use size, not aspect; add marginWerner Almesberger1-12/+16
2016-08-24gui/index.c: add hoveringWerner Almesberger1-21/+44
2016-08-24gui/: move resizing back to gui.c; support resizing indexWerner Almesberger4-18/+32
2016-08-24gui/: experimental sheet index (WIP)Werner Almesberger8-23/+342
We also change the way the sheet overlays work: now clicking on the subsheet (which, in the case of the bottom-most sheet did nothing) goes back to the parent and clicking on the root opens the index.
2016-08-23gui/gui.c (get_sheets): also initialize fields "over" and "aois"Werner Almesberger1-0/+3
How did this not lead to crashes until now ?
2016-08-23support showing pin types also in diff mode (hackishly, but works)Werner Almesberger1-1/+2
2016-08-23gui/render.c: support showing pin types in delta modeWerner Almesberger1-0/+12
2016-08-23gui/: do without the "unrender_all" atrocityWerner Almesberger4-24/+12
Benefits: - no horrible memory leak - we don't need to jump to the current page (causing zoom_to_extents) Drawbacks: - only supported in non-diff modes