]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/ButtonController.h
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / xforms / ButtonController.h
index 92e29828245460100016210809f83e3a2b39cbe3..3b22b692ccb86965af0f59ef201540af0439638f 100644 (file)
@@ -89,6 +89,15 @@ public:
                read_only_.erase(read_only_.begin(), read_only_.end());
        }
 
+       ///
+       void addDontTriggerChange(FL_OBJECT * obj) {
+               dont_trigger_change_.push_back(obj);
+       }
+       ///
+       void eraseDontTriggerChange() {
+               dont_trigger_change_.clear();
+       }
+
        /* Action Functions */
        /// force a refresh of the buttons
        void refresh();
@@ -110,7 +119,7 @@ public:
        ///
        void readWrite();
        /// Passthrough function -- returns its input value
-       bool valid(bool v = true);
+       bool valid(bool v = true, FL_OBJECT * obj = 0);
        ///
        void invalid();
 private:
@@ -126,6 +135,8 @@ private:
        FL_OBJECT * undo_all_;
        /// List of items to be deactivated when in one of the read-only states
        std::list<FL_OBJECT *> read_only_;
+       /// container of items that do not trigger a change in activation status
+       std::vector<FL_OBJECT *> dont_trigger_change_;
        ///
        char const * cancel_label;
        ///