7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-12 21:49:36 +00:00
kicad/common
John Beard 527faddbfd GAL: provide constants for LoD HIDE/SHOW and a scale helper
Saves a mishmash of local HIDE/SHOW defs along with various literals.

Also provide a function that computes the scale at which a given
IU size becomes (notionally) a certain size on screen. While this
is a simple division, it's a bit opaque in terms of meaning.

Also it means the divide by zero case can be more universally
defended-against, which has traditionally been a bug opportunity.
2025-01-02 22:59:31 +08:00
..
api Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
database Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
dialog_about Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
dialogs Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
drawing_sheet Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
font Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
gal Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
git Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
http_lib Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
import_gfx Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
io Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
jobs Naming consistency for jobs. 2025-01-02 13:20:31 +00:00
kicad_curl Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
libeval Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
libeval_compiler Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
plotters Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
preview_items Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
project Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
properties Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
settings Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
swig Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
tool Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
view GAL: provide constants for LoD HIDE/SHOW and a scale helper 2025-01-02 22:59:31 +08:00
widgets Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
advanced_config.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
array_axis.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
array_options.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
asset_archive.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
background_jobs_monitor.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
base_screen.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
bin_mod.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
bitmap_base.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
bitmap_info.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
bitmap_store.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
bitmap.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
board_printout.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
build_version.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
callback_gal.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
cli_progress_reporter.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
clipboard.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
CMakeLists.txt Add initial but not yet working correctly copy files job 2025-01-01 23:57:46 -05:00
commit.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
common.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
config_params.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
confirm.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
design_block_info_impl.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
design_block_info_impl.h Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
design_block_info.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
design_block_info.h Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
design_block_io.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
design_block_io.h Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
design_block_lib_table.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
design_block.h Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
dialog_shim.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
dpi_scaling_common.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
dpi_scaling.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
draw_panel_gal.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
drc_rules.keywords Added DRC test for minimum/maximum segment length 2024-10-18 19:48:08 +00:00
dsnlexer.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
eda_base_frame.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
eda_dde.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
eda_doc.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
eda_draw_frame.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
eda_item.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
eda_pattern_match.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
eda_shape.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
eda_text.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
eda_tools.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
eda_units.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
embedded_files.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
embedded_files.keywords Add ability to embed files in various elements 2024-07-15 16:06:55 -07:00
env_paths.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
env_vars.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
exceptions.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
executable_names.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
file_history.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
filename_resolver.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
filter_reader.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
footprint_filter.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
footprint_info.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
fp_lib_table.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
gal_display_options_common.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
gbr_metadata.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
gestfich.cpp Add initial but not yet working correctly copy files job 2025-01-01 23:57:46 -05:00
gr_basic.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
gr_text.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
grid_tricks.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
hash_eda.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
hotkey_store.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
hotkeys_basic.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
increment.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
json_conversions.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
kidialog.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
kiface_base.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
kiid.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
kiway_express.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
kiway_holder.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
kiway_player.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
kiway.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
launch_ext.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
layer_id.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
lib_id.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
lib_table_base.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
lib_table_grid_tricks.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
lib_table.keywords new feature: Schematic Design Blocks 2024-09-05 08:35:49 -04:00
lib_tree_model_adapter.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
lib_tree_model.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
locale_io.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
lseq.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
lset.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
marker_base.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
markup_parser.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
netclass.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
netlist.keywords Implement Component Classes 2024-10-01 22:36:18 +01:00
newstroke_font.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
notifications_manager.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
origin_transforms.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
origin_viewitem.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
page_info.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
paths.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
pcb_plot_params.keywords ADDED: plotting options for DNP footprints 2024-08-18 10:02:14 -06:00
pcb.keywords Firebomb teardrop curve points. 2024-12-28 22:38:51 +00:00
pgm_base.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
printout.cpp Implement a new settings framework across all of KiCad 2020-02-19 23:44:56 -05:00
project.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
ptree.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
rc_item.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
refdes_utils.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
reference_image.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
render_settings.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
reporter.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
richio.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
scintilla_tricks.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
search_stack.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
searchhelpfilefullpath.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
single_top.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
status_popup.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
streamwrapper.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
string_utils.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
stroke_params.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
stroke_params.keywords Shapes for schematic. 2021-12-23 20:36:07 +00:00
systemdirsappend.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
template_fieldnames.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
template_fieldnames.keywords Variable substitution framework. 2020-03-30 14:15:59 +01:00
textentry_tricks.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
title_block.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
trace_helpers.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
ui_events.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
undo_redo_container.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
validators.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
wildcards_and_files_ext.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
wx_filename.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00
xnode.cpp Revise Copyright statement to align with TLF 2025-01-01 14:12:04 -08:00