Kstars

obslistpopupmenu.h
1 /*
2  SPDX-FileCopyrightText: 2008 Prakash Mohan <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QMenu>
10 
11 /**
12  * @class ObsListPopupMenu
13  * The Popup Menu for the observing list in KStars. The menu is sensitive to the
14  * type of selection in the observing list.
15  * @author Prakash Mohan
16  * @version 1.0
17  */
18 class ObsListPopupMenu : public QMenu
19 {
20  Q_OBJECT
21  public:
23 
24  virtual ~ObsListPopupMenu() override = default;
25 
26  /**
27  * Initialize the popup menus.
28  * @short initializes the popup menu based on the kind of selection in the observation planner
29  * @param sessionView true if we are viewing the session, false if we are viewing the wish list
30  * @param multiSelection true if multiple objects were selected, false if a single object was selected
31  * @param showScope true if we should show INDI/telescope-related options, false otherwise.
32  * @note Showing this popup-menu without a selection may lead to crashes.
33  */
34  void initPopupMenu(bool sessionView, bool multiSelection, bool showScope);
35 };
Q_OBJECTQ_OBJECT
void initPopupMenu(bool sessionView, bool multiSelection, bool showScope)
Initialize the popup menus.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:02:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.