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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
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
Robert Lancaster
KStars
Commits
c7ddf47b
Commit
c7ddf47b
authored
Oct 20, 2020
by
Robert Lancaster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing a bug in the getAstrometryDataDirs function. Adding descriptions
for the profiles
parent
541de8aa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
kstars/auxiliary/ksutils.cpp
kstars/auxiliary/ksutils.cpp
+2
-2
kstars/ekos/align/optionsprofileeditor.cpp
kstars/ekos/align/optionsprofileeditor.cpp
+6
-1
kstars/ekos/align/optionsprofileeditor.ui
kstars/ekos/align/optionsprofileeditor.ui
+14
-1
No files found.
kstars/auxiliary/ksutils.cpp
View file @
c7ddf47b
...
...
@@ -1488,8 +1488,8 @@ QStringList getAstrometryDataDirs()
}
else
{
//This removes directories that do not exist.
optionsDataDir
.
remove
(
optionsDataDirs
.
at
(
dir
)
);
//This removes directories that do not exist
from the list
.
optionsDataDir
s
.
removeAt
(
dir
);
dir
--
;
updated
=
true
;
}
...
...
kstars/ekos/align/optionsprofileeditor.cpp
View file @
c7ddf47b
...
...
@@ -80,6 +80,8 @@ OptionsProfileEditor::OptionsProfileEditor(QWidget *parent, bool showSolveOption
astrometryOptions
->
setVisible
(
false
);
connect
(
m_ConfigDialog
->
button
(
QDialogButtonBox
::
Apply
),
SIGNAL
(
clicked
()),
SLOT
(
slotApply
()));
connect
(
m_ConfigDialog
->
button
(
QDialogButtonBox
::
Ok
),
SIGNAL
(
clicked
()),
SLOT
(
slotApply
()));
loadOptionsProfile
();
}
void
OptionsProfileEditor
::
connectOptionsProfileComboBox
()
...
...
@@ -136,6 +138,7 @@ SSolver::Parameters OptionsProfileEditor::getSettingsFromUI()
{
SSolver
::
Parameters
params
;
params
.
listName
=
"Custom"
;
params
.
description
=
description
->
toPlainText
();
//These are to pass the parameters to the internal sextractor
params
.
apertureShape
=
(
SSolver
::
Shape
)
apertureShape
->
currentIndex
();
params
.
kron_fact
=
kron_fact
->
text
().
toDouble
();
...
...
@@ -178,6 +181,8 @@ SSolver::Parameters OptionsProfileEditor::getSettingsFromUI()
void
OptionsProfileEditor
::
sendSettingsToUI
(
SSolver
::
Parameters
a
)
{
description
->
setText
(
a
.
description
);
//Sextractor Settings
apertureShape
->
setCurrentIndex
(
a
.
apertureShape
);
...
...
@@ -327,7 +332,7 @@ void OptionsProfileEditor::slotApply()
int
index
=
optionsProfile
->
currentIndex
();
SSolver
::
Parameters
currentParams
=
getSettingsFromUI
();
SSolver
::
Parameters
savedParams
=
optionsList
.
at
(
index
);
if
(
!
(
currentParams
==
savedParams
))
if
(
!
(
currentParams
==
savedParams
)
||
currentParams
.
description
!=
savedParams
.
description
)
{
currentParams
.
listName
=
savedParams
.
listName
;
optionsList
.
replace
(
index
,
currentParams
);
...
...
kstars/ekos/align/optionsprofileeditor.ui
View file @
c7ddf47b
...
...
@@ -7,7 +7,7 @@
<x>
0
</x>
<y>
0
</y>
<width>
589
</width>
<height>
684
</height>
<height>
733
</height>
</rect>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_5"
>
...
...
@@ -119,6 +119,19 @@
</item>
</layout>
</item>
<item>
<widget
class=
"QTextEdit"
name=
"description"
>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
50
</height>
</size>
</property>
<property
name=
"toolTip"
>
<string>
Description of the selected profile
</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
...
...
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