libt3widget
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
insertchardialog.h
1 /* Copyright (C) 2011 G.P. Halkes
2  This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License version 3, as
4  published by the Free Software Foundation.
5 
6  This program is distributed in the hope that it will be useful,
7  but WITHOUT ANY WARRANTY; without even the implied warranty of
8  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  GNU General Public License for more details.
10 
11  You should have received a copy of the GNU General Public License
12  along with this program. If not, see <http://www.gnu.org/licenses/>.
13 */
14 #ifndef T3_WIDGET_INSERTCHARDIALOG_H
15 #define T3_WIDGET_INSERTCHARDIALOG_H
16 
17 #include <string>
18 #include <t3widget/dialogs/dialog.h>
19 #include <t3widget/widgets/textfield.h>
20 
21 namespace t3_widget {
22 
23 class T3_WIDGET_API insert_char_dialog_t : public dialog_t {
24  private:
25  text_field_t *description_line;
26  key_t interpret_key(const std::string *descr);
27  public:
29  virtual bool set_size(optint height, optint width);
30  void reset(void);
31 
32  void ok_activate(void);
33 };
34 
35 }; // namespace
36 #endif
long key_t
Integer type holding a single key symbol.
Definition: key.h:24
Definition: textfield.h:27
Definition: insertchardialog.h:23
Class defining values with a separate validity check.
Definition: util.h:29
Base class for dialogs.
Definition: dialog.h:27