]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GParagraph.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / GParagraph.h
1 // -*- C++ -*-
2 /**
3  * \file GParagraph.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \auther John Spray
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GPARAGRAPH_H
13 #define GPARAGRAPH_H
14
15 #include "GViewBase.h"
16
17 #include <gtkmm.h>
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlParagraph;
23
24 /** This class provides a gtk implementation of the paragraph dialog.
25  */
26 class GParagraph
27         : public GViewCB<ControlParagraph, GViewGladeB> {
28 public:
29         GParagraph(Dialog &);
30 private:
31         /// Build the dialog
32         virtual void doBuild();
33         /// Apply from dialog
34         virtual void apply() {}
35         /// Update the dialog
36         virtual void update();
37
38         Gtk::SpinButton * spacingspin_;
39         Gtk::Entry * maxlabelwidthentry_;
40         Gtk::CheckButton * indentcheck_;
41         Gtk::CheckButton * defaultspacingcheck_;
42         Gtk::RadioButton * blockradio_;
43         Gtk::RadioButton * leftradio_;
44         Gtk::RadioButton * rightradio_;
45         Gtk::RadioButton * centerradio_;
46
47         Gtk::Adjustment * spacingadj_;
48
49         void onDefaultSpacingToggled();
50         void onMaxLabelWidthChanged();
51         void onSpacingChanged();
52         void onIndentToggled();
53         void onAlignToggled();
54 };
55
56 } // namespace frontend
57 } // namespace lyx
58
59 #endif