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
}
+/*-------------------------------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------------------------------*/
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
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
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
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
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
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