refs #443 Added PluginDetailsWindow

* New variable in the json metadata file - simulator name
* Added PluginDetailsWindow that shows plugin info
This commit is contained in:
Michał Garapich
2015-07-24 17:40:13 +02:00
committed by Mathew Sutcliffe
parent 4d772050b0
commit 584616de7a
11 changed files with 315 additions and 14 deletions

View File

@@ -0,0 +1,58 @@
/* Copyright (C) 2015
* swift project Community / Contributors
*
* This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \file
#ifndef BLACKGUI_PLUGINDETAILSWINDOW_H
#define BLACKGUI_PLUGINDETAILSWINDOW_H
#include "blackgui/blackguiexport.h"
#include <QWidget>
namespace Ui { class CPluginDetailsWindow; }
namespace BlackGui
{
/*!
* A window that shows plugin details.
*/
class BLACKGUI_EXPORT CPluginDetailsWindow : public QWidget
{
Q_OBJECT
public:
//! Ctor
explicit CPluginDetailsWindow(QWidget *parent = 0);
//! Destructor
virtual ~CPluginDetailsWindow();
//! Sets the plugin name
void setPluginName(const QString &name);
//! Sets the plugin id
void setPluginIdentifier(const QString &id);
//! Sets the plugin description
void setPluginDescription(const QString &description);
//! Sets the plugin authors
void setPluginAuthors(const QString &authors);
protected:
virtual void showEvent(QShowEvent *event) override;
private:
QScopedPointer<Ui::CPluginDetailsWindow> ui;
};
} // namespace
#endif // BLACKGUI_PLUGINDETAILSWINDOW_H