opsekos.cpp 1.24 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
/*  INDI Options
    Copyright (C) 2003 Jasem Mutlaq (mutlaqja@ikarustech.com)

    This application is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.
    
 */

Jasem Mutlaq's avatar
Jasem Mutlaq committed
11
#include <QPushButton>
Jasem Mutlaq's avatar
Jasem Mutlaq committed
12
#include <QFileDialog>
13
14
15
16
#include <QCheckBox>
#include <QStringList>
#include <QComboBox>

Jasem Mutlaq's avatar
Jasem Mutlaq committed
17
18
#include <klineedit.h>
#include <KConfigDialog>
19

Jasem Mutlaq's avatar
Jasem Mutlaq committed
20
21
#include "opsekos.h"
#include "Options.h"
22
#include "kstars.h"
23
#include "ekosmanager.h"
24
25
26
27
28
29
30
31
32
33
34
35
36

OpsEkos::OpsEkos( KStars *_ks )
        : QFrame( _ks )
{
    setupUi(this);
    

    //Get a pointer to the KConfigDialog
    m_ConfigDialog = KConfigDialog::exists( "settings" );

    connect( m_ConfigDialog, SIGNAL( applyClicked() ), SLOT( slotApply() ) );
    connect( m_ConfigDialog, SIGNAL( okClicked() ), SLOT( slotApply() ) );
    connect( m_ConfigDialog, SIGNAL( cancelClicked() ), SLOT( slotCancel() ) );
37

38
39
40
41
42
43
44
}


OpsEkos::~OpsEkos() {}

void OpsEkos::slotApply()
{
45
46
    EkosManager *ekosManager = KStars::Instance()->ekosManager();

47
48
    if (ekosManager)
        ekosManager->refreshRemoteDrivers();
49
50
51
52
53
54
55
}

void OpsEkos::slotCancel()
{
  }

#include "opsekos.moc"