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 "insets/insetcommand.h"
23 #include <gtk--/container.h>
24 #include <gnome--/entry.h>
25 #include <gtk--/label.h>
27 /** This class provides an Gnome implementation of the FormIndex Dialog.
29 class FormIndex : public DialogBase {
32 FormIndex(LyXView *, Dialogs *);
36 /// Slot launching dialog to (possibly) create a new inset
37 void createInset( string const & );
38 /// Slot launching dialog to an existing inset
39 void showInset( InsetCommand * const );
41 /// Update dialog before showing it
42 virtual void update() { }
43 virtual void updateSlot(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;