File indexing completed on 2024-04-21 03:43:41
0001 /* 0002 SPDX-FileCopyrightText: 2017 Jasem Mutlaq <mutlaqja@ikarustech.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "opsekos.h" 0008 0009 #include "manager.h" 0010 #include "kspaths.h" 0011 #include "kstars.h" 0012 #include "kstarsdata.h" 0013 #include "Options.h" 0014 0015 #include <KConfigDialog> 0016 0017 OpsEkos::OpsEkos() : QTabWidget(KStars::Instance()) 0018 { 0019 setupUi(this); 0020 0021 //Get a pointer to the KConfigDialog 0022 m_ConfigDialog = KConfigDialog::exists("settings"); 0023 0024 connect(clearDSLRInfoB, &QPushButton::clicked, [ = ] () 0025 { 0026 KStarsData::Instance()->userdb()->DeleteAllDSLRInfo(); 0027 }); 0028 0029 connect(kcfg_EkosTopIcons, &QRadioButton::toggled, this, [this]() 0030 { 0031 if (Options::ekosTopIcons() != kcfg_EkosTopIcons->isChecked()) 0032 KSNotification::info(i18n("You must restart KStars for this change to take effect.")); 0033 }); 0034 }