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() { }
44 virtual void updateSlot(bool = false);
45 /// Apply from dialog (modify or create inset)
47 /// Explicitly free the dialog.
49 /// Create the dialog if necessary, update it and display it.
54 /** Which LyXFunc do we use?
55 We could modify Dialogs to have a visible LyXFunc* instead and
56 save a couple of bytes per dialog.
59 /** Which Dialogs do we belong to?
60 Used so we can get at the signals we have to connect to.
63 /// pointer to the inset passed through showInset (if any)
64 InsetCommand * inset_;
65 /// the nitty-griity. What is modified and passed back
66 InsetCommandParams params;
67 /// Update connection.
71 /// inset::hide connection.
74 /// Real GUI implementation.
75 Gtk::Container * dialog_;
76 Gnome::Entry * keyword_;
78 Gtk::Button * b_cancel;