Commit dd9650ab authored by Samikshan Bairagya's avatar Samikshan Bairagya

Added WILPSettings class for user interface of "Light Pollution Settings" page...

Added WILPSettings class for user interface of "Light Pollution Settings" page in WI settings dialog.
parent 9dadb37b
......@@ -151,6 +151,7 @@ set(libkstarstools_SRCS
tools/whatsinteresting/modelmanager.cpp
tools/whatsinteresting/skyobjitem.cpp
tools/whatsinteresting/wiusersettings.cpp
tools/whatsinteresting/wilpsettings.cpp
tools/whatsinteresting/obsconditions.cpp
tools/flagmanager.cpp
tools/moonphasetool.cpp
......@@ -216,6 +217,8 @@ kde4_add_ui_files(libkstarstools_SRCS
tools/wutdialog.ui
tools/flagmanager.ui
tools/whatsinteresting/wiusersettings.ui
tools/whatsinteresting/wilpsettings.ui
tools/whatsinteresting/wiequipsettings.ui
)
......
#include "wilpsettings.h"
#include "kstars.h"
WILPSettings::WILPSettings(KStars* ks): QFrame(ks), m_Ks(ks)
{
setupUi(this);
connect(kcfg_BortleClass, SIGNAL(valueChanged(int)), this, SLOT(bortleValueChanged(int)));
}
WILPSettings::~WILPSettings()
{}
void WILPSettings::bortleValueChanged(int value)
{
kcfg_BortleClass->setValue(value);
}
#ifndef WI_LP_SETTINGS_H
#define WI_LP_SETTINGS_H
#include "ui_wilpsettings.h"
class KStars;
class WILPSettings : public QFrame, public Ui::WILPSettings
{
Q_OBJECT
public:
WILPSettings(KStars *ks);
~WILPSettings();
private:
KStars *m_Ks;
private slots:
void bortleValueChanged(int value);
};
#endif
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment