Yingdi Yu | c29fb98 | 2013-10-20 19:43:10 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2013, Regents of the University of California |
| 4 | * Yingdi Yu |
| 5 | * |
| 6 | * BSD license, See the LICENSE file for more information |
| 7 | * |
| 8 | * Author: Yingdi Yu <yingdi@cs.ucla.edu> |
| 9 | */ |
| 10 | |
Yingdi Yu | 996607b | 2013-10-18 19:03:08 -0700 | [diff] [blame] | 11 | #ifndef WARNINGDIALOG_H |
| 12 | #define WARNINGDIALOG_H |
| 13 | |
| 14 | #include <QDialog> |
| 15 | |
| 16 | namespace Ui { |
| 17 | class WarningDialog; |
| 18 | } |
| 19 | |
| 20 | class WarningDialog : public QDialog |
| 21 | { |
Yingdi Yu | c29fb98 | 2013-10-20 19:43:10 -0700 | [diff] [blame] | 22 | Q_OBJECT |
Yingdi Yu | 996607b | 2013-10-18 19:03:08 -0700 | [diff] [blame] | 23 | |
| 24 | public: |
Yingdi Yu | c29fb98 | 2013-10-20 19:43:10 -0700 | [diff] [blame] | 25 | explicit WarningDialog(QWidget *parent = 0); |
| 26 | |
| 27 | ~WarningDialog(); |
| 28 | |
| 29 | void |
| 30 | setMsg(const std::string& msg); |
| 31 | |
| 32 | private slots: |
| 33 | void |
| 34 | onOkClicked(); |
Yingdi Yu | 996607b | 2013-10-18 19:03:08 -0700 | [diff] [blame] | 35 | |
| 36 | private: |
Yingdi Yu | c29fb98 | 2013-10-20 19:43:10 -0700 | [diff] [blame] | 37 | Ui::WarningDialog *ui; |
Yingdi Yu | 996607b | 2013-10-18 19:03:08 -0700 | [diff] [blame] | 38 | }; |
| 39 | |
| 40 | #endif // WARNINGDIALOG_H |