Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions apps/solidcraft-web/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1705,12 +1705,18 @@ mod web {
// browser's files window. A command that reads another kind of file
// (Insert DXF or SVG, an image, a mesh, settings) gets a file dialog
// offering that kind, and runs on the picked file.
pick_open: Some(Box::new(move |exts: &[&str]| match disk::open_route(disk::supported(), exts) {
disk::OpenRoute::Disk => Box::pin(disk::pick_open(&opener)),
disk::OpenRoute::Upload => Box::pin(files::pick_upload(&opener, exts)),
disk::OpenRoute::Panel => {
panel.panel.set(true);
Box::pin(std::future::ready(None))
pick_open: Some(Box::new(move |filters: &[solidcraft_ui_egui::OpenFilter]| {
// The browser offers the files of every group the command names: its
// dialog has one list of types, not a filter per kind of file.
let offered = solidcraft_ui_egui::OpenFilter::every(filters);
let exts: Vec<&str> = offered.iter().map(String::as_str).collect();
match disk::open_route(disk::supported(), &exts) {
disk::OpenRoute::Disk => Box::pin(disk::pick_open(&opener)),
disk::OpenRoute::Upload => Box::pin(files::pick_upload(&opener, &exts)),
disk::OpenRoute::Panel => {
panel.panel.set(true);
Box::pin(std::future::ready(None))
}
}
})),
// A design is saved to a file the user picks, or kept in the browser
Expand Down
19 changes: 13 additions & 6 deletions apps/solidcraft/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ mod window_fit;
mod winit_pointers;

use solidcraft_engine::{Session, io};
use solidcraft_ui_egui::{Services, SolveApp};
use solidcraft_ui_egui::{OpenFilter, Services, SolveApp};

/// Windows: put the restored window back inside the monitor's work area if it is out of reach
/// (a gone monitor, another scale, a taskbar edge). Sizes are in points, the work area in pixels.
Expand Down Expand Up @@ -1168,15 +1168,22 @@ fn services(cc: &eframe::CreationContext<'_>, folder: &DialogFolder) -> Services
#[cfg(target_os = "macos")]
let any_folder = folder.clone();
Services {
pick_open: Some(Box::new(move |first: &[&str]| {
pick_open: Some(Box::new(move |filters: &[OpenFilter]| {
// The chooser that opens may not be the desktop's own (#10159).
#[cfg(target_os = "linux")]
desktop_chooser::note_opening(&chooser_ctx);
// The file type the command reads comes first, so the picker opens on it (#1801).
// The groups the command names come first, so the picker opens on the first of them:
// the file type it reads, named after its extensions, or the kinds of file a person
// picks one of (Insert PCB's boards) (#1801, #26309).
let mut dialog = open_folder.start(DialogKind::Open, open_parent.clone());
if !first.is_empty() {
let label = first.iter().map(|e| e.to_uppercase()).collect::<Vec<_>>().join(", ");
dialog = dialog.add_filter(label, &case_variants(first));
for filter in filters {
let extensions: Vec<&str> = filter.extensions.iter().map(String::as_str).collect();
let label = if filter.label.is_empty() {
filter.extensions.iter().map(|e| e.to_uppercase()).collect::<Vec<_>>().join(", ")
} else {
filter.label.clone()
};
dialog = dialog.add_filter(label, &case_variants(&extensions));
}
// The groups come from the format registry, so a new format joins this dialog by itself.
// Installed importer plugins read more kinds of file: they join "everything" and add
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@
"cmd.file_copy": "نسخ ملف التصميم",
"cmd.file_export": "تصدير",
"cmd.file_gerber_files": "ملفات لوحة الدوائر",
"cmd.file_insert_gerber": "إدراج لوحة دوائر مطبوعة (Gerber)",
"cmd.file_insert_gerber": "إدراج لوحة دوائر مطبوعة",
"cmd.file_insert_mesh": "إدراج شبكة",
"cmd.file_insert_step": "إدراج STEP",
"cmd.file_move": "نقل ملف التصميم",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@
"cmd.file_copy": "Copiar el fitxer de disseny",
"cmd.file_export": "Exportar",
"cmd.file_gerber_files": "Fitxers de PCB",
"cmd.file_insert_gerber": "Inserir PCB (Gerber)",
"cmd.file_insert_gerber": "Inserir PCB",
"cmd.file_insert_mesh": "Inserir una malla",
"cmd.file_insert_step": "Inserir STEP",
"cmd.file_move": "Moure el fitxer de disseny",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@
"cmd.file_copy": "Kopírovat soubor návrhu",
"cmd.file_export": "Exportovat",
"cmd.file_gerber_files": "Soubory DPS",
"cmd.file_insert_gerber": "Vložit DPS (Gerber)",
"cmd.file_insert_gerber": "Vložit DPS",
"cmd.file_insert_mesh": "Vložit síť",
"cmd.file_insert_step": "Vložit STEP",
"cmd.file_move": "Přesunout soubor návrhu",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@
"cmd.file_copy": "Entwurfsdatei kopieren",
"cmd.file_export": "Exportieren",
"cmd.file_gerber_files": "Leiterplattendateien",
"cmd.file_insert_gerber": "Leiterplatte einfügen (Gerber)",
"cmd.file_insert_gerber": "Leiterplatte einfügen",
"cmd.file_insert_mesh": "Netz einfügen",
"cmd.file_insert_step": "STEP einfügen",
"cmd.file_move": "Entwurfsdatei verschieben",
Expand Down
6 changes: 3 additions & 3 deletions assets/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@
"cmd.file_copy": "Copy Design File",
"cmd.file_export": "Export",
"cmd.file_gerber_files": "PCB Files",
"cmd.file_insert_gerber": "Insert PCB (Gerber)",
"cmd.file_insert_gerber": "Insert PCB",
"cmd.file_insert_mesh": "Insert Mesh",
"cmd.file_insert_step": "Insert STEP",
"cmd.file_move": "Move Design File",
Expand Down Expand Up @@ -3046,7 +3046,7 @@
"help.edit.restore_checkpoint": "Goes back to a checkpoint, undo history included. Use it to drop everything done since the checkpoint in one step.",
"help.explode.create": "Creates an exploded view that pushes the parts away from the assembly's center, or by the moves you set. Use it to show how an assembly goes together, for instructions or presentations.",
"help.face.delete": "Removes the selected faces and lets the neighboring faces close the gap, or leaves the gap open as a surface. Use it to take off a rounded edge, a hole or a boss that is in the way.",
"help.file.insert_gerber": "Builds a printed circuit board from its fabrication files: the Gerber board outline and the Excellon drill files become a sketch and a board body of the thickness you set, with every hole and slot cut through. Use it to design an enclosure or a bracket around a real board.",
"help.file.insert_gerber": "Brings a printed circuit board into this design as a component of its own, whichever way you have it. A KiCad board is read with the copper, silkscreen, holes and 3D models you choose and stays linked to its file, so Update Links reads it again when it changes. A board's fabrication files go in as one set: the Gerber outline and the Excellon drills become a sketch and a board body of the thickness you set, with every hole and slot cut through. Use it to design an enclosure or a bracket around a real board.",
"help.file.insert_mesh": "Adds a 3MF, STL, OBJ, PLY or glTF file to the design as mesh bodies in a new component. Use it to place a downloaded or scanned model beside your design as a reference.",
"help.file.insert_step": "Adds a STEP, IGES, FreeCAD or Rhino file to the design as solid bodies in a new component; an assembly's parts become nested components. Use it to bring in models from suppliers or other CAD programs.",
"help.file.save_mesh": "Saves bodies as an STL, 3MF or OBJ mesh, with the smoothness of curved faces you choose. Use it to prepare parts for 3D printing or for programs that read meshes.",
Expand Down Expand Up @@ -8465,7 +8465,7 @@
"ui.insert_drawing.middle": "Middle",
"ui.insert_drawing.place_by": "Place by",
"ui.insert_drawing.resolution": "Resolution",
"ui.insert_pcb.web_zip": "Insert PCB on the web takes the board's files as one zip",
"ui.insert_pcb.web_zip": "Insert PCB on the web takes one file: a KiCad board, or the board's fabrication files as one zip",
"ui.insert_signed": "Inserted {name}; its file is signed by {key} (not checked)",
"ui.insert_signed_unknown": "Inserted {name}; its file is signed (not checked)",
"ui.insert_simplify": "Simplify",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@
"cmd.file_copy": "Copiar archivo de diseño",
"cmd.file_export": "Exportar",
"cmd.file_gerber_files": "Archivos de PCB",
"cmd.file_insert_gerber": "Insertar PCB (Gerber)",
"cmd.file_insert_gerber": "Insertar PCB",
"cmd.file_insert_mesh": "Insertar malla",
"cmd.file_insert_step": "Insertar STEP",
"cmd.file_move": "Mover archivo de diseño",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"cmd.file_copy": "Kopiatu diseinu-fitxategia",
"cmd.file_export": "Esportatu",
"cmd.file_gerber_files": "PCB fitxategiak",
"cmd.file_insert_gerber": "Txertatu PCB (Gerber)",
"cmd.file_insert_gerber": "Txertatu PCB",
"cmd.file_insert_mesh": "Txertatu sarea",
"cmd.file_insert_step": "Txertatu STEP",
"cmd.file_move": "Mugitu diseinu-fitxategia",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1581,7 +1581,7 @@
"cmd.file_copy": "Kopioi mallitiedosto",
"cmd.file_export": "Vie",
"cmd.file_gerber_files": "PCB-tiedostot",
"cmd.file_insert_gerber": "Lisää PCB (Gerber)",
"cmd.file_insert_gerber": "Lisää PCB",
"cmd.file_insert_mesh": "Lisää verkko",
"cmd.file_insert_step": "Lisää STEP",
"cmd.file_move": "Siirrä mallitiedosto",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@
"cmd.file_copy": "Copier le fichier de conception",
"cmd.file_export": "Exporter",
"cmd.file_gerber_files": "Fichiers de circuit imprimé",
"cmd.file_insert_gerber": "Insérer un circuit imprimé (Gerber)",
"cmd.file_insert_gerber": "Insérer un circuit imprimé",
"cmd.file_insert_mesh": "Insérer un maillage",
"cmd.file_insert_step": "Insérer un STEP",
"cmd.file_move": "Déplacer le fichier de conception",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@
"cmd.file_copy": "העתקת קובץ תכנון",
"cmd.file_export": "ייצוא",
"cmd.file_gerber_files": "קובצי מעגל מודפס",
"cmd.file_insert_gerber": "הוספת מעגל מודפס (Gerber)",
"cmd.file_insert_gerber": "הוספת מעגל מודפס",
"cmd.file_insert_mesh": "הוספת רשת משולשים",
"cmd.file_insert_step": "הוספת STEP",
"cmd.file_move": "העברת קובץ תכנון",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@
"cmd.file_copy": "設計ファイルをコピー",
"cmd.file_export": "エクスポート",
"cmd.file_gerber_files": "基板ファイル",
"cmd.file_insert_gerber": "基板を挿入 (Gerber)",
"cmd.file_insert_gerber": "基板を挿入",
"cmd.file_insert_mesh": "メッシュを挿入",
"cmd.file_insert_step": "STEP を挿入",
"cmd.file_move": "設計ファイルを移動",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/ka.json
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@
"cmd.file_copy": "პროექტის ფაილის კოპირება",
"cmd.file_export": "ექსპორტირება",
"cmd.file_gerber_files": "ბეჭდური დაფის ფაილები",
"cmd.file_insert_gerber": "ბეჭდური დაფის ჩასმა (Gerber)",
"cmd.file_insert_gerber": "ბეჭდური დაფის ჩასმა",
"cmd.file_insert_mesh": "პოლიგონური ბადის ჩასმა",
"cmd.file_insert_step": "STEP-ის ჩასმა",
"cmd.file_move": "პროექტის ფაილის გადატანა",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@
"cmd.file_copy": "디자인 파일 복사",
"cmd.file_export": "내보내기",
"cmd.file_gerber_files": "PCB 파일",
"cmd.file_insert_gerber": "PCB 삽입 (Gerber)",
"cmd.file_insert_gerber": "PCB 삽입",
"cmd.file_insert_mesh": "메시 삽입",
"cmd.file_insert_step": "STEP 삽입",
"cmd.file_move": "디자인 파일 이동",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/lv.json
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@
"cmd.file_copy": "Kopēt modeļa failu",
"cmd.file_export": "Eksportēt",
"cmd.file_gerber_files": "Iespiedplates faili",
"cmd.file_insert_gerber": "Ievietot iespiedplati (Gerber)",
"cmd.file_insert_gerber": "Ievietot iespiedplati",
"cmd.file_insert_mesh": "Ievietot sietu",
"cmd.file_insert_step": "Ievietot STEP",
"cmd.file_move": "Pārvietot modeļa failu",
Expand Down
58 changes: 58 additions & 0 deletions assets/locales/pending/insert-pcb-any-board.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"en": {
"ui.insert_pcb.filter_any": "All supported PCB files",
"ui.insert_pcb.filter_fabrication": "Gerber fabrication files",
"ui.insert_pcb.filter_kicad": "KiCad board",
"ui.insert_pcb.web_project": "Insert PCB on the web takes the board's own file (.kicad_pcb): a project file stands for a board beside it, which the browser cannot read",
"ui.insert_pcb.design_gone": "The design that asked for this board is no longer shown: insert the board again"
},
"de": {
"ui.insert_pcb.filter_any": "Alle unterstützten PCB-Dateien",
"ui.insert_pcb.filter_fabrication": "Gerber-Fertigungsdateien",
"ui.insert_pcb.filter_kicad": "KiCad-Platine",
"ui.insert_pcb.web_project": "Insert PCB im Browser nimmt die Platine selbst (.kicad_pcb): eine Projektdatei steht für die Platine daneben, die der Browser nicht lesen kann",
"ui.insert_pcb.design_gone": "Die Platine wurde für ein Design angefordert, das nicht mehr angezeigt wird: fügen Sie sie erneut ein"
},
"ar": {
"ui.insert_pcb.filter_any": "كل ملفات PCB المدعومة",
"ui.insert_pcb.filter_fabrication": "ملفات التصنيع بصيغة Gerber",
"ui.insert_pcb.filter_kicad": "لوحة KiCad",
"ui.insert_pcb.web_project": "لا يقبل زر Insert PCB في المتصفح إلا ملف اللوحة نفسه (.kicad_pcb): ملف المشروع يمثل لوحة بجانبه لا يستطيع المتصفح قراءتها",
"ui.insert_pcb.design_gone": "لم يعد التصميم الذي طلب هذه اللوحة معروضا: أدرجها من جديد"
},
"he": {
"ui.insert_pcb.filter_any": "כל קובצי ה-PCB הנתמכים",
"ui.insert_pcb.filter_fabrication": "קובצי ייצור Gerber",
"ui.insert_pcb.filter_kicad": "לוח KiCad",
"ui.insert_pcb.web_project": "Insert PCB בדפדפן מקבל את קובץ הלוח עצמו (.kicad_pcb): קובץ פרויקט מייצג לוח שלצידו, והדפדפן אינו יכול לקרוא אותו",
"ui.insert_pcb.design_gone": "התכן שביקש את הלוח הזה אינו מוצג עוד: הוסף אותו שוב"
},
"ja": {
"ui.insert_pcb.filter_any": "対応するすべての PCB ファイル",
"ui.insert_pcb.filter_fabrication": "Gerber 製作ファイル",
"ui.insert_pcb.filter_kicad": "KiCad 基板",
"ui.insert_pcb.web_project": "ブラウザーの Insert PCB は基板そのもののファイル(.kicad_pcb)を取ります。プロジェクトファイルは隣の基板を表すもので、ブラウザーはそれを読めません",
"ui.insert_pcb.design_gone": "この基板を求めた設計は表示されていません。もう一度挿入してください"
},
"vi": {
"ui.insert_pcb.filter_any": "Mọi tệp PCB được hỗ trợ",
"ui.insert_pcb.filter_fabrication": "Tệp chế tạo Gerber",
"ui.insert_pcb.filter_kicad": "Bo mạch KiCad",
"ui.insert_pcb.web_project": "Insert PCB trên trình duyệt nhận chính tệp bo mạch (.kicad_pcb): tệp dự án đại diện cho bo mạch bên cạnh, mà trình duyệt không đọc được",
"ui.insert_pcb.design_gone": "Thiết kế đã yêu cầu bo mạch này không còn được hiển thị: hãy chèn lại"
},
"zh": {
"ui.insert_pcb.filter_any": "所有受支持的 PCB 文件",
"ui.insert_pcb.filter_fabrication": "Gerber 制造文件",
"ui.insert_pcb.filter_kicad": "KiCad 电路板",
"ui.insert_pcb.web_project": "浏览器中的 Insert PCB 只取电路板本身的文件(.kicad_pcb):项目文件代表它旁边的电路板,浏览器无法读取",
"ui.insert_pcb.design_gone": "请求此电路板的设计已不再显示:请重新插入"
},
"ko": {
"ui.insert_pcb.filter_any": "지원되는 모든 PCB 파일",
"ui.insert_pcb.filter_fabrication": "Gerber 제작 파일",
"ui.insert_pcb.filter_kicad": "KiCad 기판",
"ui.insert_pcb.web_project": "웹에서 Insert PCB는 기판 파일 자체(.kicad_pcb)를 받습니다. 프로젝트 파일은 옆에 있는 기판을 가리키며, 브라우저는 그것을 읽을 수 없습니다",
"ui.insert_pcb.design_gone": "이 기판을 요청한 설계가 더 이상 표시되지 않습니다. 다시 삽입하세요"
}
}
2 changes: 1 addition & 1 deletion assets/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@
"cmd.file_copy": "Kopiuj plik projektu",
"cmd.file_export": "Eksportuj",
"cmd.file_gerber_files": "Pliki PCB",
"cmd.file_insert_gerber": "Wstaw płytkę PCB (Gerber)",
"cmd.file_insert_gerber": "Wstaw płytkę PCB",
"cmd.file_insert_mesh": "Wstaw siatkę",
"cmd.file_insert_step": "Wstaw STEP",
"cmd.file_move": "Przenieś plik projektu",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@
"cmd.file_copy": "Copiar arquivo de projeto",
"cmd.file_export": "Exportar",
"cmd.file_gerber_files": "Arquivos PCB",
"cmd.file_insert_gerber": "Inserir PCB (Gerber)",
"cmd.file_insert_gerber": "Inserir PCB",
"cmd.file_insert_mesh": "Inserir malha",
"cmd.file_insert_step": "Inserir STEP",
"cmd.file_move": "Mover arquivo de projeto",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@
"cmd.file_copy": "Копировать файл дизайна",
"cmd.file_export": "Экспорт",
"cmd.file_gerber_files": "Файлы печатных плат",
"cmd.file_insert_gerber": "Вставить печатную плату (Gerber)",
"cmd.file_insert_gerber": "Вставить печатную плату",
"cmd.file_insert_mesh": "Вставить меш",
"cmd.file_insert_step": "Вставить STEP",
"cmd.file_move": "Переместить файл дизайна",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/sr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@
"cmd.file_copy": "Копирај датотеку дизајна",
"cmd.file_export": "Извоз",
"cmd.file_gerber_files": "PCB датотеке",
"cmd.file_insert_gerber": "Уметни PCB (Gerber)",
"cmd.file_insert_gerber": "Уметни PCB",
"cmd.file_insert_mesh": "Уметни мрежу",
"cmd.file_insert_step": "Уметни STEP",
"cmd.file_move": "Премести датотеку дизајна",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@
"cmd.file_copy": "Tasarım Dosyasını Kopyala",
"cmd.file_export": "Dışa aktar",
"cmd.file_gerber_files": "PCB Dosyaları",
"cmd.file_insert_gerber": "PCB Ekle (Gerber)",
"cmd.file_insert_gerber": "PCB Ekle",
"cmd.file_insert_mesh": "Ağ ekle",
"cmd.file_insert_step": "STEP ekle",
"cmd.file_move": "Tasarım Dosyasını Taşı",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@
"cmd.file_copy": "Копіювати файл проєкту",
"cmd.file_export": "Експорт",
"cmd.file_gerber_files": "Файли плати",
"cmd.file_insert_gerber": "Вставити плату (Gerber)",
"cmd.file_insert_gerber": "Вставити плату",
"cmd.file_insert_mesh": "Вставити сітку",
"cmd.file_insert_step": "Вставити STEP",
"cmd.file_move": "Перемістити файл проєкту",
Expand Down
2 changes: 1 addition & 1 deletion assets/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@
"cmd.file_copy": "Sao chép tệp thiết kế",
"cmd.file_export": "Xuất tệp",
"cmd.file_gerber_files": "Tệp mạch in",
"cmd.file_insert_gerber": "Chèn mạch in (Gerber)",
"cmd.file_insert_gerber": "Chèn mạch in",
"cmd.file_insert_mesh": "Chèn lưới đa giác (Mesh)",
"cmd.file_insert_step": "Chèn tệp STEP",
"cmd.file_move": "Di chuyển tệp thiết kế",
Expand Down
Loading