swift
Loading...
Searching...
No Matches
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
16namespace swift::gui::views
17{
19 class SWIFT_GUI_EXPORT CApplicationInfoView : public CViewBase<models::CApplicationInfoListModel>
20 {
22
23 public:
25 explicit CApplicationInfoView(QWidget *parent = nullptr);
26
28 int otherSwiftVersionsFromDataDirectories(bool reinitOtherVersions = false);
29
31 int otherSwiftVersionsFromDataDiretoriesAndResize(bool reinitOtherVersion = false);
32
35 };
36
39 {
41
42 public:
44 CApplicationInfoMenu(CApplicationInfoView *modelView) : menus::IMenuDelegate(modelView) {}
45
47 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.
IMenuDelegate(QWidget *parent=nullptr)
Constructor.
CApplicationInfoMenu(CApplicationInfoView *modelView)
Constructor.
void customMenu(menus::CMenuActions &menuActions)
Display custom menu.
CApplicationInfoView(QWidget *parent=nullptr)
Constructor.
int otherSwiftVersionsFromDataDiretoriesAndResize(bool reinitOtherVersion=false)
Display versions and resize.
int otherSwiftVersionsFromDataDirectories(bool reinitOtherVersions=false)
swift::misc::CApplicationInfoList::otherSwiftVersionsFromDataDirectories
void deleteSelectedDataDirectories()
Delete the selected directories.
CViewBase(QWidget *parent, ModelClass *model=nullptr)
Definition viewbase.cpp:31
Views, mainly QTableView.
Q_OBJECTQ_OBJECT
QObject * parent() const const
#define SWIFT_GUI_EXPORT
Export a class or function from the library.