]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GUrl.h
Minipage is no more (long live the box inset)
[lyx.git] / src / frontends / gnome / GUrl.h
1 // -*- C++ -*-
2 /**
3  * \file GUrl.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Baruch Even
8  * \author Michael Koziarski
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GURL_H
14 #define GURL_H
15
16
17 #include "ControlUrl.h"
18 #include "GView.h"
19
20 namespace Gtk {
21 class Button;
22 class CheckButton;
23 class Entry;
24 }
25
26 /**
27  * This class implements the dialog to insert/modify urls.
28  */
29 class GUrl : public GControlledView<ControlUrl> {
30 public:
31         ///
32         GUrl();
33         ///
34         ~GUrl();
35
36         void apply();
37         void update();
38
39 private:
40         /// Build the dialog
41         void build();
42
43         /// Returns true if the dialog input is in a valid state.
44         bool validate() const;
45
46         /// Do the connection of signals
47         void connect_signals();
48         /// Disconnect the signals.
49         void disconnect_signals();
50
51         /// generated by accessors.py
52         Gtk::Button * restore_btn() const;
53         /// gene rated by accessors.py
54         Gtk::Button * ok_btn() const;
55         /// generated by accessors.py
56         Gtk::Button * apply_btn() const;
57         /// generated by accessors.py
58         Gtk::Button * cancel_btn() const;
59         /// generated by accessors.py
60         Gtk::Entry * url() const;
61         /// generated by accessors.py
62         Gtk::Entry * name() const;
63         /// generated by accessors.py
64         Gtk::CheckButton * html_cb() const;
65
66         /// Keeps the connection to the input validator.
67         SigC::Connection slot_url_;
68         SigC::Connection slot_name_;
69         SigC::Connection slot_html_;
70 };
71
72 #endif