File indexing completed on 2024-04-28 15:09:53
0001 /* 0002 SPDX-FileCopyrightText: 2020 Hy Murveit <hy@murveit.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "opsgpg.h" 0008 0009 #include "guide.h" 0010 #include "kstars.h" 0011 #include "Options.h" 0012 #include "internalguide/internalguider.h" 0013 0014 #include <QFrame> 0015 0016 #include <KConfigDialog> 0017 0018 namespace Ekos 0019 { 0020 OpsGPG::OpsGPG(InternalGuider *guiderObject) : QFrame(KStars::Instance()) 0021 { 0022 setupUi(this); 0023 0024 guider = guiderObject; 0025 0026 m_ConfigDialog = KConfigDialog::exists("guidesettings"); 0027 0028 connect(m_ConfigDialog->button(QDialogButtonBox::Apply), SIGNAL(clicked()), SLOT(slotApply())); 0029 connect(m_ConfigDialog->button(QDialogButtonBox::Ok), SIGNAL(clicked()), SLOT(slotApply())); 0030 0031 } 0032 0033 void OpsGPG::slotApply() 0034 { 0035 guider->updateGPGParameters(); 0036 } 0037 }