File indexing completed on 2024-03-24 03:47:39
0001 /* 0002 SPDX-FileCopyrightText: 2008 Prakash Mohan <prakash.mohan@kdemail.net> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QMenu> 0010 0011 /** 0012 * @class ObsListPopupMenu 0013 * The Popup Menu for the observing list in KStars. The menu is sensitive to the 0014 * type of selection in the observing list. 0015 * @author Prakash Mohan 0016 * @version 1.0 0017 */ 0018 class ObsListPopupMenu : public QMenu 0019 { 0020 Q_OBJECT 0021 public: 0022 ObsListPopupMenu(); 0023 0024 virtual ~ObsListPopupMenu() override = default; 0025 0026 /** 0027 * Initialize the popup menus. 0028 * @short initializes the popup menu based on the kind of selection in the observation planner 0029 * @param sessionView true if we are viewing the session, false if we are viewing the wish list 0030 * @param multiSelection true if multiple objects were selected, false if a single object was selected 0031 * @param showScope true if we should show INDI/telescope-related options, false otherwise. 0032 * @note Showing this popup-menu without a selection may lead to crashes. 0033 */ 0034 void initPopupMenu(bool sessionView, bool multiSelection, bool showScope); 0035 };