summaryrefslogtreecommitdiff
path: root/libcaribou/row-model.vala
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2011-05-28 13:09:00 -0700
committerEitan Isaacson <eitan@monotonous.org>2011-05-28 13:09:00 -0700
commitc7ceeb7a923e3d1eae2edc8050c52f27fca7fb53 (patch)
treef7b34e9adeb15d0536748a918ffc2c0cbf767fa5 /libcaribou/row-model.vala
parent19a05548084b345c96fe910442d89978e8bbcb2a (diff)
downloadcaribou-c7ceeb7a923e3d1eae2edc8050c52f27fca7fb53.tar.gz
Implement scannable interfaces in keyboard model.
Diffstat (limited to 'libcaribou/row-model.vala')
-rw-r--r--libcaribou/row-model.vala10
1 files changed, 9 insertions, 1 deletions
diff --git a/libcaribou/row-model.vala b/libcaribou/row-model.vala
index 291d76c..3774519 100644
--- a/libcaribou/row-model.vala
+++ b/libcaribou/row-model.vala
@@ -1,5 +1,7 @@
namespace Caribou {
- public class RowModel : GLib.Object {
+ public class RowModel : ScannableGroup, IScannableItem {
+ public bool scan_stepping { get; set; }
+ public bool scan_selected { get; set; }
Gee.ArrayList<ColumnModel> columns;
@@ -39,5 +41,11 @@ namespace Caribou {
return (ColumnModel[]) columns.to_array ();
}
+ public override IScannableItem[] get_scan_children () {
+ if (scan_grouping == ScanGrouping.ROWS)
+ return (IScannableItem[]) get_keys ();
+ else
+ return (IScannableItem[]) columns.to_array ();
+ }
}
}