mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 07:57:22 +00:00
8a4455d459
Implemented controller-view split for Copyright and Credits popups. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1803 a592a061-630c-0410-9148-cb99ea01b6c8
51 lines
708 B
C
51 lines
708 B
C
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 2001 The LyX Team.
|
|
*
|
|
* ======================================================
|
|
*
|
|
* \file ControlBase.C
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
*/
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include <config.h>
|
|
|
|
#include "ButtonController.h"
|
|
#include "ControlBase.h"
|
|
|
|
void ControlBase::ApplyButton()
|
|
{
|
|
apply();
|
|
bc().apply();
|
|
}
|
|
|
|
|
|
void ControlBase::OKButton()
|
|
{
|
|
apply();
|
|
hide();
|
|
bc().ok();
|
|
}
|
|
|
|
|
|
void ControlBase::CancelButton()
|
|
{
|
|
hide();
|
|
bc().cancel();
|
|
}
|
|
|
|
|
|
void ControlBase::RestoreButton()
|
|
{
|
|
update();
|
|
bc().undoAll();
|
|
}
|