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 "QDialogView.h"
19 #include "ui_ParagraphUi.h"
22 #include <QCloseEvent>
31 class QParagraphDialog : public QDialog, public Ui::QParagraphUi {
34 QParagraphDialog(QParagraph * 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, QView<QParagraphDialog> >
64 friend class QParagraphDialog;
71 virtual void update_contents();
73 virtual void build_dialog();
76 } // namespace frontend
79 #endif // QPARAGRAPH_H