summaryrefslogtreecommitdiff
path: root/gui/gui.c
AgeCommit message (Collapse)AuthorFilesLines
2016-11-29gui/gui.c (add_hist): check that we have a commit before trying to print itWerner Almesberger1-1/+3
Reported by Alvaro Gamez Machado. Also point out memory leak.
2016-11-28gui/gui.c (add_hist): indicate (if verbose) when we begin processing a revisionWerner Almesberger1-0/+2
2016-11-20gui/gui.c (sheets): move over from index.cWerner Almesberger1-0/+9
2016-11-20gui/gui.c (current_sheet): de-duplicate sheet selection logicWerner Almesberger1-0/+9
2016-11-02Revert "gui/gui.c (run_gui): we no longer need tge gtk-label-select-on-focus ↵Werner Almesberger1-0/+6
hack" This reverts commit 52050667b55c9b8f75a61ecaf39422b5ef6d0bbf. This is needed for GtkLabel (see previous commit).
2016-10-31gui/gui.c (run_gui): we no longer need tge gtk-label-select-on-focus hackWerner Almesberger1-6/+0
... since we now display text with GtkTextView instead of GtkLabel.
2016-10-30gui/: "v" opens a viewer window for commit messages (WIP)Werner Almesberger1-0/+1
2016-10-30gui/help.c (help_content), gui.c: make the help text copiableWerner Almesberger1-0/+6
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-15gui/comp.c: add pop-up for components, with access to data sheet (WIP)Werner Almesberger1-0/+4
2016-09-24file/git-hist.c (vcs_git_history): limit depth of history retrievalWerner Almesberger1-2/+2
We used to retrieve the entire history, but if we afterwards only use the topmost N entries, we need - in the worse case - only the first N entries from each branch. We could try to be even more efficient, but that would require doing part of the sorting already during retrieval, which would make things messy.
2016-09-10gui/gui.c (get_history): calculate hist_size correctlyWerner Almesberger1-4/+5
This value is only used for the progress bar, so nothing bad happens if we use too high a value (with -N 10000 or such), but it's still better to do this properly.
2016-09-08gui/gui.c (parse_files): don't reject revision just because of missing librariesWerner Almesberger1-3/+4
2016-09-08main/eeplot.c, gui/gui.c: use pl_parse_searchWerner Almesberger1-11/+5
This also relaxes the error handling of eeshow: it no longer rejects a revision if it is unable to find the page layout file. the page layout file no longer causes
2016-09-07fix numerous whitespace atrocitiesWerner Almesberger1-6/+6
- trailing spaces - trailing tabs - space before tab - more than four spaces ... - at the beginning of a line - after tab - in general (okay in many cases, but not all) - caught a stray blank line as well
2016-09-07gfx/diff.c, main/eeplot.c, gui/gui.c: search library pathsWerner Almesberger1-2/+2
2016-09-04gui/gui.c (get_history): sch_name should be just "name" for it can be .pro, tooWerner Almesberger1-3/+3
2016-08-30misc/util.h (alloc_printf): error-checking vasprintf wrapper; use itWerner Almesberger1-3/+2
2016-08-30kicad/delta.c (sheet_eq): make recursing optional; don't recurse in indexWerner Almesberger1-1/+1
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 Almesberger1-1/+20
This is mainly intended for taking screenshots, e.g., with xdotool and xwd.
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/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 Almesberger1-4/+2
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-27file/git-hist.h (struct hist, struct history): prepend vcs_Werner Almesberger1-2/+2
2016-08-27file/git-hist.c: introduce history descriptor to API, removing global "history"Werner Almesberger1-6/+8
This will be used for more things in the future.
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 Almesberger1-13/+13
2016-08-25gui/: "struct gui_ctx *ctx" is now "struct gui_ctx *gui"Werner Almesberger1-54/+54
2016-08-24remove global gfx state (pass context as argument)Werner Almesberger1-1/+1
2016-08-24gui/: move resizing back to gui.c; support resizing indexWerner Almesberger1-0/+16
2016-08-24gui/: experimental sheet index (WIP)Werner Almesberger1-1/+4
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-23gui/: do without the "unrender_all" atrocityWerner Almesberger1-18/+0
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
2016-08-23in GUI mode, E toggles extra information (pin types)Werner Almesberger1-0/+18
2016-08-23misc/diag.h (BUG): more useful diagnostics; replace all "abort" with itWerner Almesberger1-2/+2
2016-08-22eeshow/gui/gui.c: support using project file as leader (instead of top sheet)Werner Almesberger1-9/+36
2016-08-22eeshow/: change file name handling from positional to be extension-drivenWerner Almesberger1-18/+28
This also enables versioning for page layouts. We no longer need the option -P.
2016-08-22eeshow/gui/: change zoom system to use float; reduce step from 2 to 2^(1/3)Werner Almesberger1-1/+1
2016-08-22eeshow/gui/common.h (struct gui_sheet): add back link to historyWerner Almesberger1-2/+3
2016-08-22eeshow/gui/: experimental support for page layout; option -P pl-file.kicad_wksWerner Almesberger1-1/+4
Unlike libraries and schematics, page layouts are not (yet) tracked through revision history.
2016-08-21eeshow/gui/gui.c: forgot to #include icons.h, oopsWerner Almesberger1-0/+1
2016-08-21eeshow/: add icon loader and icons for "delta" and "diff"Werner Almesberger1-0/+1
2016-08-19eeshow/gui/gui.c (gui): show build commit in window titleWerner Almesberger1-1/+6
2016-08-19eeshow/gui/gui.c (add_hist): initialize hist->libs_openWerner Almesberger1-0/+1
This is normally done by parse_files, except when we can't find the schematics file.
2016-08-19eeshow/gui/: in diff_old, use sheet from old_hist for AoIsWerner Almesberger1-5/+18
2016-08-19eeshow/gui/: difference display can now be switched with New/Old/DiffWerner Almesberger1-0/+1
Still need a GUI way to do the same.
2016-08-19eeshow/gui/: highlight glabelsWerner Almesberger1-0/+2
2016-08-18eeshow/gui/: add "underlay" for pop-ups (WIP)Werner Almesberger1-0/+1
We'll use this to construct stacks for glabels.
2016-08-18eeshow/gui/gui.c: move rendering to render.cWerner Almesberger1-125/+1
2016-08-18eeshow/gui/gui.c: better sectioning; trim includesWerner Almesberger1-27/+26
2016-08-18eeshow/gui/gui.c (eeschema_coord): only used in glabel.c, move thereWerner Almesberger1-13/+0