From 5fe7e5d6ec417c44d39431d5839dd50a6d270bd6 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 16 Jun 2015 19:10:42 +0000 Subject: gme: added settings form git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5165 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/gme/gme.pro | 9 ++- src/plugins/Input/gme/settingsdialog.cpp | 34 +++++++++ src/plugins/Input/gme/settingsdialog.h | 42 +++++++++++ src/plugins/Input/gme/settingsdialog.ui | 126 +++++++++++++++++++++++++++++++ 4 files changed, 209 insertions(+), 2 deletions(-) create mode 100644 src/plugins/Input/gme/settingsdialog.cpp create mode 100644 src/plugins/Input/gme/settingsdialog.h create mode 100644 src/plugins/Input/gme/settingsdialog.ui (limited to 'src/plugins/Input/gme') diff --git a/src/plugins/Input/gme/gme.pro b/src/plugins/Input/gme/gme.pro index 76728e884..a204c134a 100644 --- a/src/plugins/Input/gme/gme.pro +++ b/src/plugins/Input/gme/gme.pro @@ -2,10 +2,12 @@ include(../../plugins.pri) HEADERS += decodergmefactory.h \ decoder_gme.h \ - gmehelper.h + gmehelper.h \ + settingsdialog.h SOURCES += decoder_gme.cpp \ decodergmefactory.cpp \ - gmehelper.cpp + gmehelper.cpp \ + settingsdialog.cpp TARGET = $$PLUGINS_PREFIX/Input/gme QMAKE_CLEAN = $$PLUGINS_PREFIX/Input/libgme.so INCLUDEPATH += ../../../ @@ -34,3 +36,6 @@ win32 { QMAKE_LIBDIR += ../../../../bin LIBS += -lqmmp0 -lgme.dll } + +FORMS += \ + settingsdialog.ui diff --git a/src/plugins/Input/gme/settingsdialog.cpp b/src/plugins/Input/gme/settingsdialog.cpp new file mode 100644 index 000000000..27f448ed1 --- /dev/null +++ b/src/plugins/Input/gme/settingsdialog.cpp @@ -0,0 +1,34 @@ +/*************************************************************************** + * Copyright (C) 2015 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program 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 2 of the License, or * + * (at your option) any later version. * + * * + * This program 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 this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "settingsdialog.h" +#include "ui_settingsdialog.h" + +SettingsDialog::SettingsDialog(QWidget *parent) : + QDialog(parent), + m_ui(new Ui::SettingsDialog) +{ + m_ui->setupUi(this); +} + +SettingsDialog::~SettingsDialog() +{ + delete m_ui; +} diff --git a/src/plugins/Input/gme/settingsdialog.h b/src/plugins/Input/gme/settingsdialog.h new file mode 100644 index 000000000..6e49bc6cb --- /dev/null +++ b/src/plugins/Input/gme/settingsdialog.h @@ -0,0 +1,42 @@ +/*************************************************************************** + * Copyright (C) 2015 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program 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 2 of the License, or * + * (at your option) any later version. * + * * + * This program 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 this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef SETTINGSDIALOG_H +#define SETTINGSDIALOG_H + +#include + +namespace Ui { +class SettingsDialog; +} + +class SettingsDialog : public QDialog +{ + Q_OBJECT + +public: + explicit SettingsDialog(QWidget *parent = 0); + ~SettingsDialog(); + +private: + Ui::SettingsDialog *m_ui; +}; + +#endif // SETTINGSDIALOG_H diff --git a/src/plugins/Input/gme/settingsdialog.ui b/src/plugins/Input/gme/settingsdialog.ui new file mode 100644 index 000000000..a3cd79ea8 --- /dev/null +++ b/src/plugins/Input/gme/settingsdialog.ui @@ -0,0 +1,126 @@ + + + SettingsDialog + + + + 0 + 0 + 360 + 108 + + + + GME Plugin Settings + + + + 6 + + + 6 + + + 6 + + + + + QFormLayout::AllNonFixedFieldsGrow + + + + + Fadeout length: + + + + + + + false + + + ms + + + 500 + + + 10000 + + + + + + + Enable fadeout + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + SettingsDialog + accept() + + + 254 + 101 + + + 157 + 274 + + + + + buttonBox + rejected() + SettingsDialog + reject() + + + 322 + 101 + + + 286 + 274 + + + + + fadeoutCheckBox + toggled(bool) + fadeoutSpinBox + setEnabled(bool) + + + 83 + 17 + + + 149 + 42 + + + + + -- cgit v1.2.3-13-gbd6f