Added some files.

This commit is contained in:
Martin Rotter 2015-11-29 14:52:33 +01:00
parent e0c9b95d7e
commit fa51e52bb2
4 changed files with 152 additions and 1 deletions

View File

@ -351,6 +351,7 @@ set(APP_SOURCES
src/gui/dialogs/formdatabasecleanup.cpp src/gui/dialogs/formdatabasecleanup.cpp
src/gui/dialogs/formbackupdatabasesettings.cpp src/gui/dialogs/formbackupdatabasesettings.cpp
src/gui/dialogs/formrestoredatabasesettings.cpp src/gui/dialogs/formrestoredatabasesettings.cpp
src/gui/dialogs/formaddaccount.cpp
src/gui/notifications/notification.cpp src/gui/notifications/notification.cpp
src/gui/systemtrayicon.cpp src/gui/systemtrayicon.cpp
src/gui/baselineedit.cpp src/gui/baselineedit.cpp
@ -481,6 +482,7 @@ set(APP_HEADERS
src/gui/dialogs/formrestoredatabasesettings.h src/gui/dialogs/formrestoredatabasesettings.h
src/gui/dialogs/formdatabasecleanup.h src/gui/dialogs/formdatabasecleanup.h
src/gui/dialogs/formupdate.h src/gui/dialogs/formupdate.h
src/gui/dialogs/formaddaccount.h
src/gui/notifications/notification.h src/gui/notifications/notification.h
src/gui/systemtrayicon.h src/gui/systemtrayicon.h
src/gui/baselineedit.h src/gui/baselineedit.h
@ -582,7 +584,6 @@ set(APP_FORMS
src/gui/dialogs/formbackupdatabasesettings.ui src/gui/dialogs/formbackupdatabasesettings.ui
src/gui/dialogs/formrestoredatabasesettings.ui src/gui/dialogs/formrestoredatabasesettings.ui
src/gui/dialogs/formdatabasecleanup.ui src/gui/dialogs/formdatabasecleanup.ui
src/gui/toolbareditor.ui src/gui/toolbareditor.ui
# STANDARD service forms. # STANDARD service forms.

View File

@ -0,0 +1,41 @@
// This file is part of RSS Guard.
//
// Copyright (C) 2011-2015 by Martin Rotter <rotter.martinos@gmail.com>
//
// 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 <http://www.gnu.org/licenses/>.
#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;
}

View File

@ -0,0 +1,41 @@
// This file is part of RSS Guard.
//
// Copyright (C) 2011-2015 by Martin Rotter <rotter.martinos@gmail.com>
//
// 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 <http://www.gnu.org/licenses/>.
#ifndef FORMADDACCOUNT_H
#define FORMADDACCOUNT_H
#include <QDialog>
#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

View File

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FormAddAccount</class>
<widget class="QDialog" name="FormAddAccount">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Add new account</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>30</x>
<y>240</y>
<width>341</width>
<height>32</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>FormAddAccount</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>FormAddAccount</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>