lyx_mirror/src/frontends/gnome/FormCopyright.C
Baruch Even 04ff598331 Changed FormCopyright to MVC.
Casting changes in gnome_helpers
Removal of unneeded static from variables in GUIRuntime.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1870 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-02 10:24:07 +00:00

63 lines
1.3 KiB
C

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