window: Move into widgets

This commit is contained in:
Sophie Herold 2024-09-14 21:43:02 +02:00
parent f5660ba83e
commit 4c2b72e0f9
6 changed files with 11 additions and 9 deletions

View file

@ -25,7 +25,7 @@ use adw::subclass::prelude::*;
use crate::config; use crate::config;
use crate::deps::*; use crate::deps::*;
use crate::window::LpWindow; use crate::widgets::LpWindow;
mod imp { mod imp {
use super::*; use super::*;

View file

@ -59,7 +59,6 @@ pub mod file_model;
pub mod metadata; pub mod metadata;
pub mod util; pub mod util;
pub mod widgets; pub mod widgets;
pub mod window;
mod deps { mod deps {
pub use gtk::{cairo, gdk, gio, glib, graphene, gsk}; pub use gtk::{cairo, gdk, gio, glib, graphene, gsk};

View file

@ -18,29 +18,31 @@
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
mod drag_overlay; mod drag_overlay;
mod edit_window;
mod error_details; mod error_details;
mod image; mod image;
mod image_page; mod image_page;
mod image_view; mod image_view;
mod image_window;
mod print; mod print;
mod print_preview; mod print_preview;
mod properties_view; mod properties_view;
mod shy_bin; mod shy_bin;
mod sliding_view; mod sliding_view;
mod window;
mod window_content; mod window_content;
mod edit_window;
mod image_window;
pub use drag_overlay::LpDragOverlay; pub use drag_overlay::LpDragOverlay;
pub use edit_window::LpImageEdit;
pub use error_details::LpErrorDetails; pub use error_details::LpErrorDetails;
pub use image::LpImage; pub use image::LpImage;
pub use image_page::LpImagePage; pub use image_page::LpImagePage;
pub use image_view::LpImageView; pub use image_view::LpImageView;
pub use image_window::LpImageWindow;
pub use print::LpPrint; pub use print::LpPrint;
pub use print_preview::LpPrintPreview; pub use print_preview::LpPrintPreview;
pub use properties_view::LpPropertiesView; pub use properties_view::LpPropertiesView;
pub use shy_bin::LpShyBin; pub use shy_bin::LpShyBin;
pub use sliding_view::LpSlidingView; pub use sliding_view::LpSlidingView;
pub use window::LpWindow;
pub use window_content::LpWindowContent; pub use window_content::LpWindowContent;
pub use edit_window::LpImageEdit;
pub use image_window::LpImageWindow;

View file

@ -43,8 +43,9 @@ use crate::config;
use crate::deps::*; use crate::deps::*;
use crate::util::gettext::*; use crate::util::gettext::*;
use crate::util::Direction; use crate::util::Direction;
use crate::widgets::{LpDragOverlay, LpImage, LpImageView, LpPropertiesView, LpWindowContent}; use crate::widgets::{
use crate::window::LpWindow; LpDragOverlay, LpImage, LpImageView, LpPropertiesView, LpWindow, LpWindowContent,
};
/// Animation duration for showing overlay buttons in milliseconds /// Animation duration for showing overlay buttons in milliseconds
const SHOW_CONTROLS_ANIMATION_DURATION: u32 = 200; const SHOW_CONTROLS_ANIMATION_DURATION: u32 = 200;

View file

@ -22,7 +22,7 @@ use gtk::CompositeTemplate;
use crate::config; use crate::config;
use crate::deps::*; use crate::deps::*;
use crate::widgets::{LpImageView, LpImageEdit, LpImageWindow}; use crate::widgets::{LpImageEdit, LpImageView, LpImageWindow};
/// Show window after X milliseconds even if image dimensions are not known yet /// Show window after X milliseconds even if image dimensions are not known yet
const SHOW_WINDOW_AFTER: u64 = 2000; const SHOW_WINDOW_AFTER: u64 = 2000;