Add WarningDialog
diff --git a/src/warningdialog.cpp b/src/warningdialog.cpp
new file mode 100644
index 0000000..135403c
--- /dev/null
+++ b/src/warningdialog.cpp
@@ -0,0 +1,19 @@
+#include "warningdialog.h"
+#include "ui_warningdialog.h"
+
+WarningDialog::WarningDialog(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::WarningDialog)
+{
+ ui->setupUi(this);
+}
+
+WarningDialog::~WarningDialog()
+{
+ delete ui;
+}
+
+#if WAF
+#include "warningdialog.moc"
+#include "warningdialog.cpp.moc"
+#endif
diff --git a/src/warningdialog.h b/src/warningdialog.h
new file mode 100644
index 0000000..7b3125a
--- /dev/null
+++ b/src/warningdialog.h
@@ -0,0 +1,22 @@
+#ifndef WARNINGDIALOG_H
+#define WARNINGDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+class WarningDialog;
+}
+
+class WarningDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit WarningDialog(QWidget *parent = 0);
+ ~WarningDialog();
+
+private:
+ Ui::WarningDialog *ui;
+};
+
+#endif // WARNINGDIALOG_H
diff --git a/src/warningdialog.ui b/src/warningdialog.ui
new file mode 100644
index 0000000..1edc546
--- /dev/null
+++ b/src/warningdialog.ui
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>WarningDialog</class>
+ <widget class="QDialog" name="WarningDialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>300</width>
+ <height>200</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Error</string>
+ </property>
+ <widget class="QPushButton" name="okButton">
+ <property name="geometry">
+ <rect>
+ <x>100</x>
+ <y>160</y>
+ <width>100</width>
+ <height>32</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>OK</string>
+ </property>
+ </widget>
+ <widget class="QLabel" name="message">
+ <property name="geometry">
+ <rect>
+ <x>30</x>
+ <y>30</y>
+ <width>240</width>
+ <height>200</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+ </property>
+ </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>