aboutsummaryrefslogtreecommitdiff
path: root/main/src/view_model/preferences_row.vala
blob: 3a04ee1e0f0d8aaff991816bc19d5f5c350c7894 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
    }
}