Update list of wide characters
[centerim5.git] / cppconsui / Dialog.h
blob44c8d0fb6387d40b6cebebbc78658a4e3fd6564b
1 // Copyright (C) 2008 Mark Pustjens <pustjens@dds.nl>
2 // Copyright (C) 2010-2015 Petr Pavlu <setup@dagobah.cz>
3 //
4 // This file is part of CenterIM.
5 //
6 // CenterIM is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // CenterIM is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with CenterIM. If not, see <http://www.gnu.org/licenses/>.
19 /// @file
20 /// Dialog class.
21 ///
22 /// @ingroup cppconsui
24 #ifndef DIALOG_H
25 #define DIALOG_H
27 #include "AbstractDialog.h"
29 namespace CppConsUI {
31 class Dialog : public AbstractDialog {
32 public:
33 Dialog(int x, int y, int w, int h, const char *title = nullptr);
34 explicit Dialog(const char *title = nullptr);
35 virtual ~Dialog() override {}
37 /// Signal emitted when user closes the dialog.
38 sigc::signal<void, Dialog &, ResponseType> signal_response;
40 protected:
41 // AbstractDialog
42 virtual void emitResponse(ResponseType response) override;
44 private:
45 CONSUI_DISABLE_COPY(Dialog);
48 } // namespace CppConsUI
50 #endif // DIALOG_H
52 // vim: set tabstop=2 shiftwidth=2 textwidth=80 expandtab: