blob: a2f348180fa79cc153acf22932779b00024b6800 [file] [log] [blame]
Yingdi Yuc29fb982013-10-20 19:43:10 -07001/* -*- 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 Yu996607b2013-10-18 19:03:08 -070011#ifndef WARNINGDIALOG_H
12#define WARNINGDIALOG_H
13
14#include <QDialog>
15
16namespace Ui {
17class WarningDialog;
18}
19
20class WarningDialog : public QDialog
21{
Yingdi Yuc29fb982013-10-20 19:43:10 -070022 Q_OBJECT
Yingdi Yu996607b2013-10-18 19:03:08 -070023
24public:
Yingdi Yuc29fb982013-10-20 19:43:10 -070025 explicit WarningDialog(QWidget *parent = 0);
26
27 ~WarningDialog();
28
29 void
30 setMsg(const std::string& msg);
31
32private slots:
33 void
34 onOkClicked();
Yingdi Yu996607b2013-10-18 19:03:08 -070035
36private:
Yingdi Yuc29fb982013-10-20 19:43:10 -070037 Ui::WarningDialog *ui;
Yingdi Yu996607b2013-10-18 19:03:08 -070038};
39
40#endif // WARNINGDIALOG_H