]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormCopyright.C
implement getLabelList
[lyx.git] / src / frontends / qt2 / FormCopyright.C
1 /***************************************************************************
2                           formcopyright.cpp  -  description
3                              -------------------
4     begin                : Thu Feb 3 2000
5     copyright            : (C) 2000 by Jürgen Vigna, 2001 by Kalle Dalheimer
6     email                : kalle@klaralvdalens-datakonsult.se
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
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.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #include <config.h>
19
20
21 #include "FormCopyrightDialogImpl.h"
22 #include <qlabel.h>
23 #include <qpushbutton.h>
24 #undef emit
25 #include "ButtonControllerBase.h"
26 #include "qt2BC.h"
27 #include "ControlCopyright.h"
28 #include "FormCopyright.h"
29
30 typedef Qt2CB<ControlCopyright, Qt2DB<FormCopyrightDialogImpl> > base_class;
31
32 FormCopyright::FormCopyright( ControlCopyright& c ) :
33     base_class( c, _( "Copyright and Warranty" ) )
34 {
35 }
36
37
38 void FormCopyright::build()
39 {
40     // PENDING(kalle) Parent???
41     dialog_.reset( new FormCopyrightDialogImpl() );
42     connect( dialog_.get()->closePB, SIGNAL( clicked() ),
43              this, SLOT( slotCancel() ) );
44
45     dialog_->copyrightLA->setText( controller().getCopyright().c_str() );
46     dialog_->licenseLA->setText( controller().getLicence().c_str() );
47     dialog_->disclaimerLA->setText( controller().getDisclaimer().c_str() );
48
49     // Manage the cancel/close button
50     bc().setCancel(dialog_->closePB);
51     bc().refresh();
52 }
53
54
55