File indexing completed on 2025-01-19 09:45:51
0001 /* 0002 SPDX-FileCopyrightText: 2009 Prakash Mohan <prakash.mohan@kdemail.net> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QString> 0010 #include <QLocale> 0011 #ifndef KSTARS_LITE 0012 #include <kmessagebox.h> 0013 #endif 0014 #include <KLocalizedString> 0015 #include <KStandardGuiItem> 0016 0017 /** 0018 * @namespace OAL 0019 * 0020 * Open Astronomy Log (OAL) is a free and open XML schema definition for all kinds of astronomical observations. 0021 * KStars supports this schema and enables an observer to share observations with other observers or move observations among software products. 0022 * 0023 * The Schema was developed by the German "Fachgruppe für Computerastronomie" (section for computerastronomy) which is a subsection of Germany's largest 0024 * astronomy union (VDS - Vereinigung der Sternfreunde e.V.) 0025 */ 0026 namespace OAL 0027 { 0028 class Log; 0029 class Observer; 0030 class Observation; 0031 class Equipment; 0032 class Eyepiece; 0033 class Scope; 0034 class DSLRLens; 0035 class Filter; 0036 class Imager; 0037 class Site; 0038 class Session; 0039 class Target; 0040 class Lens; 0041 inline int warningOverwrite(QString message) 0042 { 0043 #ifndef KSTARS_LITE 0044 return KMessageBox::warningYesNo(nullptr, message, xi18n("Overwrite"), KStandardGuiItem::overwrite(), 0045 KStandardGuiItem::cancel()); 0046 #else 0047 return 0; 0048 #endif 0049 } 0050 }