]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/ButtonPolicies.C
Move LaTeX and VC logs to GUI-I on xforms
[lyx.git] / src / frontends / ButtonPolicies.C
index 3662facfeb28410c569d0a0270992df2b36acf47..3598dcc2062e59d202ae2ff523e18d7feb37d5a0 100644 (file)
@@ -99,7 +99,7 @@ PreferencesPolicy::PreferencesPolicy()
 
 void PreferencesPolicy::input(SMInput input)
 {
-       lyxerr << "PreferencesPolicy::input" << endl;
+       //lyxerr << "PreferencesPolicy::input" << endl;
        // CANCEL and HIDE always take us to INITIAL for all cases.
        // Note that I didn't put that special case in the helper function
        // because it doesn't belong there.  Some other 
@@ -118,6 +118,25 @@ void PreferencesPolicy::input(SMInput input)
 }
 
 
+/*-------------------------------OkViewPolicy------------------------------*/
+
+
+OkViewPolicy::OkViewPolicy()
+       : state_(INITIAL),
+         outputs_(INVALID + 1, ButtonPolicy::ALL_BUTTONS),
+         state_machine_(INVALID + 1,
+                        StateArray(int(SMI_TOTAL), ButtonPolicy::BOGUS))
+{
+}
+
+
+
+void OkViewPolicy::input(SMInput)
+{
+       state_ = VALID;
+}
+
+
 /*-------------------------------OkCancelPolicy------------------------------*/
 
 
@@ -161,7 +180,7 @@ OkCancelPolicy::OkCancelPolicy()
 
 void OkCancelPolicy::input(SMInput input)
 {
-       lyxerr << "OkCancelPolicy::input" << endl;
+       //lyxerr << "OkCancelPolicy::input" << endl;
        
        // CANCEL and HIDE always take us to INITIAL for all cases
        if (SMI_CANCEL == input
@@ -235,7 +254,7 @@ OkCancelReadOnlyPolicy::OkCancelReadOnlyPolicy()
 
 void OkCancelReadOnlyPolicy::input(SMInput input)
 {
-       lyxerr << "OkCancelReadOnlyPolicy" << endl;
+       //lyxerr << "OkCancelReadOnlyPolicy::input" << endl;
        
        // CANCEL and HIDE always take us to INITIAL for all cases
        if (SMI_CANCEL == input
@@ -313,7 +332,7 @@ NoRepeatedApplyReadOnlyPolicy::NoRepeatedApplyReadOnlyPolicy()
 
 void NoRepeatedApplyReadOnlyPolicy::input(SMInput input)
 {
-       lyxerr << "NoReapeatedApplyReadOnlyPolicy::input" << endl;
+       //lyxerr << "NoReapeatedApplyReadOnlyPolicy::input" << endl;
        
        // CANCEL and HIDE always take us to INITIAL for all cases
        if (SMI_CANCEL == input
@@ -405,7 +424,7 @@ OkApplyCancelReadOnlyPolicy::OkApplyCancelReadOnlyPolicy()
 
 void OkApplyCancelReadOnlyPolicy::input(SMInput input)
 {
-       lyxerr << "OkApplyCancelReadOnlyPolicy::input" << endl;
+       //lyxerr << "OkApplyCancelReadOnlyPolicy::input" << endl;
        
        // CANCEL and HIDE always take us to INITIAL for all cases
        if (SMI_CANCEL == input
@@ -471,7 +490,7 @@ OkApplyCancelPolicy::OkApplyCancelPolicy()
 
 void OkApplyCancelPolicy::input(SMInput input)
 {
-       lyxerr << "OkApplyCancelPolicy::input" << endl;
+       //lyxerr << "OkApplyCancelPolicy::input" << endl;
        
        // CANCEL and HIDE always take us to INITIAL for all cases
        if (SMI_CANCEL == input
@@ -529,7 +548,7 @@ NoRepeatedApplyPolicy::NoRepeatedApplyPolicy()
 
 void NoRepeatedApplyPolicy::input(SMInput input)
 {
-       lyxerr << "NoRepeatedApplyPolicy::input" << endl;
+       //lyxerr << "NoRepeatedApplyPolicy::input" << endl;
        
        // CANCEL and HIDE always take us to INITIAL for all cases
        if (SMI_CANCEL == input