diff --git a/src/lumos.gresource.xml b/src/lumos.gresource.xml index 42b0c2b..c379aa1 100644 --- a/src/lumos.gresource.xml +++ b/src/lumos.gresource.xml @@ -4,6 +4,7 @@ window.ui widgets/time_priority_page.ui widgets/aperture_priority_page.ui + widgets/manual_exposure_page.ui gtk/help-overlay.ui style.css diff --git a/src/meson.build b/src/meson.build index 6834b1b..cd63817 100644 --- a/src/meson.build +++ b/src/meson.build @@ -33,6 +33,7 @@ lumos_sources = [ 'widgets/widgets_loader.py', 'widgets/time_priority_page.py', 'widgets/aperture_priority_page.py', + 'widgets/manual_exposure_page.py', ] install_data(lumos_sources, install_dir: moduledir) diff --git a/src/widgets/aperture_priority_page.ui b/src/widgets/aperture_priority_page.ui index e6188f6..f02f1d3 100644 --- a/src/widgets/aperture_priority_page.ui +++ b/src/widgets/aperture_priority_page.ui @@ -43,7 +43,7 @@ - + diff --git a/src/widgets/manual_exposure_page.py b/src/widgets/manual_exposure_page.py new file mode 100644 index 0000000..5f82220 --- /dev/null +++ b/src/widgets/manual_exposure_page.py @@ -0,0 +1,26 @@ +# time_priority_page.py +# +# Copyright 2024 Daniele Verducci +# +# 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 . +# +# SPDX-License-Identifier: GPL-3.0-or-later + +from gi.repository import Adw +from gi.repository import Gtk + +@Gtk.Template(resource_path='/eu/ichibi/Lumos/widgets/manual_exposure_page.ui') +class ManualExposurePage(Gtk.Box): + __gtype_name__ = 'ManualExposurePage' + diff --git a/src/widgets/manual_exposure_page.ui b/src/widgets/manual_exposure_page.ui new file mode 100644 index 0000000..ba3c36d --- /dev/null +++ b/src/widgets/manual_exposure_page.ui @@ -0,0 +1,126 @@ + + + + + + diff --git a/src/widgets/widgets_loader.py b/src/widgets/widgets_loader.py index 975bac6..b540e28 100644 --- a/src/widgets/widgets_loader.py +++ b/src/widgets/widgets_loader.py @@ -2,9 +2,11 @@ from gi.repository import GObject from .time_priority_page import TimePriorityPage from .aperture_priority_page import AperturePriorityPage +from .manual_exposure_page import ManualExposurePage # Register widgets to be used in templates UI def registerWidgets() -> None: GObject.type_ensure(TimePriorityPage) GObject.type_ensure(AperturePriorityPage) + GObject.type_ensure(ManualExposurePage) diff --git a/src/window.ui b/src/window.ui index 25b9b3e..fa719a4 100644 --- a/src/window.ui +++ b/src/window.ui @@ -63,11 +63,7 @@ encoder-knob-symbolic true - - Manual mode! - +