4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Bernhard Reiter
9 * Full author contact details are available in file CREDITS.
15 #include "GViewBase.h"
20 class ControlThesaurus;
22 /** This class provides a GTK+ implementation of the Thesaurus Dialog.
24 class GThesaurus : public GViewCB<ControlThesaurus, GViewGladeB> {
26 GThesaurus(Dialog & parent);
29 virtual void doBuild();
30 virtual void update();
32 /// updates the synonym list (e.g. when the keyword is changed)
34 /// enables the apply button if a synonym is selected from the list
35 void selection_changed();
36 /// changes the keyword entry content to the synonym double-clicked on
37 void meaningsview_activated(const Gtk::TreeModel::Path&, Gtk::TreeViewColumn*);
39 /** apply() won't act when this is true.
40 true if no text is selected when the thesaurus dialog is opened
44 Gtk::Button * cancelbutton_;
45 Gtk::Button * okbutton_;
46 Gtk::Button * applybutton_;
47 Gtk::Entry * keywordentry_;
48 Gtk::TreeView * meaningsview_;
49 Glib::RefPtr<Gtk::TreeStore> synTreeStore_;
53 } // namespace frontend
56 #endif // GTHESAURUS_H