2001-03-15 13:37:04 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2001-03-21 13:27:03 +00:00
|
|
|
* Copyright 2001 The LyX Team.
|
2001-03-15 13:37:04 +00:00
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*
|
2001-03-30 09:51:46 +00:00
|
|
|
* \file ControlButton.C
|
2001-03-15 13:37:04 +00:00
|
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
|
|
*/
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
#include "ControlButton.h"
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
void ControlButton::ApplyButton()
|
2001-03-15 13:37:04 +00:00
|
|
|
{
|
|
|
|
apply();
|
|
|
|
bc().apply();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
void ControlButton::OKButton()
|
2001-03-15 13:37:04 +00:00
|
|
|
{
|
|
|
|
apply();
|
|
|
|
hide();
|
|
|
|
bc().ok();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
void ControlButton::CancelButton()
|
2001-03-15 13:37:04 +00:00
|
|
|
{
|
|
|
|
hide();
|
|
|
|
bc().cancel();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
void ControlButton::RestoreButton()
|
2001-03-15 13:37:04 +00:00
|
|
|
{
|
|
|
|
update();
|
|
|
|
bc().undoAll();
|
|
|
|
}
|