-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
963b940
commit 1d39b24
Showing
5 changed files
with
117 additions
and
3 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
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,21 @@ | ||
// 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 gtk::ResponseType; | ||
|
||
mod widget; | ||
|
||
#[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,45 @@ | ||
// 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, Label, ToggleButton}; | ||
use relm::Relm; | ||
|
||
// Create the structure that holds the widgets used in the view. | ||
#[derive(Clone, Gladis)] | ||
pub struct Widgets { | ||
dialog: Dialog, | ||
header_bar: HeaderBar, | ||
|
||
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>) {} | ||
} |