]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GText.h
Wrap most of the frontend code up inside namespace lyx::frontend.
[lyx.git] / src / frontends / gtk / GText.h
1 // -*- C++ -*-
2 /**
3  * \file GText.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Huang Ying
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GTEXT_H
13 #define GTEXT_H
14
15 #include "GViewBase.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlCommand;
21
22 class GText : public GViewCB<ControlCommand, GViewGladeB>
23 {
24 public:
25         GText(Dialog & parent, std::string const & title, std::string const & label);
26 private:
27         virtual void apply();
28         virtual void update();
29         virtual void doBuild();
30         void onEntryChanged();
31         std::string const label_;
32         Gtk::Entry * entry_;
33 };
34
35 } // namespace frontend
36 } // namespace lyx
37
38 #endif