4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "QDialogView.h"
16 #include "ui/ListingsUi.h"
19 #include <QCloseEvent>
26 class QListingsDialog : public QDialog, public Ui::QListingsUi {
29 QListingsDialog(QListings * form);
30 /// get values from all the widgets and form a string
31 std::string construct_params();
33 virtual void change_adaptor();
34 /// AFAIK, QValidator only works for QLineEdit so
35 /// I have to validate listingsED (QTextEdit) manually.
36 void validate_listings_params();
38 virtual void closeEvent(QCloseEvent * e);
44 class ControlListings;
46 class QListings : public QController<ControlListings, QView<QListingsDialog> > {
48 friend class QListingsDialog;
55 virtual void update_contents();
57 virtual void build_dialog();
60 } // namespace frontend