refelct some widget hierarchy in the folder structure

This commit is contained in:
Julian Sparber 2021-03-11 11:39:44 +01:00
parent fc79fab77d
commit 154425f1a0
9 changed files with 22 additions and 25 deletions

View file

@ -1,5 +1,5 @@
use crate::config;
use crate::widgets::FrctlWindow;
use crate::FrctlWindow;
use gettextrs::gettext;
use gio::ApplicationFlags;
use glib::clone;

View file

@ -1,10 +1,16 @@
mod application;
#[rustfmt::skip]
mod config;
mod widgets;
mod login;
mod session;
mod window;
use self::application::FrctlApplication;
use self::login::FrctlLogin;
use self::session::FrctlSession;
use self::window::FrctlWindow;
use adw;
use application::FrctlApplication;
use config::{GETTEXT_PACKAGE, LOCALEDIR, RESOURCES_FILE};
use gettextrs::*;
use gtk::gdk::Display;

View file

@ -22,12 +22,11 @@ sources = files(
'application.rs',
'config.rs',
'main.rs',
'widgets/window.rs',
'widgets/content.rs',
'widgets/sidebar.rs',
'widgets/login.rs',
'widgets/mod.rs',
'widgets/session.rs',
'window.rs',
'login.rs',
'session/mod.rs',
'session/content.rs',
'session/sidebar.rs',
)
custom_target(

View file

@ -1,5 +1,8 @@
use crate::widgets::FrctlContent;
use crate::widgets::FrctlSidebar;
mod content;
mod sidebar;
use self::content::FrctlContent;
use self::sidebar::FrctlSidebar;
use adw;
use adw::subclass::prelude::BinImpl;
use gtk::subclass::prelude::*;

View file

@ -1,11 +0,0 @@
mod content;
mod login;
mod session;
mod sidebar;
mod window;
pub use crate::widgets::content::FrctlContent;
pub use crate::widgets::login::FrctlLogin;
pub use crate::widgets::session::FrctlSession;
pub use crate::widgets::sidebar::FrctlSidebar;
pub use crate::widgets::window::FrctlWindow;

View file

@ -1,7 +1,7 @@
use crate::application::FrctlApplication;
use crate::config::{APP_ID, PROFILE};
use crate::widgets::FrctlLogin;
use crate::widgets::FrctlSession;
use crate::FrctlApplication;
use crate::FrctlLogin;
use crate::FrctlSession;
use adw::subclass::prelude::AdwApplicationWindowImpl;
use glib::signal::Inhibit;
use gtk::subclass::prelude::*;