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;
49 void change_adaptor();
51 void enableLinespacingValue(int);
53 void on_alignDefaultCB_toggled(bool);
57 class ControlParagraph;
60 : public QController<ControlParagraph, QView<QParagraphDialog> >
63 friend class QParagraphDialog;
70 virtual void update_contents();
72 virtual void build_dialog();
75 } // namespace frontend
78 #endif // QPARAGRAPH_H