diff --git a/saori.pro b/saori.pro index 64e08b5..3ebcb58 100644 --- a/saori.pro +++ b/saori.pro @@ -31,7 +31,8 @@ saoriaccount.cpp \ saoriapplication.cpp \ saoricache.cpp \ - saoriviewentry.cpp + saoriviewentry.cpp \ + saoriconfiguredialog.cpp HEADERS += \ saoriwindow.h \ @@ -42,12 +43,14 @@ saoriaccount.h \ saoriapplication.h \ saoricache.h \ - saoriviewentry.h + saoriviewentry.h \ + saoriconfiguredialog.h FORMS += \ saoriwindow.ui \ saoriview.ui \ - saoriaddaccountdialog.ui + saoriaddaccountdialog.ui \ + saoriconfiguredialog.ui TRANSLATIONS += \ saori_ja.ts diff --git a/saoriconfiguredialog.cpp b/saoriconfiguredialog.cpp new file mode 100644 index 0000000..50090c3 --- /dev/null +++ b/saoriconfiguredialog.cpp @@ -0,0 +1,40 @@ +/*** + +The MIT License + +Copyright (c) 2018 Teppei Tamra (TAM) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +***/ + +#include "saoriconfiguredialog.h" +#include "ui_saoriconfiguredialog.h" + +SaoriConfigureDialog::SaoriConfigureDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::SaoriConfigureDialog) +{ + ui->setupUi(this); +} + +SaoriConfigureDialog::~SaoriConfigureDialog() +{ + delete ui; +} diff --git a/saoriconfiguredialog.h b/saoriconfiguredialog.h new file mode 100644 index 0000000..92c5dfc --- /dev/null +++ b/saoriconfiguredialog.h @@ -0,0 +1,48 @@ +/*** + +The MIT License + +Copyright (c) 2018 Teppei Tamra (TAM) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +***/ + +#ifndef SAORICONFIGUREDIALOG_H +#define SAORICONFIGUREDIALOG_H + +#include + +namespace Ui { +class SaoriConfigureDialog; +} + +class SaoriConfigureDialog : public QDialog +{ + Q_OBJECT + +public: + explicit SaoriConfigureDialog(QWidget *parent = 0); + ~SaoriConfigureDialog(); + +private: + Ui::SaoriConfigureDialog *ui; +}; + +#endif // SAORICONFIGUREDIALOG_H diff --git a/saoriconfiguredialog.ui b/saoriconfiguredialog.ui new file mode 100644 index 0000000..1b6517d --- /dev/null +++ b/saoriconfiguredialog.ui @@ -0,0 +1,98 @@ + + + SaoriConfigureDialog + + + + 0 + 0 + 552 + 434 + + + + Setting + + + + + + 0 + + + + Application Setting + + + + + + Maximum number of entries to get: + + + + + + + + + + Auto reload Interval (minutes): + + + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset + + + + + + + + + buttonBox + accepted() + SaoriConfigureDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + SaoriConfigureDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + +