Show cursor on exit
[utui.git] / dialog.h
blobdd38b9d2fbcce45ee1eb0954d69a089d19983fe8
1 // This file is part of the utui library, a terminal UI framework.
2 //
3 // Copyright (C) 2006 by Mike Sharov <msharov@users.sourceforge.net>
4 // This file is free software, distributed under the MIT License.
5 //
6 // dialog.h
7 //
9 #ifndef DIALOG_H_72C5A9947589648B43ECB6345C1D548B
10 #define DIALOG_H_72C5A9947589648B43ECB6345C1D548B
12 #include "ctrl/label.h"
13 #include "ctrl/button.h"
14 #include "ctrl/editbox.h"
15 #include "ctrl/listbox.h"
17 /// \class CDialog dialog.h dialog.h
18 ///
19 /// Base class for dialog-like windows, which are usually dynamically-stuffed
20 /// containers of controls with a visible border, used modally.
21 ///
22 class CDialog : public CWindow {
23 public:
24 CDialog (void);
25 virtual void OnKey (wchar_t key);
26 protected:
27 virtual void OnDraw (CGC& gc);
28 virtual void OnChildClose (uoff_t i);
29 virtual void SizeHints (rrect_t wr) const;
32 #endif