// -*- C++ -*- /* This file is part of * ================================================= * * LyX, The Document Processor * Copyright 1995-2000 The LyX Team. * * ================================================= * * \author Michael Koziarski */ #ifdef __GNUG__ #pragma implementation #endif #include #include "gnomeBC.h" #include "FormCredits.h" #include #include #include FormCredits::FormCredits(ControlCredits & c) : FormCB(c, "diahelpcredits.glade", "DiaHelpCredits") , dialog_(0) { } FormCredits::~FormCredits() { //dialog_->destroy(); } void FormCredits::build() { dialog_ = dialog(); // It is better to show an OK button, but the policy require that we // got a click on "Cancel" ok()->clicked.connect(SigC::slot(this, &FormCredits::CancelClicked)); std::stringstream ss; text()->insert(controller().getCredits(ss).str()); } void FormCredits::show() { if (!dialog_) build(); update(); dialog_->show(); } void FormCredits::hide() { dialog_->hide(); } void FormCredits::apply() { } void FormCredits::update() { } Gnome::Dialog * FormCredits::dialog() { return getWidget("DiaHelpCredits"); } Gtk::Text * FormCredits::text() { return getWidget("credits_text"); } Gtk::Button * FormCredits::ok() { return getWidget("credits_button_ok"); }