-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
831fd48
commit 4edc406
Showing
7 changed files
with
123 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "mycitadel-desktop" | ||
version = "1.3.0" | ||
version = "2.0.0" | ||
authors = ["Dr Maxim Orlovsky <[email protected]>"] | ||
description = "Bitcoin, Lightning and RGB wallet; part of MyCitadel software suite." | ||
repository = "https://github.com/mycitadel/mycitadel-desktop" | ||
|
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
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,22 @@ | ||
// MyCitadel desktop wallet: bitcoin & RGB wallet based on GTK framework. | ||
// | ||
// Written in 2022 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// Copyright (C) 2022 by Pandora Prime SA, Switzerland. | ||
// | ||
// This software is distributed without any warranty. You should have received | ||
// a copy of the AGPL-3.0 License along with this software. If not, see | ||
// <https://www.gnu.org/licenses/agpl-3.0-standalone.html>. | ||
|
||
mod widget; | ||
|
||
use gtk::ResponseType; | ||
pub use widget::Widgets; | ||
|
||
#[derive(Msg)] | ||
pub enum Msg { | ||
Show, | ||
Advanced, | ||
Response(ResponseType), | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// MyCitadel desktop wallet: bitcoin & RGB wallet based on GTK framework. | ||
// | ||
// Written in 2022 by | ||
// Dr. Maxim Orlovsky <[email protected]> | ||
// | ||
// Copyright (C) 2022 by Pandora Prime SA, Switzerland. | ||
// | ||
// This software is distributed without any warranty. You should have received | ||
// a copy of the AGPL-3.0 License along with this software. If not, see | ||
// <https://www.gnu.org/licenses/agpl-3.0-standalone.html>. | ||
|
||
use gladis::Gladis; | ||
use gtk::prelude::*; | ||
use gtk::{Button, Dialog, Entry, HeaderBar, InfoBar, Label, ToggleButton}; | ||
use relm::Relm; | ||
|
||
use crate::view::wallet; | ||
|
||
// Create the structure that holds the widgets used in the view. | ||
#[derive(Clone, Gladis)] | ||
pub struct Widgets { | ||
dialog: Dialog, | ||
header_bar: HeaderBar, | ||
|
||
info_bar: InfoBar, | ||
info_lbl: Label, | ||
|
||
cancel_btn: Button, | ||
compose_btn: Button, | ||
batch_btn: Button, | ||
|
||
invoice_fld: Entry, | ||
amount_fld: Entry, | ||
max_btn: ToggleButton, | ||
asset_lbl: Label, | ||
} | ||
|
||
impl Widgets { | ||
pub fn init_ui(&self, model: &wallet::ViewModel) {} | ||
|
||
pub fn show(&self) { self.dialog.show() } | ||
pub fn hide(&self) { self.dialog.hide() } | ||
|
||
pub fn to_root(&self) -> Dialog { self.dialog.clone() } | ||
pub fn as_root(&self) -> &Dialog { &self.dialog } | ||
|
||
pub fn connect(&self, relm: &Relm<wallet::Component>) {} | ||
} |