/* Copyright (C) 2013 * 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_VIEWS_APPLICATIONINFOVIEW_H #define BLACKGUI_VIEWS_APPLICATIONINFOVIEW_H #include "blackgui/views/viewbase.h" #include "blackgui/models/applicationinfolistmodel.h" #include "blackgui/menus/menudelegate.h" #include "blackgui/blackguiexport.h" #include namespace BlackGui { namespace Views { //! Network servers class BLACKGUI_EXPORT CApplicationInfoView : public CViewBase { Q_OBJECT public: //! Constructor explicit CApplicationInfoView(QWidget *parent = nullptr); //! BlackMisc::CApplicationInfoList::otherSwiftVersionsFromDataDirectories int otherSwiftVersionsFromDataDirectories(bool reinitOtherVersions = false); //! Display versions and resize int otherSwiftVersionsFromDataDiretoriesAndResize(bool reinitOtherVersion = false); //! Delete the selected directories void deleteSelectedDataDirectories(); }; //! Menu base class for aircraft model view menus class CApplicationInfoMenu : public Menus::IMenuDelegate { Q_OBJECT public: //! Constructor CApplicationInfoMenu(CApplicationInfoView *modelView) : Menus::IMenuDelegate(modelView) {} //! \copydoc Menus::IMenuDelegate::customMenu virtual void customMenu(Menus::CMenuActions &menuActions); private: //! Model view CApplicationInfoView *view() const; QAction *m_menuActionDeleteDirectory = nullptr; //!< action to delete menu }; } // ns } // ns #endif // guard