]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/urldlg.h
small cleanup, doxygen, formatting changes
[lyx.git] / src / frontends / kde / urldlg.h
1 /**
2  * \file urldlg.h
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8
9 #ifndef URLDLG_H
10 #define URLDLG_H
11
12 #include <config.h>
13 #include <gettext.h>
14
15 // to connect apply() and hide()
16 #include "FormUrl.h"
17
18 #include <qdialog.h>
19 #include <qlayout.h>
20 #include <qlabel.h>
21 #include <qtooltip.h>
22 #include <qcheckbox.h>
23 #include <qlineedit.h>
24 #include <qpushbutton.h>
25
26 class UrlDialog : public QDialog {
27    Q_OBJECT
28 public:
29         UrlDialog(FormUrl * form, QWidget * parent=0, char const * name=0,
30                             bool modal=false, WFlags f=0);
31         ~UrlDialog();
32
33         // widgets
34  
35         QLabel * labelurl;
36         QLabel * labelurlname;
37         QLineEdit * url;
38         QLineEdit * urlname;
39         QCheckBox * htmlurl;
40         QPushButton * buttonOk;
41         QPushButton * buttonCancel;
42
43 protected:
44         void closeEvent(QCloseEvent * e);
45  
46 private:
47         FormUrl * form_;
48
49         // layouts
50  
51         QHBoxLayout * topLayout;
52         QVBoxLayout * layout;
53         QHBoxLayout * urlLayout;
54         QBoxLayout * urlnameLayout;
55         QBoxLayout * htmlurlLayout;
56         QHBoxLayout * buttonLayout;
57
58 private slots:
59         /// adaptor to FormUrl::apply
60         void apply_adaptor(void) {
61                 form_->apply();
62                 form_->close();
63                 hide();
64         }
65
66         /// adaptor to FormUrl::close
67         void close_adaptor(void) {
68                 form_->close();
69                 hide();
70         }
71 };
72
73 #endif // URLDLG_H