From 34fe2dbdeaa0af57f8dc0945e52969b83883ffc5 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 29 Mar 2006 05:39:11 +0000 Subject: r10923@tres: ted | 2006-02-13 09:47:15 -0800 Adding in the help dialog basics. (bzr r336) --- src/extension/helpdialog.cpp | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/extension/helpdialog.cpp (limited to 'src/extension/helpdialog.cpp') diff --git a/src/extension/helpdialog.cpp b/src/extension/helpdialog.cpp new file mode 100644 index 000000000..d53a3f058 --- /dev/null +++ b/src/extension/helpdialog.cpp @@ -0,0 +1,44 @@ +/* + * Authors: + * Ted Gould + * + * Copyright (C) 2006 Authors + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include +#include + +#include "../dialogs/dialog-events.h" + +#include "prefdialog.h" + +namespace Inkscape { +namespace Extension { + +HelpDialog::HelpDialog (Glib::ustring name, gchar const * help) : + Gtk::Dialog::Dialog(_("Help with ") + name, true, true) +{ + Gtk::Button * ok = add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK); + set_default_response(Gtk::RESPONSE_OK); + ok->grab_focus(); + + GtkWidget *dlg = GTK_WIDGET(gobj()); + sp_transientize(dlg); + + return; +} + +}; }; /* namespace Inkscape, Extension */ + +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 : -- cgit v1.2.3