]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GRef.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / gtk / GRef.h
1 // -*- C++ -*-
2 /**
3  * \file GRef.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Spray
8  * \author Andreas Klostermann
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GREF_H
14 #define GREF_H
15
16 #include "GViewBase.h"
17 #include <string>
18 namespace lyx {
19 namespace frontend {
20
21 class ControlRef;
22
23 /** This class provides a GTK+ implementation of the Note Dialog.
24  */
25 class GRef : public GViewCB<ControlRef, GViewGladeB> {
26 public:
27         GRef(Dialog & parent);
28 private:
29         virtual void apply();
30         virtual void doBuild();
31         virtual void update();
32         virtual void update_labels();
33         // Signal callbacks
34         void selection_changed ();
35         void buffer_changed();
36         void update_validity();
37         void jumpto();
38         void back();
39         void refview_activated(const Gtk::TreeModel::Path&, Gtk::TreeViewColumn*);
40         // apply() won't act when this is true
41         bool applylock_;
42         std::string lastbuffer_;
43         Gtk::Entry * labelentry_;
44         Gtk::Entry * nameentry_;
45         Gtk::TreeView * refview_;
46         Glib::RefPtr<Gtk::ListStore> refListStore_;
47         Glib::RefPtr<Gtk::ListStore> bufferstore_;
48         Gtk::ComboBox * formatcombo_;
49         Gtk::ComboBox * buffercombo_;
50         Gtk::Button * jumptobutton_;
51         Gtk::Button * backbutton_;
52         Gtk::Button * cancelbutton_;
53         Gtk::Button * okbutton_;
54         Gtk::Button * applybutton_;
55         Gtk::Button * refreshbutton_;
56
57 };
58
59 } // namespace frontend
60 } // namespace lyx
61
62 #endif // GREF_H