-
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement a simple 3 pane layout * Experiment with a bit of a file structure * Create initial sidebar imp
- Loading branch information
Showing
7 changed files
with
205 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* This file is part of Akira. | ||
* | ||
* Copyright (c) 2024 Alessandro Castellani | ||
* | ||
* Akira 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. | ||
* | ||
* Akira 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 | ||
* Akira. If not, see <https://www.gnu.org/ licenses/>. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* This file is part of Akira. | ||
* | ||
* Copyright (c) 2024 Alessandro Castellani | ||
* | ||
* Akira 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. | ||
* | ||
* Akira 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 | ||
* Akira. If not, see <https://www.gnu.org/ licenses/>. | ||
*/ | ||
pub mod sidebar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* This file is part of Akira. | ||
* | ||
* Copyright (c) 2024 Alessandro Castellani | ||
* | ||
* Akira 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. | ||
* | ||
* Akira 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 | ||
* Akira. If not, see <https://www.gnu.org/ licenses/>. | ||
*/ | ||
use gtk::glib; | ||
use gtk::subclass::prelude::*; | ||
|
||
mod imp { | ||
use super::*; | ||
|
||
#[derive(Debug, Default)] | ||
pub struct Layers {} | ||
|
||
#[glib::object_subclass] | ||
impl ObjectSubclass for Layers { | ||
const NAME: &'static str = "Layers"; | ||
type Type = super::Layers; | ||
type ParentType = gtk::Grid; | ||
} | ||
|
||
impl ObjectImpl for Layers {} | ||
impl WidgetImpl for Layers {} | ||
impl GridImpl for Layers {} | ||
} | ||
|
||
glib::wrapper! { | ||
pub struct Layers(ObjectSubclass<imp::Layers>) @extends gtk::Widget, gtk::Grid; | ||
} | ||
|
||
impl Default for Layers { | ||
fn default() -> Self { | ||
glib::Object::builder() | ||
.property("width-request", 200) | ||
.build() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* This file is part of Akira. | ||
* | ||
* Copyright (c) 2024 Alessandro Castellani | ||
* | ||
* Akira 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. | ||
* | ||
* Akira 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 | ||
* Akira. If not, see <https://www.gnu.org/ licenses/>. | ||
*/ | ||
pub mod layers; | ||
pub mod options; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* This file is part of Akira. | ||
* | ||
* Copyright (c) 2024 Alessandro Castellani | ||
* | ||
* Akira 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. | ||
* | ||
* Akira 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 | ||
* Akira. If not, see <https://www.gnu.org/ licenses/>. | ||
*/ | ||
use gtk::glib; | ||
use gtk::subclass::prelude::*; | ||
|
||
mod imp { | ||
use super::*; | ||
|
||
#[derive(Debug, Default)] | ||
pub struct Options {} | ||
|
||
#[glib::object_subclass] | ||
impl ObjectSubclass for Options { | ||
const NAME: &'static str = "Options"; | ||
type Type = super::Options; | ||
type ParentType = gtk::Grid; | ||
} | ||
|
||
impl ObjectImpl for Options {} | ||
impl WidgetImpl for Options {} | ||
impl GridImpl for Options {} | ||
} | ||
|
||
glib::wrapper! { | ||
pub struct Options(ObjectSubclass<imp::Options>) @extends gtk::Widget, gtk::Grid; | ||
} | ||
|
||
impl Default for Options { | ||
fn default() -> Self { | ||
glib::Object::builder() | ||
.property("width-request", 200) | ||
.build() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters