opsekos.cpp 1.28 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
#include <KConfigDialog>
18

Jasem Mutlaq's avatar
Jasem Mutlaq committed
19
20
#include "opsekos.h"
#include "Options.h"
21
#include "kstarsdata.h"
22
#include "ekosmanager.h"
23

24
OpsEkos::OpsEkos()
25
        : QTabWidget( KStars::Instance() )
26
27
28
29
30
31
{
    setupUi(this);
    
    //Get a pointer to the KConfigDialog
    m_ConfigDialog = KConfigDialog::exists( "settings" );

Jasem Mutlaq's avatar
Jasem Mutlaq committed
32
33
34
    connect( m_ConfigDialog->button(QDialogButtonBox::Apply), SIGNAL( clicked() ), SLOT( slotApply() ) );
    connect( m_ConfigDialog->button(QDialogButtonBox::Ok), SIGNAL( clicked() ), SLOT( slotApply() ) );
    connect( m_ConfigDialog->button(QDialogButtonBox::Cancel), SIGNAL( clicked() ), SLOT( slotCancel() ) );
35

36
37
38
39
40
41
42
}


OpsEkos::~OpsEkos() {}

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

45
46
    if (ekosManager)
        ekosManager->refreshRemoteDrivers();
47
48
49
50
}

void OpsEkos::slotCancel()
{
51
}
52

53