X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FButtonPolicies.C;h=393606b4401edad0c99b1ddf1e965bb25abc8fd3;hb=b7c9ae49318e0167a46e7213c967280205db4cf6;hp=a1510d632744401fa920593e8ab1b26b41b61a85;hpb=6da75c9cd889e2635bb748d6247d01220c4f8ab1;p=lyx.git diff --git a/src/frontends/controllers/ButtonPolicies.C b/src/frontends/controllers/ButtonPolicies.C index a1510d6327..393606b440 100644 --- a/src/frontends/controllers/ButtonPolicies.C +++ b/src/frontends/controllers/ButtonPolicies.C @@ -1,18 +1,11 @@ -/* ButtonPolicies.C - * Provides a state machine implementation of the various button policies - * used by the dialogs. - * Author: Allan Rae - * This file is part of - * ====================================================== +/** + * \file ButtonPolicies.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * LyX, The Document Processor + * \author Allan Rae * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2001 The LyX Team. - * - * This file Copyright 2000 - * Allan Rae - * ====================================================== + * Full author contact details are available in file CREDITS */ #include @@ -38,7 +31,7 @@ void nextState(ButtonPolicy::State & state, lyxerr[Debug::GUI] << "Transition from state " << state << " to state " << tmp << " after input " << in << std::endl; - + if (ButtonPolicy::BOGUS != tmp) { state = tmp; } else { @@ -112,7 +105,7 @@ void PreferencesPolicy::input(SMInput input) //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 + // because it doesn't belong there. Some other // This is probably optimising for the wrong case since it occurs as the // dialog will be hidden. It would have saved a little memory in the // state machine if I could have gotten map working. ARRae 20000813 @@ -172,7 +165,7 @@ OkCancelPolicy::OkCancelPolicy() void OkCancelPolicy::input(SMInput input) { //lyxerr << "OkCancelPolicy::input" << endl; - + // CANCEL and HIDE always take us to INITIAL for all cases if (SMI_CANCEL == input || SMI_HIDE == input) { @@ -246,7 +239,7 @@ OkCancelReadOnlyPolicy::OkCancelReadOnlyPolicy() void OkCancelReadOnlyPolicy::input(SMInput input) { //lyxerr << "OkCancelReadOnlyPolicy::input" << endl; - + // CANCEL and HIDE always take us to INITIAL for all cases if (SMI_CANCEL == input || SMI_HIDE == input) { @@ -324,7 +317,7 @@ NoRepeatedApplyReadOnlyPolicy::NoRepeatedApplyReadOnlyPolicy() void NoRepeatedApplyReadOnlyPolicy::input(SMInput input) { //lyxerr << "NoReapeatedApplyReadOnlyPolicy::input" << endl; - + // CANCEL and HIDE always take us to INITIAL for all cases if (SMI_CANCEL == input || SMI_HIDE == input) { @@ -416,7 +409,7 @@ OkApplyCancelReadOnlyPolicy::OkApplyCancelReadOnlyPolicy() void OkApplyCancelReadOnlyPolicy::input(SMInput input) { //lyxerr << "OkApplyCancelReadOnlyPolicy::input" << endl; - + // CANCEL and HIDE always take us to INITIAL for all cases if (SMI_CANCEL == input || SMI_HIDE == input) { @@ -482,7 +475,7 @@ OkApplyCancelPolicy::OkApplyCancelPolicy() void OkApplyCancelPolicy::input(SMInput input) { //lyxerr << "OkApplyCancelPolicy::input" << endl; - + // CANCEL and HIDE always take us to INITIAL for all cases if (SMI_CANCEL == input || SMI_HIDE == input) { @@ -540,7 +533,7 @@ NoRepeatedApplyPolicy::NoRepeatedApplyPolicy() void NoRepeatedApplyPolicy::input(SMInput input) { //lyxerr << "NoRepeatedApplyPolicy::input" << endl; - + // CANCEL and HIDE always take us to INITIAL for all cases if (SMI_CANCEL == input || SMI_HIDE == input) {