Kstars

opsekos.cpp
1 /*
2  SPDX-FileCopyrightText: 2017 Jasem Mutlaq <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "opsekos.h"
8 
9 #include "manager.h"
10 #include "kspaths.h"
11 #include "kstars.h"
12 #include "kstarsdata.h"
13 #include "Options.h"
14 
15 #include <KConfigDialog>
16 
17 OpsEkos::OpsEkos() : QTabWidget(KStars::Instance())
18 {
19  setupUi(this);
20 
21  //Get a pointer to the KConfigDialog
22  m_ConfigDialog = KConfigDialog::exists("settings");
23 
24  connect(clearDSLRInfoB, &QPushButton::clicked, [ = ] ()
25  {
26  KStarsData::Instance()->userdb()->DeleteAllDSLRInfo();
27  });
28 
29  connect(kcfg_EkosTopIcons, &QRadioButton::toggled, this, [this]()
30  {
31  if (Options::ekosTopIcons() != kcfg_EkosTopIcons->isChecked())
32  KSNotification::info(i18n("You must restart KStars for this change to take effect."));
33  });
34 }
void clicked(bool checked)
KSUserDB * userdb()
Definition: kstarsdata.h:214
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void toggled(bool checked)
QString i18n(const char *text, const TYPE &arg...)
static KConfigDialog * exists(const QString &name)
This is the main window for KStars. In addition to the GUI elements, the class contains the program c...
Definition: kstars.h:92
void setupUi(QWidget *widget)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 04:00:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.