3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
13 #include "ControlChanges.h"
14 #include "qt_helpers.h"
16 #include <qpushbutton.h>
17 #include <qtextview.h>
19 #include "QChangesDialog.h"
23 typedef Qt2CB<ControlChanges, Qt2DB<QChangesDialog> > base_class;
27 : base_class(qt_("Changes"))
32 void QChanges::build_dialog()
34 dialog_.reset(new QChangesDialog(this));
36 bc().setCancel(dialog_->closePB);
37 bc().addReadOnly(dialog_->acceptPB);
38 bc().addReadOnly(dialog_->rejectPB);
47 string author(controller().getChangeAuthor());
48 string date(controller().getChangeDate());
51 text += "Change by " + author + "\n\n";
53 text += "Change made at " + date + "\n";
55 dialog_->changeTV->setText(toqstr(text));
59 void QChanges::accept()
61 controller().accept();
65 void QChanges::reject()
67 controller().reject();