Kstars

obslistpopupmenu.h
1/*
2 SPDX-FileCopyrightText: 2008 Prakash Mohan <prakash.mohan@kdemail.net>
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 */
18class ObsListPopupMenu : public QMenu
19{
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};
The Popup Menu for the observing list in KStars.
void initPopupMenu(bool sessionView, bool multiSelection, bool showScope)
Initialize the popup menus.
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.