]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GVSpace.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / GVSpace.h
1 // -*- C++ -*-
2 /**
3  * \file GVSpace.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  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GVSPACE_H
13 #define GVSPACE_H
14
15 #include "GViewBase.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlVSpace;
21
22 /** This class provides a GTK+ implementation of the VSpace Dialog.
23  */
24 class GVSpace : public GViewCB<ControlVSpace, GViewGladeB> {
25 public:
26         GVSpace(Dialog & parent);
27 private:
28         virtual void apply();
29         virtual void doBuild();
30         virtual void update();
31
32         void PopulateComboBox(Gtk::ComboBox * combo,
33                                   std::vector<std::string> const & strings);
34
35         void onSpacingComboChanged();
36
37         Gtk::TreeModelColumn<Glib::ustring> stringcol_;
38         Gtk::TreeModel::ColumnRecord cols_;
39
40         Gtk::ComboBox * spacingcombo_;
41         Gtk::SpinButton * valuespin_;
42         Gtk::ComboBox * valueunitscombo_;
43         Gtk::CheckButton * protectcheck_;
44 };
45
46 } // namespace frontend
47 } // namespace lyx
48
49 #endif // GVSPACE_H