Jeff Young
77680eba30
Naming conventions.
4 years ago
Jeff Young
c51b1dad72
Generalize infobar MESSAGE_TYPE handling and use for DRC errors.
Fixes https://gitlab.com/kicad/code/kicad/issues/8782
4 years ago
Wayne Stambaugh
cf00319c85
More NULL expunging.
4 years ago
Jeff Young
6810912f09
Refuse to load schematics from the future.
Also fixes a bug where an empty window would get left when loading
a file from the KiCad manager window errored out.
Also fixes a bug where we were getting the wrong exception because
we were rethrowing the type-casted one (rather than just calling
throw).
Fixes https://gitlab.com/kicad/code/kicad/issues/8604
4 years ago
Jeff Young
4aa8318dc2
More error message regularization.
4 years ago
Jeff Young
4c5df22eb0
Don't show busy cursor when dialogs (including progress) are in use.
Also removes a stale comment.
Also moves the progress reporters earlier to lessen need for busy cursor.
Also cleans up some error strings and makes other more easily translatable.
4 years ago
Jeff Young
744dadd412
Naming conventions and formatting.
4 years ago
Jeff Young
5fa5a73c6d
File open/import progress dialogs.
Fixes https://gitlab.com/kicad/code/kicad/issues/6864
Fixes https://gitlab.com/kicad/code/kicad/issues/2166
4 years ago
Jeff Young
89718dd3ba
Naming conventions.
4 years ago
Jeff Young
3072422538
Allow caller to specify which library table to add library to.
Fixes https://gitlab.com/kicad/code/kicad/issues/8013
4 years ago
Jeff Young
1722bc03b0
Consistent terminology and punctuation.
4 years ago
Marek Roszko
d946d6e68f
Cleanup some pgm_base.h includes
4 years ago
Jeff Young
2aaec31832
Don't put up "old version" warning for gerbview-generated PCBs.
Fixes https://gitlab.com/kicad/code/kicad/issues/8574
4 years ago
Johannes Maibaum
022dd6072c
Add utility method to resolve symlinks
The same logic block to resolve possible symlinks exists in 5 different
places now. This change moves this duplicated code to a static member
function of WX_FILENAME instead.
4 years ago
Johannes Maibaum
542c02046b
Write through symlinks for schematics and PCBs
4 years ago
Marek Roszko
10e60acf34
Clean up including of board_design_settings.h
4 years ago
Marek Roszko
7faee5eda5
Stop salt the eart with wxhtml.h
4 years ago
Seth Hillbrand
63cc7d16b4
Repair board on open
We need to ensure that boards do not have duplicated KIIDs, so we repair
the duplicates when opening an existing file. This does not change the
file on disk until saved
4 years ago
Seth Hillbrand
752ae4d519
Rename modification flag routines
Differentiates better between the EDA_ITEM IsModified(), referring to
items themselves changing and the EDA_SCREEN IsContentModified(),
referring to whether we have made any unsaved changes.
4 years ago
Seth Hillbrand
b1dcf74042
Use standard "Untitled" name for files without names
Also translates to provide useful information regardless of language
4 years ago
Seth Hillbrand
d7f219e98f
Unify IsSave and IsModify
The flags and calls were used identically, leading to potential
confusion/bugs. Testing for modification should go through
IsContentModified()
4 years ago
jean-pierre charras
60dbda9dd2
Pcbnew: try to fix an issue about frame title.
for Pcbnew, this issue (see bug 8404) is only seen on OSX.
So I am blindly trying to add to Pcbnew a fix made for Eeschema.
4 years ago
jean-pierre charras
0427bda768
Remove useless wx/wx.h include, that create sometimes compil warnings on msys.
wx/wx.h includes all wxWidgets .h files, and sometimes creates collision
names in #define between kicad and windows headers
Moreover, blindly including a lot of useless files is compil time consuming
5 years ago
Marek Roszko
18ff8ea4a0
Try to catch memory allocation errors in pcbnew and eeschema
5 years ago
Ian McInerney
ecd9bf696e
Be consistent about using nullptr instead of 0
0 can be too easily overloaded into an int, so ensure we use nullptr
when we mean pointers.
5 years ago
Jon Evans
e7d3bf29aa
Don't save project for legacy board without explicit action
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7368
5 years ago
Jon Evans
64c8befa01
Fix copy/paste error
5 years ago
Jon Evans
928d336bee
Only try to copy design rules file if it exists
5 years ago
Jeff Young
311bb9c36e
Save rules file when saving project.
Fixes https://gitlab.com/kicad/code/kicad/issues/8143
5 years ago
Jeff Young
f7cc6d1e1e
Fix save as and save copy as for project files.
5 years ago
Jeff Young
55d2d0d93e
Fix some bugs in file save as.
The order of operations *appeared* to be a bit out of joint.
We need to create a new project in project mode as well as in standalone.
Fixes https://gitlab.com/kicad/code/kicad/issues/8143
5 years ago
Jeff Young
daaf738c7f
Add save-as files to file history.
Also fixes where lock wasn't getting reset on a Save As.
Fixes https://gitlab.com/kicad/code/kicad/issues/8111
5 years ago
Jeff Young
94470bfa15
Minor cleanup.
5 years ago
Jon Evans
9ce34102af
Make sure projects get created for boards migrated from 5.x
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6886
5 years ago
Jon Evans
c04e19f9ac
Include optimization: move some things from common.h to point-of-use
5 years ago
Jon Evans
521982cbf6
Avoid double-redraw on board load
5 years ago
Jon Evans
63b5d8db43
Pcbnew: use MRU path when opening files in standalone mode
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7734
5 years ago
Jeff Young
91e876ce0d
Make sure the title is updated when file is saved/reverted/etc.
Fixes https://gitlab.com/kicad/code/kicad/issues/7626
5 years ago
Jeff Young
67c7e7c759
Formatting.
5 years ago
Jeff Young
d4e68a985c
Formatting.
5 years ago
Jeff Young
66b33834b5
Always enable save; move dirty bit to asterisk in title bar.
Also unifies PCB Editor and Schematic Editor names with other
locations in the GUI (which were still Pcbnew and Eeschema).
Fixes https://gitlab.com/kicad/code/kicad/issues/7587
Fixes https://gitlab.com/kicad/code/kicad/issues/7594
5 years ago
Seth Hillbrand
dbbe9cdee4
Hide infobar for save when saving
5 years ago
Roberto Fernandez Bautista
f559e94b00
Non-Kicad Project Importers: Fix the creation of project fp libraries
Adds a new function to PLUGIN GetImportedCachedLibraryFootprints() that
loads the library footprints of the board design that was imported
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7449
5 years ago
Jon Evans
3ac5fd6342
Get rid of wx popups when opening a read-only project
5 years ago
Marek Roszko
e6dd95e83a
Create a default user projects folder
5 years ago
Wayne Stambaugh
6a39b81647
Fix the last of broken Doxygen comment specifiers.
5 years ago
Jon Evans
1e030655cd
Always create project when doing a Save As on a board with a project
5 years ago
Seth Hillbrand
950db6ff9c
pcbnew: Add Fabmaster import
Allows importing ASCII design output from OrCAD designs
5 years ago
Jeff Young
0bce280424
Make sure design rules get recompiled after netclass changes.
Fixes https://gitlab.com/kicad/code/kicad/issues/7082
5 years ago
Jon Evans
d2d4ffe6d0
Dismiss infobar if it's dismissable on board save
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7071
5 years ago