aboutsummaryrefslogtreecommitdiff
path: root/main/src/view_model/preferences_row.vala
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2023-10-30 21:48:08 +0100
committerMiquel Lionel <lionel@les-miquelots.net>2023-10-30 21:48:08 +0100
commitd761e8ccd5293d2f30a889b0cbe302c985aee68c (patch)
tree922bb248a7fee4cdff3da114abc7d77200f3d0da /main/src/view_model/preferences_row.vala
parent302e954c99c71d670201828c6746dfaa40276d6d (diff)
parent3de716446819550514d50a8112f5b6dd0c662702 (diff)
downloaddino-d761e8ccd5293d2f30a889b0cbe302c985aee68c.tar.gz
dino-d761e8ccd5293d2f30a889b0cbe302c985aee68c.zip
Show which account is currently used in conversation details in the about sectionadd_conversation_account_indicator
Diffstat (limited to 'main/src/view_model/preferences_row.vala')
-rw-r--r--main/src/view_model/preferences_row.vala34
1 files changed, 34 insertions, 0 deletions
diff --git a/main/src/view_model/preferences_row.vala b/main/src/view_model/preferences_row.vala
new file mode 100644
index 00000000..3a04ee1e
--- /dev/null
+++ b/main/src/view_model/preferences_row.vala
@@ -0,0 +1,34 @@
+using Dino.Entities;
+using Xmpp;
+using Xmpp.Xep;
+using Gee;
+using Gtk;
+
+namespace Dino.Ui.ViewModel.PreferencesRow {
+ public abstract class Any : Object {
+ public string title { get; set; }
+ }
+
+ public class Text : Any {
+ public string text { get; set; }
+ }
+
+ public class Entry : Any {
+ public signal void changed();
+ public string text { get; set; }
+ }
+
+ public class Toggle : Any {
+ public string subtitle { get; set; }
+ public bool state { get; set; }
+ }
+
+ public class ComboBox : Any {
+ public Gee.List<string> items = new ArrayList<string>();
+ public int active_item { get; set; }
+ }
+
+ public class WidgetDeprecated : Any {
+ public Widget widget;
+ }
+} \ No newline at end of file