2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
19 #include "DialogBase.h"
21 #include "boost/utility.hpp"
22 #include "insets/insetcommand.h"
24 #include <gtk--/container.h>
25 #include <gnome--/entry.h>
26 #include <gtk--/label.h>
28 /** This class provides an Gnome implementation of the FormIndex Dialog.
30 class FormIndex : public DialogBase, public noncopyable {
33 FormIndex(LyXView *, Dialogs *);
37 /// Slot launching dialog to (possibly) create a new inset
38 void createInset( string const & );
39 /// Slot launching dialog to an existing inset
40 void showInset( InsetCommand * const );
42 /// Update dialog before showing it
43 virtual void update(bool = false);
44 /// Apply from dialog (modify or create inset)
46 /// Explicitly free the dialog.
48 /// Create the dialog if necessary, update it and display it.
53 /** Which LyXFunc do we use?
54 We could modify Dialogs to have a visible LyXFunc* instead and
55 save a couple of bytes per dialog.
58 /** Which Dialogs do we belong to?
59 Used so we can get at the signals we have to connect to.
62 /// pointer to the inset passed through showInset (if any)
63 InsetCommand * inset_;
64 /// the nitty-griity. What is modified and passed back
65 InsetCommandParams params;
66 /// Update connection.
70 /// inset::hide connection.
73 /// Real GUI implementation.
74 Gtk::Container * dialog_;
75 Gnome::Entry * keyword_;
77 Gtk::Button * b_cancel;