1 /***************************************************************************
2 formcopyright.cpp - description
5 copyright : (C) 2000 by Jürgen Vigna, 2001 by Kalle Dalheimer
6 email : kalle@klaralvdalens-datakonsult.se
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
21 #include "FormCopyrightDialogImpl.h"
23 #include <qpushbutton.h>
26 #include "ControlCopyright.h"
27 #include "FormCopyright.h"
29 typedef Qt2CB<ControlCopyright, Qt2DB<FormCopyrightDialogImpl> > base_class;
31 FormCopyright::FormCopyright( ControlCopyright& c ) :
32 base_class( c, _( "Copyright and Warranty" ) )
37 void FormCopyright::build()
39 // PENDING(kalle) Parent???
40 dialog_.reset( new FormCopyrightDialogImpl() );
41 connect( dialog_.get()->closePB, SIGNAL( clicked() ),
42 this, SLOT( slotCancel() ) );
44 dialog_->copyrightLA->setText( controller().getCopyright().c_str() );
45 dialog_->licenseLA->setText( controller().getLicence().c_str() );
46 dialog_->disclaimerLA->setText( controller().getDisclaimer().c_str() );
48 // Manage the cancel/close button
49 bc().setCancel(dialog_->closePB);