Release 1.2.0: wxPython migration + vacation exclusion

This commit is contained in:
2026-03-02 17:37:10 +01:00
parent 07c8905f47
commit db76fbf0d2
14 changed files with 190 additions and 939 deletions

View File

@@ -6,7 +6,7 @@ Native Benutzeroberfläche für macOS, Windows, Linux
"""
import wx
import wx.lib.scrolledpanel as scrolled
import wx.adv
from pathlib import Path
import threading
import json
@@ -100,7 +100,8 @@ class PDFtoICSFrame(wx.Frame):
config = {
'last_output_dir': self.output_dir,
'last_pdf_dir': self.last_pdf_dir,
'exclude_rest': self.exclude_rest_checkbox.GetValue()
'exclude_rest': self.exclude_rest_checkbox.GetValue(),
'exclude_vacation': self.exclude_vacation_checkbox.GetValue()
}
with open(CONFIG_FILE, 'w') as f:
json.dump(config, f, indent=2)
@@ -201,6 +202,13 @@ class PDFtoICSFrame(wx.Frame):
)
self.exclude_rest_checkbox.SetValue(self.config.get('exclude_rest', False))
content_sizer.Add(self.exclude_rest_checkbox, 0, wx.ALL, 10)
self.exclude_vacation_checkbox = wx.CheckBox(
panel,
label='🏖️ Urlaub ausschließen (060, 0060)'
)
self.exclude_vacation_checkbox.SetValue(self.config.get('exclude_vacation', False))
content_sizer.Add(self.exclude_vacation_checkbox, 0, wx.LEFT | wx.RIGHT | wx.BOTTOM, 10)
# Log-Bereich
log_label = wx.StaticText(panel, label='Status:')
@@ -351,7 +359,8 @@ class PDFtoICSFrame(wx.Frame):
create_ics_from_dienstplan(
dienstplan,
str(ics_path),
exclude_rest=self.exclude_rest_checkbox.GetValue()
exclude_rest=self.exclude_rest_checkbox.GetValue(),
exclude_vacation=self.exclude_vacation_checkbox.GetValue()
)
self.log(f" ✓ ICS erstellt: {ics_filename}")