First commit

This commit is contained in:
Michael Otto
2025-10-09 11:35:45 +02:00
parent 6ffc387320
commit 0402ccb86b
17 changed files with 484 additions and 0 deletions

1
ui/__init__.py Normal file
View File

@@ -0,0 +1 @@
from .tab_plan41 import TabPlan41Widget

View File

@@ -0,0 +1,31 @@
from qgis.PyQt.QtWidgets import QDockWidget, QTabWidget, QVBoxLayout, QWidget
from qgis.PyQt.QtCore import pyqtSignal
from sn_basis.ui.tab_projekt import TabProjektWidget
from ..ui import TabPlan41Widget
class Plan41DockWidget(QDockWidget):
closingPlugin = pyqtSignal()
def __init__(self, parent=None):
super().__init__(parent)
self.setWindowTitle("LNO Sachsen | Plan 41")
container = QWidget()
layout = QVBoxLayout(container)
self.tabWidget = QTabWidget()
layout.addWidget(self.tabWidget)
self.setWidget(container)
# Tabs hinzufügen
self.tabWidget.addTab(TabPlan41Widget(self), "Plan 41")
self.tabWidget.addTab(TabProjektWidget(self), "Projekt")
def closeEvent(self, event):
self.closingPlugin.emit()
event.accept()

12
ui/tab_plan41.py Normal file
View File

@@ -0,0 +1,12 @@
# 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_plan41.ui'))
class TabPlan41Widget(QWidget, FORM_CLASS):
def __init__(self, parent=None):
super().__init__(parent)
self.setupUi(self)

32
ui/tab_plan41.ui Normal file
View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>538</width>
<height>295</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>40</x>
<y>50</y>
<width>47</width>
<height>13</height>
</rect>
</property>
<property name="text">
<string>Plan41</string>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>