opsekos.cpp 1.24 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
/*  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.
    
 */

#include "opsekos.h"

Jasem Mutlaq's avatar
Jasem Mutlaq committed
13
#include <QPushButton>
14
15
16
17
18
19
20
21
22
23
24
#include <kfiledialog.h>
#include <klineedit.h>
#include <kconfigdialog.h>

#include <QCheckBox>
#include <QStringList>
#include <QComboBox>

#include "Options.h"

#include "kstars.h"
25
#include "ekosmanager.h"
26
27
28
29
30
31
32
33
34
35
36
37
38

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() ) );
39

40
41
42
43
44
45
46
}


OpsEkos::~OpsEkos() {}

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

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

void OpsEkos::slotCancel()
{
  }

#include "opsekos.moc"