]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiURL.h
renaming of some methods that hurt the eyes + removal of:
[lyx.git] / src / frontends / qt4 / GuiURL.h
1 // -*- C++ -*-
2 /**
3  * \file GuiURLDialog.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIURLDIALOG_H
13 #define GUIURLDIALOG_H
14
15 #include "GuiDialogView.h"
16 #include "ControlCommand.h"
17 #include "ui_URLUi.h"
18
19 #include <QDialog>
20
21 namespace lyx {
22 namespace frontend {
23
24 class UrlView;
25
26 class GuiURLDialog : public QDialog, public Ui::URLUi
27 {
28         Q_OBJECT
29 public:
30         GuiURLDialog(UrlView * form);
31 public Q_SLOTS:
32         void changed_adaptor();
33 protected:
34         void closeEvent(QCloseEvent *);
35 private:
36         UrlView * form_;
37 };
38
39
40 class UrlView : public GuiView<GuiURLDialog> 
41 {
42 public:
43         friend class QURLDialog;
44         UrlView(GuiDialog &);
45         /// parent controller
46         ControlCommand & controller()
47         { return static_cast<ControlCommand &>(this->getController()); }
48         /// parent controller
49         ControlCommand const & controller() const
50         { return static_cast<ControlCommand const &>(this->getController()); }
51 protected:
52         virtual bool isValid();
53 private:
54         /// apply dialog
55         virtual void applyView();
56         /// build dialog
57         virtual void build_dialog();
58         /// update dialog
59         virtual void update_contents();
60 };
61
62 } // namespace frontend
63 } // namespace lyx
64
65 #endif // GUIURLDIALOG_H