Commit d26bea32 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Add button to display INDI logs

parent 043e2e6d
......@@ -12,7 +12,8 @@
#include <QPushButton>
#include <QFileDialog>
//#include <KLineEdit>
#include <QDesktopServices>
#include <KConfigDialog>
#include <QCheckBox>
......@@ -44,6 +45,7 @@ OpsINDI::OpsINDI()
connect(selectFITSDirB, SIGNAL(clicked()), this, SLOT(saveFITSDirectory()));
connect(selectDriversDirB, SIGNAL(clicked()), this, SLOT(saveDriversDirectory()));
connect(showLogsB, SIGNAL(clicked()), this, SLOT(slotShowLogFiles()));
#ifdef Q_OS_WIN
kcfg_indiServer->setEnabled(false);
......@@ -69,3 +71,10 @@ void OpsINDI::saveDriversDirectory()
kcfg_indiDriversDir->setText(dir);
}
void OpsINDI::slotShowLogFiles()
{
QUrl path = QUrl::fromLocalFile(QDir::homePath() + "/.indi/logs");
QDesktopServices::openUrl(path);
}
......@@ -33,6 +33,7 @@ public:
private slots:
void saveFITSDirectory();
void saveDriversDirectory();
void slotShowLogFiles();
private:
KConfigDialog *m_ConfigDialog;
......
......@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>435</width>
<width>444</width>
<height>350</height>
</rect>
</property>
......@@ -379,6 +379,13 @@
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="showLogsB">
<property name="text">
<string>Show INDI Logs</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
......
Supports Markdown
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