Kstars

oal.h
1 /*
2  SPDX-FileCopyrightText: 2009 Prakash Mohan <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QString>
10 #include <QLocale>
11 #ifndef KSTARS_LITE
12 #include <kmessagebox.h>
13 #endif
14 #include <KLocalizedString>
15 #include <KStandardGuiItem>
16 
17 /**
18  * @namespace OAL
19  *
20  * Open Astronomy Log (OAL) is a free and open XML schema definition for all kinds of astronomical observations.
21  * KStars supports this schema and enables an observer to share observations with other observers or move observations among software products.
22  *
23  * The Schema was developed by the German "Fachgruppe für Computerastronomie" (section for computerastronomy) which is a subsection of Germany's largest
24  * astronomy union (VDS - Vereinigung der Sternfreunde e.V.)
25  */
26 namespace OAL
27 {
28 class Log;
29 class Observer;
30 class Observation;
31 class Equipment;
32 class Eyepiece;
33 class Scope;
34 class Filter;
35 class Imager;
36 class Site;
37 class Session;
38 class Target;
39 class Lens;
40 inline int warningOverwrite(QString message)
41 {
42 #ifndef KSTARS_LITE
43  return KMessageBox::warningYesNo(nullptr, message, xi18n("Overwrite"), KStandardGuiItem::overwrite(),
45 #else
46  return 0;
47 #endif
48 }
49 }
QString xi18n(const char *text, const TYPE &arg...)
ButtonCode warningYesNo(QWidget *parent, const QString &text, const QString &title=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const QString &dontAskAgainName=QString(), Options options=Options(Notify|Dangerous))
KGuiItem cancel()
KGuiItem overwrite()
QString message
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.