[chronojump] Added "Invert" at genericWin (signal,curves)



commit fb9829ed313b0d07fb1f88f9fbd5deafb3a30475
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Mar 13 13:25:31 2013 +0100

    Added "Invert" at genericWin (signal,curves)

 src/gui/genericWindow.cs |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/genericWindow.cs b/src/gui/genericWindow.cs
index c17f0ac..3e5aaa3 100644
--- a/src/gui/genericWindow.cs
+++ b/src/gui/genericWindow.cs
@@ -229,6 +229,7 @@ public class GenericWindow
        protected static string [] comboAllNoneSelectedOptions = {
                Catalog.GetString("All"),
                Catalog.GetString("None"),
+               Catalog.GetString("Invert"),
                Catalog.GetString("Selected"),
        };
 
@@ -270,6 +271,15 @@ public class GenericWindow
                                                store.SetValue (iter, 0, true);
                                        i++;
                                } while ( store.IterNext(ref iter) );
+                       } else if(selected == Catalog.GetString("Invert")) {
+                               bool val;
+                               do {
+                                       if(! Util.FoundInArrayList(nonSensitiveRows, i)) {
+                                               val = (bool) store.GetValue (iter, 0);
+                                               store.SetValue (iter, 0, !val);
+                                       }
+                                       i++;
+                               } while ( store.IterNext(ref iter) );
                        } else if(selected == Catalog.GetString("None")) {
                                do {
                                        store.SetValue (iter, 0, false);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]