2000-07-24 22:42:35 +00:00
|
|
|
/* This file is part of
|
2001-04-02 10:24:07 +00:00
|
|
|
* =================================================
|
2000-07-24 22:42:35 +00:00
|
|
|
*
|
2001-04-02 10:24:07 +00:00
|
|
|
* LyX, The Document Processor
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
2000-07-24 22:42:35 +00:00
|
|
|
*
|
2001-04-02 10:24:07 +00:00
|
|
|
* =================================================
|
|
|
|
*
|
|
|
|
* \author Michael Koziarski <michael@koziarski.org>
|
2000-07-24 22:42:35 +00:00
|
|
|
*/
|
|
|
|
|
2001-04-02 10:24:07 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
2000-07-24 22:42:35 +00:00
|
|
|
#include <config.h>
|
2001-04-02 10:24:07 +00:00
|
|
|
|
|
|
|
#include "debug.h"
|
|
|
|
|
|
|
|
#include "gnomeBC.h"
|
2000-07-24 22:42:35 +00:00
|
|
|
#include "FormCopyright.h"
|
2001-04-02 10:24:07 +00:00
|
|
|
#include "gnome_helpers.h"
|
|
|
|
|
|
|
|
#include <gtk--/button.h>
|
|
|
|
#include <gtk--/label.h>
|
2000-07-24 22:42:35 +00:00
|
|
|
|
2001-04-02 10:24:07 +00:00
|
|
|
|
|
|
|
FormCopyright::FormCopyright(ControlCopyright & c)
|
|
|
|
: FormCB<ControlCopyright>(c, "diahelpcopyright.glade", "DiaHelpCopyright")
|
2000-07-24 22:42:35 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-04-02 10:24:07 +00:00
|
|
|
void FormCopyright::build()
|
2000-07-24 22:42:35 +00:00
|
|
|
{
|
2001-04-02 10:24:07 +00:00
|
|
|
ok()->clicked.connect(SigC::slot(this, &FormCopyright::CancelClicked));
|
|
|
|
copyright()->set(controller().getCopyright());
|
|
|
|
license()->set(controller().getLicence());
|
|
|
|
disclaimer()->set(controller().getDisclaimer());
|
2000-07-24 22:42:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-04-02 10:24:07 +00:00
|
|
|
Gtk::Button * FormCopyright::ok()
|
|
|
|
{
|
|
|
|
return getWidget<Gtk::Button>("copyright_button_ok");
|
|
|
|
}
|
|
|
|
|
|
|
|
Gtk::Label * FormCopyright::disclaimer()
|
2000-07-24 22:42:35 +00:00
|
|
|
{
|
2001-04-02 10:24:07 +00:00
|
|
|
return getWidget<Gtk::Label>("copyright_disclaimer");
|
2000-07-24 22:42:35 +00:00
|
|
|
}
|
|
|
|
|
2001-04-02 10:24:07 +00:00
|
|
|
Gtk::Label * FormCopyright::copyright()
|
|
|
|
{
|
|
|
|
return getWidget<Gtk::Label>("copyright_copyright");
|
|
|
|
}
|
2000-07-24 22:42:35 +00:00
|
|
|
|
2001-04-02 10:24:07 +00:00
|
|
|
Gtk::Label * FormCopyright::license()
|
2000-07-24 22:42:35 +00:00
|
|
|
{
|
2001-04-02 10:24:07 +00:00
|
|
|
return getWidget<Gtk::Label>("copyright_license");
|
2000-07-24 22:42:35 +00:00
|
|
|
}
|