mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
03add3957a
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2552 a592a061-630c-0410-9148-cb99ea01b6c8
45 lines
971 B
C
45 lines
971 B
C
/**
|
|
* \file QAbout.C
|
|
* Copyright 2001 the LyX Team
|
|
* Read the file COPYING
|
|
*
|
|
* \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "gettext.h"
|
|
#include "QAboutDialog.h"
|
|
|
|
#include <qlabel.h>
|
|
#include <qpushbutton.h>
|
|
#include "QtLyXView.h"
|
|
|
|
#include "ButtonControllerBase.h"
|
|
#include "qt2BC.h"
|
|
#include "ControlAboutlyx.h"
|
|
#include "QAbout.h"
|
|
|
|
typedef Qt2CB<ControlAboutlyx, Qt2DB<QAboutDialog> > base_class;
|
|
|
|
QAbout::QAbout(ControlAboutlyx & c)
|
|
: base_class(c, _("About LyX"))
|
|
{
|
|
}
|
|
|
|
|
|
void QAbout::build()
|
|
{
|
|
dialog_.reset(new QAboutDialog());
|
|
connect(dialog_.get()->closePB, SIGNAL(clicked()),
|
|
this, SLOT(slotCancel()));
|
|
|
|
dialog_->copyrightLA->setText(controller().getCopyright().c_str());
|
|
dialog_->licenseLA->setText(controller().getLicense().c_str());
|
|
dialog_->disclaimerLA->setText(controller().getDisclaimer().c_str());
|
|
|
|
// Manage the cancel/close button
|
|
bc().setCancel(dialog_->closePB);
|
|
bc().refresh();
|
|
}
|