xoreos  0.0.5
editbox.h
Go to the documentation of this file.
1 /* xoreos - A reimplementation of BioWare's Aurora engine
2  *
3  * xoreos is the legal property of its developers, whose names
4  * can be found in the AUTHORS file distributed with this source
5  * distribution.
6  *
7  * xoreos is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 3
10  * of the License, or (at your option) any later version.
11  *
12  * xoreos is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with xoreos. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
25 #ifndef ENGINES_NWN_GUI_WIDGETS_EDITBOX_H
26 #define ENGINES_NWN_GUI_WIDGETS_EDITBOX_H
27 
28 #include "src/common/scopedptr.h"
29 
31 
32 namespace Common {
33 class UString;
34 }
35 
36 namespace Engines {
37 
38 class GUI;
39 
40 namespace NWN {
41 
43 class WidgetEditBox : public WidgetListBox {
44 public:
45  WidgetEditBox(::Engines::GUI &gui, const Common::UString &tag,
46  const Common::UString &model);
48 
49  void show();
50  void hide();
51 
53  void setTitle(const Common::UString &font, const Common::UString &title);
54 
55 private:
56  // FIXME As there is no mechanism to easily scroll text (like the render-to-texture way),
57  // lines are shown by WidgetListBox but should ideally use WidgetText
58 
60 };
61 
62 } // End of namespace NWN
63 
64 } // End of namespace Engines
65 
66 #endif // ENGINES_NWN_GUI_WIDGETS_EDITBOX_H
void hide()
Hide the widget.
Definition: editbox.cpp:52
Definition: 2dafile.h:39
A class holding an UTF-8 string.
Definition: ustring.h:48
void show()
Show the widget.
Definition: editbox.cpp:45
A simple scoped smart pointer template.
A NWN listbox widget.
A GUI.
Definition: gui.h:43
A NWN listbox widget.
Definition: listbox.h:116
void setTitle(const Common::UString &font, const Common::UString &title)
Set title text if available.
Definition: editbox.cpp:59
A NWN editbox widget.
Definition: editbox.h:43
WidgetEditBox(::Engines::GUI &gui, const Common::UString &tag, const Common::UString &model)
Definition: editbox.cpp:37
Common::ScopedPtr< Graphics::Aurora::Text > _title
Definition: editbox.h:59