2001-03-23 22:07:56 +00:00
|
|
|
/**
|
2001-04-03 14:30:58 +00:00
|
|
|
* \file qt2BC.C
|
2001-03-23 22:07:56 +00:00
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author Allan Rae <rae@lyx.org>
|
|
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "qt2BC.h"
|
|
|
|
|
|
|
|
#include <qbutton.h>
|
|
|
|
|
|
|
|
qt2BC::qt2BC(string const & cancel, string const & close)
|
2001-06-16 14:48:12 +00:00
|
|
|
: GuiBC<QButton, QWidget>(cancel, close)
|
2001-03-23 22:07:56 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
|
2001-06-16 14:48:12 +00:00
|
|
|
void qt2BC::setButtonEnabled(QButton * obj, bool enabled)
|
2001-03-23 22:07:56 +00:00
|
|
|
{
|
2001-06-16 14:48:12 +00:00
|
|
|
obj->setEnabled(enabled);
|
|
|
|
}
|
|
|
|
|
2001-03-23 22:07:56 +00:00
|
|
|
|
2001-06-16 14:48:12 +00:00
|
|
|
void qt2BC::setWidgetEnabled(QWidget * obj, bool enabled)
|
|
|
|
{
|
|
|
|
obj->setEnabled(enabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void qt2BC::setButtonLabel(QButton * obj, string const & label)
|
|
|
|
{
|
|
|
|
obj->setText(label.c_str());
|
2001-03-23 22:07:56 +00:00
|
|
|
}
|