obs-StreamFX/source/ui/ui-about-entry.hpp
Michael Fabian 'Xaymar' Dirks f58ce9f421 project: Implement a brand new UI with fancy windows
Implements support for various new UI features that weren't possible up until now, such as an 'About StreamFX' window with a thank you to everyone that supported the project up until now.
2020-04-23 01:09:02 +02:00

51 lines
1.5 KiB
C++

/*
* Modern effects for a modern Streamer
* Copyright (C) 2020 Michael Fabian Dirks
*
* 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
*/
#pragma once
#include <chrono>
#include "ui-about.hpp"
#include "ui-common.hpp"
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4251 4365 4371 4619 4946)
#endif
#include "ui_about-entry.h"
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace streamfx::ui {
class about_entry : public QWidget, public Ui::AboutEntry {
Q_OBJECT
private:
std::chrono::high_resolution_clock::time_point _last_click;
QUrl _link1_url;
QUrl _link2_url;
public:
about_entry(QWidget* parent, ui::about::entry& entry);
~about_entry();
public slots:
void on_link1_clicked();
void on_link2_clicked();
};
} // namespace streamfx::ui