swift
applicationinfoview.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2013 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_VIEWS_APPLICATIONINFOVIEW_H
7 #define SWIFT_GUI_VIEWS_APPLICATIONINFOVIEW_H
8 
9 #include <QAction>
10 
11 #include "gui/menus/menudelegate.h"
13 #include "gui/swiftguiexport.h"
14 #include "gui/views/viewbase.h"
15 
16 namespace swift::gui::views
17 {
19  class SWIFT_GUI_EXPORT CApplicationInfoView : public CViewBase<models::CApplicationInfoListModel>
20  {
21  Q_OBJECT
22 
23  public:
25  explicit CApplicationInfoView(QWidget *parent = nullptr);
26 
28  int otherSwiftVersionsFromDataDirectories(bool reinitOtherVersions = false);
29 
31  int otherSwiftVersionsFromDataDiretoriesAndResize(bool reinitOtherVersion = false);
32 
34  void deleteSelectedDataDirectories();
35  };
36 
39  {
40  Q_OBJECT
41 
42  public:
44  CApplicationInfoMenu(CApplicationInfoView *modelView) : menus::IMenuDelegate(modelView) {}
45 
47  virtual void customMenu(menus::CMenuActions &menuActions) override;
48 
49  private:
51  CApplicationInfoView *view() const;
52 
53  QAction *m_menuActionDeleteDirectory = nullptr;
54  };
55 } // namespace swift::gui::views
56 #endif // SWIFT_GUI_VIEWS_APPLICATIONINFOVIEW_H
Bunch of CMenuAction objects.
Definition: menuaction.h:384
Interface to implement a custom menu.
Definition: menudelegate.h:21
IMenuDelegate(QWidget *parent=nullptr)
Constructor.
Definition: menudelegate.h:46
Menu base class for aircraft model view menus.
CApplicationInfoMenu(CApplicationInfoView *modelView)
Constructor.
virtual void customMenu(menus::CMenuActions &menuActions)
Display custom menu.
Base class for views.
Definition: viewbase.h:648
Views, mainly QTableView.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.