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>
25 #include "ButtonControllerBase.h"
27 #include "ControlCopyright.h"
28 #include "FormCopyright.h"
30 typedef Qt2CB<ControlCopyright, Qt2DB<FormCopyrightDialogImpl> > base_class;
32 FormCopyright::FormCopyright( ControlCopyright& c ) :
33 base_class( c, _( "Copyright and Warranty" ) )
38 void FormCopyright::build()
40 // PENDING(kalle) Parent???
41 dialog_.reset( new FormCopyrightDialogImpl() );
42 connect( dialog_.get()->closePB, SIGNAL( clicked() ),
43 this, SLOT( slotCancel() ) );
45 dialog_->copyrightLA->setText( controller().getCopyright().c_str() );
46 dialog_->licenseLA->setText( controller().getLicence().c_str() );
47 dialog_->disclaimerLA->setText( controller().getDisclaimer().c_str() );
49 // Manage the cancel/close button
50 bc().setCancel(dialog_->closePB);