diff --git a/common/wildcards_and_files_ext.cpp b/common/wildcards_and_files_ext.cpp
index 9b93e77020..68838c5145 100644
--- a/common/wildcards_and_files_ext.cpp
+++ b/common/wildcards_and_files_ext.cpp
@@ -309,6 +309,12 @@ wxString FILEEXT::PADSProjectFilesWildcard()
}
+wxString FILEEXT::GedaProjectFilesWildcard()
+{
+ return _( "gEDA / Lepton EDA project files" ) + AddFileExtListToFilter( { "prj", "sch", "pcb" } );
+}
+
+
wxString FILEEXT::OrCadPcb2NetlistFileWildcard()
{
return _( "OrcadPCB2 netlist files" )
diff --git a/eeschema/CMakeLists.txt b/eeschema/CMakeLists.txt
index 5df0a55d91..9af78d1ec0 100644
--- a/eeschema/CMakeLists.txt
+++ b/eeschema/CMakeLists.txt
@@ -64,6 +64,9 @@ set( EESCHEMA_SCH_IO
# Database IO plugin
sch_io/database/sch_io_database.cpp
+ # gEDA IO plugin
+ sch_io/geda/sch_io_geda.cpp
+
# Eagle IO plugin
sch_io/eagle/sch_io_eagle.cpp
diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp
index dfbc15da49..c22dc11332 100644
--- a/eeschema/files-io.cpp
+++ b/eeschema/files-io.cpp
@@ -1470,6 +1470,7 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType,
case SCH_IO_MGR::SCH_EASYEDA:
case SCH_IO_MGR::SCH_EASYEDAPRO:
case SCH_IO_MGR::SCH_PADS:
+ case SCH_IO_MGR::SCH_GEDA:
{
// We insist on caller sending us an absolute path, if it does not, we say it's a bug.
// Unless we are passing the files in aproperties, in which case aFileName can be empty.
diff --git a/eeschema/sch_io/geda/sch_io_geda.cpp b/eeschema/sch_io/geda/sch_io_geda.cpp
new file mode 100644
index 0000000000..0d57d9a353
--- /dev/null
+++ b/eeschema/sch_io/geda/sch_io_geda.cpp
@@ -0,0 +1,4880 @@
+/*
+ * This program source code file is part of KiCad, a free EDA CAD application.
+ *
+ * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program. If not, see .
+ *
+ * This file contains embedded symbol definitions and file format knowledge
+ * derived from the gEDA and Lepton EDA projects:
+ *
+ * gEDA/gaf - Copyright (C) 1998-2010 Ales Hvezda
+ * Copyright (C) 1998-2016 gEDA Contributors
+ * Lepton EDA - Copyright (C) 2017-2024 Lepton EDA Contributors
+ *
+ * Both projects are licensed under the GNU General Public License v2 or later.
+ * See https://github.com/lepton-eda/lepton-eda and
+ * https://github.com/rlutz/geda-gaf
+ */
+
+#include
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include