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::deps::*;
use crate::window::LpWindow;
use crate::widgets::LpWindow;
mod imp {
use super::*;

View file

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

View file

@ -18,29 +18,31 @@
// SPDX-License-Identifier: GPL-3.0-or-later
mod drag_overlay;
mod edit_window;
mod error_details;
mod image;
mod image_page;
mod image_view;
mod image_window;
mod print;
mod print_preview;
mod properties_view;
mod shy_bin;
mod sliding_view;
mod window;
mod window_content;
mod edit_window;
mod image_window;
pub use drag_overlay::LpDragOverlay;
pub use edit_window::LpImageEdit;
pub use error_details::LpErrorDetails;
pub use image::LpImage;
pub use image_page::LpImagePage;
pub use image_view::LpImageView;
pub use image_window::LpImageWindow;
pub use print::LpPrint;
pub use print_preview::LpPrintPreview;
pub use properties_view::LpPropertiesView;
pub use shy_bin::LpShyBin;
pub use sliding_view::LpSlidingView;
pub use window::LpWindow;
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::util::gettext::*;
use crate::util::Direction;
use crate::widgets::{LpDragOverlay, LpImage, LpImageView, LpPropertiesView, LpWindowContent};
use crate::window::LpWindow;
use crate::widgets::{
LpDragOverlay, LpImage, LpImageView, LpPropertiesView, LpWindow, LpWindowContent,
};
/// Animation duration for showing overlay buttons in milliseconds
const SHOW_CONTROLS_ANIMATION_DURATION: u32 = 200;

View file

@ -22,7 +22,7 @@ use gtk::CompositeTemplate;
use crate::config;
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
const SHOW_WINDOW_AFTER: u64 = 2000;