-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove Toasts and subsequent use temporarily disable closeDatabase function for checker use sqlite databse
- Loading branch information
1 parent
af231fd
commit 4f368bd
Showing
2 changed files
with
67 additions
and
81 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 |
---|---|---|
@@ -1,96 +1,94 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
Adw.ToastOverlay overlay { | ||
Adw.StatusPage { | ||
title: _("Database"); | ||
description: _("Search, load and store data in a database"); | ||
Adw.StatusPage { | ||
title: _("Database"); | ||
description: _("Search, load and store data in a database"); | ||
|
||
Box { | ||
orientation: vertical; | ||
halign: center; | ||
spacing: 18; | ||
|
||
Box { | ||
styles [ | ||
"linked" | ||
] | ||
|
||
Entry text_entry { | ||
placeholder-text: _("Enter Text"); | ||
width-request: 300; | ||
} | ||
|
||
Button insert_button { | ||
label: _("Insert"); | ||
} | ||
} | ||
|
||
Box { | ||
orientation: vertical; | ||
halign: center; | ||
orientation: horizontal; | ||
spacing: 18; | ||
|
||
Box { | ||
styles [ | ||
"linked" | ||
] | ||
orientation: vertical; | ||
spacing: 12; | ||
|
||
Entry text_entry { | ||
placeholder-text: _("Enter Text"); | ||
width-request: 300; | ||
Label { | ||
label: _("Search by Text"); | ||
} | ||
|
||
Button insert_button { | ||
label: _("Insert"); | ||
SearchEntry search_entry { | ||
search-delay: 100; | ||
placeholder-text: _("Enter Text"); | ||
width-request: 250; | ||
} | ||
} | ||
|
||
Box { | ||
orientation: horizontal; | ||
spacing: 18; | ||
|
||
Box { | ||
orientation: vertical; | ||
spacing: 12; | ||
|
||
Label { | ||
label: _("Search by Text"); | ||
} | ||
|
||
SearchEntry search_entry { | ||
search-delay: 100; | ||
placeholder-text: _("Enter Text"); | ||
width-request: 250; | ||
} | ||
spacing: 12; | ||
orientation: vertical; | ||
|
||
Label { | ||
label: _("Search by ID"); | ||
} | ||
|
||
Box { | ||
spacing: 12; | ||
orientation: vertical; | ||
|
||
Label { | ||
label: _("Search by ID"); | ||
} | ||
|
||
SpinButton id_entry { | ||
halign: center; | ||
orientation: horizontal; | ||
wrap: false; | ||
climb-rate: 1; | ||
|
||
adjustment: Adjustment { | ||
step-increment: 1; | ||
value: 0; | ||
}; | ||
} | ||
SpinButton id_entry { | ||
halign: center; | ||
orientation: horizontal; | ||
wrap: false; | ||
climb-rate: 1; | ||
|
||
adjustment: Adjustment { | ||
step-increment: 1; | ||
value: 0; | ||
}; | ||
} | ||
} | ||
} | ||
|
||
Frame { | ||
ColumnView column_view { | ||
show-column-separators: true; | ||
Frame { | ||
ColumnView column_view { | ||
show-column-separators: true; | ||
|
||
ColumnViewColumn col1 { | ||
title: _("Text"); | ||
expand: true; | ||
ColumnViewColumn col1 { | ||
title: _("Text"); | ||
expand: true; | ||
|
||
factory: SignalListItemFactory {}; | ||
} | ||
factory: SignalListItemFactory {}; | ||
} | ||
|
||
ColumnViewColumn col2 { | ||
title: _("ID"); | ||
expand: true; | ||
ColumnViewColumn col2 { | ||
title: _("ID"); | ||
expand: true; | ||
|
||
factory: SignalListItemFactory {}; | ||
} | ||
factory: SignalListItemFactory {}; | ||
} | ||
} | ||
} | ||
|
||
Label result_label { | ||
wrap: true; | ||
width-request: 250; | ||
} | ||
Label result_label { | ||
wrap: true; | ||
width-request: 250; | ||
} | ||
} | ||
} |
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