diff --git a/CMakeLists.txt b/CMakeLists.txt index 2778f9960..c43ae11d6 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -351,6 +351,7 @@ set(APP_SOURCES src/gui/dialogs/formdatabasecleanup.cpp src/gui/dialogs/formbackupdatabasesettings.cpp src/gui/dialogs/formrestoredatabasesettings.cpp + src/gui/dialogs/formaddaccount.cpp src/gui/notifications/notification.cpp src/gui/systemtrayicon.cpp src/gui/baselineedit.cpp @@ -481,6 +482,7 @@ set(APP_HEADERS src/gui/dialogs/formrestoredatabasesettings.h src/gui/dialogs/formdatabasecleanup.h src/gui/dialogs/formupdate.h + src/gui/dialogs/formaddaccount.h src/gui/notifications/notification.h src/gui/systemtrayicon.h src/gui/baselineedit.h @@ -582,7 +584,6 @@ set(APP_FORMS src/gui/dialogs/formbackupdatabasesettings.ui src/gui/dialogs/formrestoredatabasesettings.ui src/gui/dialogs/formdatabasecleanup.ui - src/gui/toolbareditor.ui # STANDARD service forms. diff --git a/src/gui/dialogs/formaddaccount.cpp b/src/gui/dialogs/formaddaccount.cpp new file mode 100644 index 000000000..4719204ab --- /dev/null +++ b/src/gui/dialogs/formaddaccount.cpp @@ -0,0 +1,41 @@ +// This file is part of RSS Guard. +// +// Copyright (C) 2011-2015 by Martin Rotter +// +// RSS Guard is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// RSS Guard is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with RSS Guard. If not, see . + +#include "gui/dialogs/formaddaccount.h" + +#include "miscellaneous/application.h" + +#if defined(Q_OS_OS2) +#include "gui/messagebox.h" +#endif + + +FormAddAccount::FormAddAccount(QWidget *parent) : QDialog(parent), m_ui(new Ui::FormAddAccount) { + m_ui->setupUi(this); + + // Set flags and attributes. + setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog | Qt::WindowSystemMenuHint); + setWindowIcon(qApp->icons()->fromTheme(QSL("application-about"))); + +#if defined(Q_OS_OS2) + MessageBox::iconify(m_ui->m_buttonBox); +#endif +} + +FormAddAccount::~FormAddAccount() { + delete m_ui; +} diff --git a/src/gui/dialogs/formaddaccount.h b/src/gui/dialogs/formaddaccount.h new file mode 100644 index 000000000..13719a406 --- /dev/null +++ b/src/gui/dialogs/formaddaccount.h @@ -0,0 +1,41 @@ +// This file is part of RSS Guard. +// +// Copyright (C) 2011-2015 by Martin Rotter +// +// RSS Guard is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// RSS Guard is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with RSS Guard. If not, see . + +#ifndef FORMADDACCOUNT_H +#define FORMADDACCOUNT_H + +#include + +#include "ui_formaddaccount.h" + + +namespace Ui { + class FormAddAccount; +} + +class FormAddAccount : public QDialog { + Q_OBJECT + + public: + explicit FormAddAccount(QWidget *parent = 0); + virtual ~FormAddAccount(); + + private: + Ui::FormAddAccount *m_ui; +}; + +#endif // FORMADDACCOUNT_H diff --git a/src/gui/dialogs/formaddaccount.ui b/src/gui/dialogs/formaddaccount.ui new file mode 100644 index 000000000..9b5bf3ce5 --- /dev/null +++ b/src/gui/dialogs/formaddaccount.ui @@ -0,0 +1,68 @@ + + + FormAddAccount + + + + 0 + 0 + 400 + 300 + + + + Add new account + + + + + 30 + 240 + 341 + 32 + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + buttonBox + accepted() + FormAddAccount + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + FormAddAccount + reject() + + + 316 + 260 + + + 286 + 274 + + + + +