swift
otherswiftversionscomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_OTHERSWIFTVERSIONS_H
7 #define SWIFT_GUI_COMPONENTS_OTHERSWIFTVERSIONS_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 
12 #include "misc/applicationinfo.h"
13 
14 namespace Ui
15 {
16  class COtherSwiftVersionsComponent;
17 }
18 namespace swift::gui::components
19 {
23  class COtherSwiftVersionsComponent : public QFrame
24  {
25  Q_OBJECT
26 
27  public:
29  explicit COtherSwiftVersionsComponent(QWidget *parent = nullptr);
30 
33 
35  bool hasSelection() const;
36 
39 
42 
44  void reloadOtherVersionsDeferred(int deferMs);
45 
46  signals:
49 
50  private:
51  QScopedPointer<Ui::COtherSwiftVersionsComponent> ui;
52 
54  void openDataDirectory();
55 
57  void onObjectSelected(const swift::misc::CVariant &object);
58  };
59 } // namespace swift::gui::components
60 
61 #endif // SWIFT_GUI_COMPONENTS_OTHERSWIFTVERSIONS_H
swift::misc::CApplicationInfo selectedOtherVersion() const
Get the selected other version.
void versionChanged(const swift::misc::CApplicationInfo &info)
Selection changed.
Description of a swift application.
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
Definition: variant.h:66
High level reusable GUI components.
Definition: aboutdialog.cpp:13