2001-01-26 10:16:05 +00:00
|
|
|
|
/***************************************************************************
|
|
|
|
|
formcopyright.cpp - description
|
|
|
|
|
-------------------
|
|
|
|
|
begin : Thu Feb 3 2000
|
2001-03-23 22:07:56 +00:00
|
|
|
|
copyright : (C) 2000 by J<EFBFBD>rgen Vigna, 2001 by Kalle Dalheimer
|
|
|
|
|
email : kalle@klaralvdalens-datakonsult.se
|
2001-01-26 10:16:05 +00:00
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
|
* *
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
|
* (at your option) any later version. *
|
|
|
|
|
* *
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
2001-03-23 22:07:56 +00:00
|
|
|
|
|
|
|
|
|
#include "FormCopyrightDialogImpl.h"
|
|
|
|
|
#include <qlabel.h>
|
|
|
|
|
#include <qpushbutton.h>
|
|
|
|
|
#undef emit
|
2001-03-31 08:39:24 +00:00
|
|
|
|
#include "ButtonControllerBase.h"
|
2001-03-23 22:07:56 +00:00
|
|
|
|
#include "qt2BC.h"
|
|
|
|
|
#include "ControlCopyright.h"
|
2001-01-26 10:16:05 +00:00
|
|
|
|
#include "FormCopyright.h"
|
|
|
|
|
|
2001-03-26 19:34:45 +00:00
|
|
|
|
typedef Qt2CB<ControlCopyright, Qt2DB<FormCopyrightDialogImpl> > base_class;
|
2001-01-26 10:16:05 +00:00
|
|
|
|
|
2001-03-23 22:07:56 +00:00
|
|
|
|
FormCopyright::FormCopyright( ControlCopyright& c ) :
|
|
|
|
|
base_class( c, _( "Copyright and Warranty" ) )
|
2001-01-26 10:16:05 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2001-03-23 22:07:56 +00:00
|
|
|
|
void FormCopyright::build()
|
2001-01-26 10:16:05 +00:00
|
|
|
|
{
|
2001-03-23 22:07:56 +00:00
|
|
|
|
// PENDING(kalle) Parent???
|
|
|
|
|
dialog_.reset( new FormCopyrightDialogImpl() );
|
2001-03-24 15:59:01 +00:00
|
|
|
|
connect( dialog_.get()->closePB, SIGNAL( clicked() ),
|
|
|
|
|
this, SLOT( slotCancel() ) );
|
2001-03-31 08:39:24 +00:00
|
|
|
|
|
2001-03-23 22:07:56 +00:00
|
|
|
|
dialog_->copyrightLA->setText( controller().getCopyright().c_str() );
|
|
|
|
|
dialog_->licenseLA->setText( controller().getLicence().c_str() );
|
|
|
|
|
dialog_->disclaimerLA->setText( controller().getDisclaimer().c_str() );
|
2001-03-31 08:39:24 +00:00
|
|
|
|
|
2001-03-23 22:07:56 +00:00
|
|
|
|
// Manage the cancel/close button
|
2001-03-24 15:59:01 +00:00
|
|
|
|
bc().setCancel(dialog_->closePB);
|
2001-03-23 22:07:56 +00:00
|
|
|
|
bc().refresh();
|
2001-01-26 10:16:05 +00:00
|
|
|
|
}
|
2001-03-23 22:07:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|