4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
16 #include "GuiDialogView.h"
19 #include "ui_ParagraphUi.h"
22 #include <QCloseEvent>
31 class GuiParagraphDialog : public QDialog, public Ui::ParagraphUi {
34 GuiParagraphDialog(GuiParagraph * form);
36 void checkAlignmentRadioButtons();
38 void alignmentToRadioButtons(LyXAlignment align = LYX_ALIGN_LAYOUT);
40 LyXAlignment getAlignmentFromDialog();
42 void closeEvent (QCloseEvent * e);
45 typedef std::map<LyXAlignment, QRadioButton *> QPRadioMap;
47 typedef std::map<LyXAlignment, docstring> QPAlignmentLabels;
48 QPAlignmentLabels labelMap;
52 void change_adaptor();
54 void enableLinespacingValue(int);
58 class ControlParagraph;
61 : public QController<ControlParagraph, GuiView<GuiParagraphDialog> >
64 friend class GuiParagraphDialog;
66 GuiParagraph(Dialog &);
71 virtual void update_contents();
73 virtual void build_dialog();
76 } // namespace frontend
79 #endif // QPARAGRAPH_H