diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..2fb6498 --- /dev/null +++ b/__init__.py @@ -0,0 +1,3 @@ +def classFactory(iface): + from .main import lnoSachsenBasis + return lnoSachsenBasis(iface) diff --git a/main.py b/main.py new file mode 100644 index 0000000..ccc4c2d --- /dev/null +++ b/main.py @@ -0,0 +1,22 @@ +import os + +class lnoSachsenBasis: + """ + Plugin-Klasse für Basisfunktionen. Stellt Funktionen und Klassen für andere Plugins bereit. + """ + + def __init__(self, iface): + self.iface = iface + self.plugin_dir = os.path.dirname(__file__) + + def initGui(self): + """ + Keine GUI-Integration nötig. + """ + pass + + def unload(self): + """ + Keine GUI-Elemente zu entfernen. + """ + pass \ No newline at end of file diff --git a/metadata.txt b/metadata.txt new file mode 100644 index 0000000..301ffac --- /dev/null +++ b/metadata.txt @@ -0,0 +1,21 @@ +[general] +name=LNO Sachsen | Basisfunktionen +qgisMinimumVersion=3.0 +description=Dieses Plugin ist ein Test +version=25.10.2 +author=Michael Otto +email=michael.otto@landkreis-mittelsachsen.de + +about=Provide a brief description of the plugin and its purpose. + +hasProcessingProvider=no +tags=python + +category=Plugins +icon=icon.png +experimental=True + +deprecated=False + +server=False + diff --git a/ui/__init__.py b/ui/__init__.py new file mode 100644 index 0000000..59ff36b --- /dev/null +++ b/ui/__init__.py @@ -0,0 +1 @@ +from .tab_projekt import TabProjektWidget diff --git a/ui/tab_projekt.py b/ui/tab_projekt.py new file mode 100644 index 0000000..fa9ba26 --- /dev/null +++ b/ui/tab_projekt.py @@ -0,0 +1,20 @@ +# tab_info.py +from qgis.PyQt import uic +from qgis.PyQt.QtWidgets import QWidget +import os + +FORM_CLASS, _ = uic.loadUiType(os.path.join( + os.path.dirname(__file__), 'tab_projekt.ui')) + +class TabProjektWidget(QWidget, FORM_CLASS): + def __init__(self, parent=None): + super().__init__(parent) + self.setupUi(self) + + # Zugriff auf den Button + self.btn_save.setText("Sichern") # Text ändern + self.btn_save.setEnabled(True) # Aktivieren + self.btn_save.clicked.connect(self.speichern) # Klick-Event verbinden + + def speichern(self): + print("Speichern wurde geklickt!") \ No newline at end of file diff --git a/ui/tab_projekt.ui b/ui/tab_projekt.ui new file mode 100644 index 0000000..8f954e6 --- /dev/null +++ b/ui/tab_projekt.ui @@ -0,0 +1,264 @@ + + + Form + + + + 0 + 0 + 604 + 939 + + + + + 60 + 0 + + + + Form + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + 50 + false + + + + Benutzerspezifische Festlegungen___ + + + + + + + + + + + 100 + 0 + + + + Amt + + + + + + + + + + + + + + + 100 + 0 + + + + Behörde + + + + + + + + + + + + + + + 100 + 0 + + + + Landkreis + + + + + + + + + + + + + + + 100 + 0 + + + + Sachgebiet + + + + + + + + + + + + + + + + + Projektspezifische Festlegungen + + + + + + + + + + + 100 + 0 + + + + Bezeichnung + + + + + + + + + + + + + + + 100 + 0 + + + + Verfahrensnummer + + + + + + + + + + + + + + + 100 + 0 + + + + Gemeinde(n) + + + + + + + + + + + + + + + 100 + 0 + + + + Landkreis(e) + + + + + + + + + + + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Speichern + + + + + + + + + + + +