Ref T264, UI element to display other swift versions

This commit is contained in:
Klaus Basan
2018-05-19 07:45:22 +02:00
parent a7a1674faa
commit 0e2cb19303
6 changed files with 374 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
/* Copyright (C) 2018
* 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_COMPONENTS_OTHERSWIFTVERSIONS_H
#define BLACKGUI_COMPONENTS_OTHERSWIFTVERSIONS_H
#include "blackmisc/applicationinfo.h"
#include <QFrame>
#include <QScopedPointer>
namespace Ui { class COtherSwiftVersionsComponent; }
namespace BlackGui
{
namespace Components
{
/**
* Overview about other "swift" versions
*/
class COtherSwiftVersionsComponent : public QFrame
{
Q_OBJECT
public:
//! Constructor
explicit COtherSwiftVersionsComponent(QWidget *parent = nullptr);
//! Destructor
virtual ~COtherSwiftVersionsComponent();
//! Any version selected?
bool hasSelection() const;
//! Get the selected other version
BlackMisc::CApplicationInfo selectedOtherVersion() const;
private:
QScopedPointer<Ui::COtherSwiftVersionsComponent> ui;
//! Data directory
void openDataDirectory();
};
} // ns
} // ns
#endif // guard