mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Ref T264, UI element to display other swift versions
This commit is contained in:
53
src/blackgui/components/otherswiftversionscomponent.h
Normal file
53
src/blackgui/components/otherswiftversionscomponent.h
Normal 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
|
||||
Reference in New Issue
Block a user