Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KStars
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Education
KStars
Commits
0782ea68
Commit
0782ea68
authored
Jun 16, 2017
by
Jasem Mutlaq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add button to open web manager in browser
parent
35e6bf57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
16 deletions
+67
-16
kstars/ekos/profileeditor.cpp
kstars/ekos/profileeditor.cpp
+11
-0
kstars/ekos/profileeditor.ui
kstars/ekos/profileeditor.ui
+56
-16
No files found.
kstars/ekos/profileeditor.cpp
View file @
0782ea68
...
...
@@ -8,6 +8,7 @@
*/
#include <QDialogButtonBox>
#include <QDesktopServices>
#include <KMessageBox>
...
...
@@ -48,6 +49,14 @@ ProfileEditor::ProfileEditor(QWidget *w) : QDialog(w)
connect
(
buttonBox
,
SIGNAL
(
rejected
()),
this
,
SLOT
(
reject
()));
connect
(
buttonBox
,
SIGNAL
(
accepted
()),
this
,
SLOT
(
saveProfile
()));
connect
(
ui
->
openWebManagerB
,
&
QPushButton
::
clicked
,
this
,
[
this
]()
{
QUrl
url
(
QString
(
"http://"
+
ui
->
remoteHost
->
text
()
+
":8624"
));
QDesktopServices
::
openUrl
(
url
);
});
connect
(
ui
->
INDIWebManagerCheck
,
SIGNAL
(
toggled
(
bool
)),
ui
->
openWebManagerB
,
SLOT
(
setEnabled
(
bool
)));
#ifdef Q_OS_WIN
ui
->
remoteMode
->
setChecked
(
true
);
ui
->
localMode
->
setEnabled
(
false
);
...
...
@@ -221,6 +230,8 @@ void ProfileEditor::setRemoteMode(bool enable)
ui
->
loadSiteCheck
->
setEnabled
(
enable
);
ui
->
INDIWebManagerCheck
->
setEnabled
(
enable
);
if
(
enable
==
false
)
ui
->
INDIWebManagerCheck
->
setChecked
(
false
);
ui
->
INDIWebManagerPort
->
setEnabled
(
enable
);
}
...
...
kstars/ekos/profileeditor.ui
View file @
0782ea68
...
...
@@ -6,11 +6,26 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
3
87
</width>
<height>
2
75
</height>
<width>
3
79
</width>
<height>
2
66
</height>
</rect>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
>
<property
name=
"spacing"
>
<number>
3
</number>
</property>
<property
name=
"leftMargin"
>
<number>
3
</number>
</property>
<property
name=
"topMargin"
>
<number>
3
</number>
</property>
<property
name=
"rightMargin"
>
<number>
3
</number>
</property>
<property
name=
"bottomMargin"
>
<number>
3
</number>
</property>
<item>
<widget
class=
"QGroupBox"
name=
"profileGroup"
>
<property
name=
"title"
>
...
...
@@ -72,6 +87,19 @@
</item>
<item>
<layout
class=
"QGridLayout"
name=
"gridLayout_2"
>
<item
row=
"1"
column=
"0"
colspan=
"3"
>
<widget
class=
"QCheckBox"
name=
"INDIWebManagerCheck"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<property
name=
"toolTip"
>
<string>
Store profile on remote INDI Web Manager. Use INDI Web Manager on the remote device to start/stop INDI server.
</string>
</property>
<property
name=
"text"
>
<string>
INDI Web Manager
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"modeLabel"
>
<property
name=
"text"
>
...
...
@@ -139,19 +167,6 @@
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
colspan=
"3"
>
<widget
class=
"QCheckBox"
name=
"INDIWebManagerCheck"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<property
name=
"toolTip"
>
<string>
Store profile on remote INDI Web Manager. Use INDI Web Manager on the remote device to start/stop INDI server.
</string>
</property>
<property
name=
"text"
>
<string>
INDI Web Manager
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"5"
>
<widget
class=
"QLabel"
name=
"INDIWebManagerPortLabel"
>
<property
name=
"enabled"
>
...
...
@@ -175,6 +190,29 @@
</property>
</widget>
</item>
<item
row=
"1"
column=
"4"
>
<widget
class=
"QPushButton"
name=
"openWebManagerB"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<property
name=
"toolTip"
>
<string>
Open Web Manager in browser
</string>
</property>
<property
name=
"text"
>
<string>
Web Manager
</string>
</property>
<property
name=
"icon"
>
<iconset
resource=
"../data/kstars.qrc"
>
<normaloff>
:/icons/breeze/default/kstars_xplanet.svg
</normaloff>
:/icons/breeze/default/kstars_xplanet.svg
</iconset>
</property>
<property
name=
"iconSize"
>
<size>
<width>
20
</width>
<height>
20
</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
</layout>
...
...
@@ -487,6 +525,8 @@
<tabstop>
aux4Combo
</tabstop>
<tabstop>
loadSiteCheck
</tabstop>
</tabstops>
<resources/>
<resources>
<include
location=
"../data/kstars.qrc"
/>
</resources>
<connections/>
</ui>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment