mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 17:55:34 +08:00
refs #443 Added PluginDetailsWindow
* New variable in the json metadata file - simulator name * Added PluginDetailsWindow that shows plugin info
This commit is contained in:
committed by
Mathew Sutcliffe
parent
4d772050b0
commit
584616de7a
58
src/blackgui/plugindetailswindow.h
Normal file
58
src/blackgui/plugindetailswindow.h
Normal 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
|
||||
Reference in New Issue
Block a user