Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
KStars
Commits
87e676a6
Commit
87e676a6
authored
Nov 03, 2016
by
Robert Lancaster
Committed by
Jasem Mutlaq
Nov 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX bundle fixes
parent
65d0badc
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
102 additions
and
16 deletions
+102
-16
kstars/ekos/opsekos.cpp
kstars/ekos/opsekos.cpp
+12
-0
kstars/indi/devicemanager.cpp
kstars/indi/devicemanager.cpp
+1
-1
kstars/indi/drivermanager.cpp
kstars/indi/drivermanager.cpp
+1
-1
kstars/indi/indidriver.cpp
kstars/indi/indidriver.cpp
+1
-1
kstars/indi/opsindi.cpp
kstars/indi/opsindi.cpp
+10
-0
kstars/indi/servermanager.cpp
kstars/indi/servermanager.cpp
+5
-5
kstars/kstarsactions.cpp
kstars/kstarsactions.cpp
+68
-8
kstars/skycomponents/constellationartcomponent.cpp
kstars/skycomponents/constellationartcomponent.cpp
+4
-0
No files found.
kstars/ekos/opsekos.cpp
View file @
87e676a6
...
...
@@ -34,12 +34,24 @@ OpsEkos::OpsEkos()
#ifdef Q_OS_OSX
connect
(
solverInternal
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
toggleSolverInternal
()));
solverInternal
->
setToolTip
(
i18n
(
"Internal or External Plate Solver."
));
if
(
Options
::
astrometrySolverIsInternal
()){
solverInternal
->
setChecked
(
true
);
kcfg_astrometrySolver
->
setEnabled
(
false
);
}
connect
(
configInternal
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
toggleConfigInternal
()));
configInternal
->
setToolTip
(
i18n
(
"Internal or External Astrometry.cfg."
));
if
(
Options
::
astrometryConfFileIsInternal
()){
configInternal
->
setChecked
(
true
);
kcfg_astrometryConfFile
->
setEnabled
(
false
);
}
connect
(
wcsInternal
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
toggleWCSInternal
()));
wcsInternal
->
setToolTip
(
i18n
(
"Internal or External WCS Info."
));
if
(
Options
::
wcsIsInternal
()){
wcsInternal
->
setChecked
(
true
);
kcfg_astrometryWCSInfo
->
setEnabled
(
false
);
}
#else
solverInternal
->
setVisible
(
false
);
configInternal
->
setVisible
(
false
);
...
...
kstars/indi/devicemanager.cpp
View file @
87e676a6
...
...
@@ -86,7 +86,7 @@ void DeviceManager::startServer()
return
;
}
#ifdef Q_OS_OSX
if
(
Options
::
indiServer
()
==
"*
Internal
INDI Server*"
)
if
(
Options
::
indiServer
Is
Internal
()
)
*
serverProcess
<<
QCoreApplication
::
applicationDirPath
()
+
"/indi/indiserver"
;
else
#endif
...
...
kstars/indi/drivermanager.cpp
View file @
87e676a6
...
...
@@ -953,7 +953,7 @@ bool DriverManager::readXMLDrivers()
QString
driversDir
=
Options
::
indiDriversDir
();
#ifdef Q_OS_OSX
if
(
driversDir
==
"*Internal INDI Drivers*"
)
if
(
Options
::
indiDriversAreInternal
()
)
driversDir
=
QCoreApplication
::
applicationDirPath
()
+
"/indi"
;
#endif
...
...
kstars/indi/indidriver.cpp
View file @
87e676a6
...
...
@@ -499,7 +499,7 @@ bool INDIDriver::readXMLDrivers()
QString
driversDir
=
Options
::
indiDriversDir
();
#ifdef Q_OS_OSX
if
(
driversDir
==
"*Internal INDI Drivers*"
)
if
(
Options
::
indiDriversAreInternal
()
)
driversDir
=
QCoreApplication
::
applicationDirPath
()
+
"/indi"
;
#endif
...
...
kstars/indi/opsindi.cpp
View file @
87e676a6
...
...
@@ -50,6 +50,16 @@ OpsINDI::OpsINDI()
indiInternal
->
setToolTip
(
i18n
(
"Internal or External INDI Server."
));
connect
(
driversInternal
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
toggleDriversInternal
()));
driversInternal
->
setToolTip
(
i18n
(
"Internal or External INDI Drivers."
));
if
(
Options
::
indiServerIsInternal
()){
indiInternal
->
setChecked
(
true
);
kcfg_indiServer
->
setEnabled
(
false
);
}
if
(
Options
::
indiDriversAreInternal
()){
driversInternal
->
setChecked
(
true
);
kcfg_indiDriversDir
->
setEnabled
(
false
);
}
#else
indiInternal
->
setVisible
(
false
);
driversInternal
->
setVisible
(
false
);
...
...
kstars/indi/servermanager.cpp
View file @
87e676a6
...
...
@@ -75,10 +75,10 @@ bool ServerManager::start()
serverProcess
=
new
QProcess
(
this
);
#ifdef Q_OS_OSX
QString
driversDir
=
Options
::
indiDriversDir
();
if
(
driversDir
==
"*Internal INDI Drivers*"
)
if
(
Options
::
indiDriversAreInternal
()
)
driversDir
=
QCoreApplication
::
applicationDirPath
()
+
"/indi"
;
QString
indiServerDir
=
Options
::
indiServer
();
if
(
indiServer
Dir
==
"*
Internal
INDI Server*"
)
if
(
Options
::
indiServer
Is
Internal
()
)
indiServerDir
=
QCoreApplication
::
applicationDirPath
()
+
"/indi"
;
else
if
(
indiServerDir
.
length
()
>
10
)
indiServerDir
=
Options
::
indiServer
().
mid
(
0
,
Options
::
indiServer
().
length
()
-
10
);
...
...
@@ -117,7 +117,7 @@ bool ServerManager::start()
serverProcess
->
setReadChannel
(
QProcess
::
StandardError
);
#ifdef Q_OS_OSX
if
(
Options
::
indiServer
()
==
"*
Internal
INDI Server*"
)
if
(
Options
::
indiServer
Is
Internal
()
)
serverProcess
->
start
(
QCoreApplication
::
applicationDirPath
()
+
"/indi/indiserver"
,
args
);
else
#endif
...
...
@@ -174,9 +174,9 @@ bool ServerManager::startDriver(DriverInfo *dv)
#ifdef Q_OS_OSX
if
(
driversDir
==
"*Internal INDI Drivers*"
)
if
(
Options
::
indiServerIsInternal
()
)
driversDir
=
QCoreApplication
::
applicationDirPath
()
+
"/indi"
;
if
(
indiServerDir
==
"*Internal INDI Server*"
)
if
(
Options
::
indiDriversAreInternal
()
)
indiServerDir
=
QCoreApplication
::
applicationDirPath
()
+
"/indi"
;
else
if
(
indiServerDir
.
length
()
>
10
)
indiServerDir
=
Options
::
indiServer
().
mid
(
0
,
Options
::
indiServer
().
length
()
-
10
);
...
...
kstars/kstarsactions.cpp
View file @
87e676a6
...
...
@@ -529,10 +529,25 @@ void KStars::slotTelescopeWizard()
{
#ifdef HAVE_INDI
#ifndef Q_OS_WIN
QString
indiServerDir
=
Options
::
indiServer
();
#ifdef Q_OS_OSX
if
(
Options
::
indiServerIsInternal
())
indiServerDir
=
QCoreApplication
::
applicationDirPath
()
+
"/indi"
;
else
if
(
indiServerDir
.
length
()
>
10
)
indiServerDir
=
Options
::
indiServer
().
mid
(
0
,
Options
::
indiServer
().
length
()
-
10
);
#endif
QStringList
paths
;
paths
<<
"/usr/bin"
<<
"/usr/local/bin"
<<
indiServerDir
;
if
(
QStandardPaths
::
findExecutable
(
"indiserver"
).
isEmpty
())
{
KMessageBox
::
error
(
NULL
,
i18n
(
"Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."
));
return
;
if
(
QStandardPaths
::
findExecutable
(
"indiserver"
,
paths
).
isEmpty
()){
KMessageBox
::
error
(
NULL
,
i18n
(
"Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."
));
return
;
}
}
#endif
...
...
@@ -546,10 +561,25 @@ void KStars::slotINDIPanel()
{
#ifdef HAVE_INDI
#ifndef Q_OS_WIN
QString
indiServerDir
=
Options
::
indiServer
();
#ifdef Q_OS_OSX
if
(
Options
::
indiServerIsInternal
())
indiServerDir
=
QCoreApplication
::
applicationDirPath
()
+
"/indi"
;
else
if
(
indiServerDir
.
length
()
>
10
)
indiServerDir
=
Options
::
indiServer
().
mid
(
0
,
Options
::
indiServer
().
length
()
-
10
);
#endif
QStringList
paths
;
paths
<<
"/usr/bin"
<<
"/usr/local/bin"
<<
indiServerDir
;
if
(
QStandardPaths
::
findExecutable
(
"indiserver"
).
isEmpty
())
{
KMessageBox
::
error
(
NULL
,
i18n
(
"Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."
));
return
;
if
(
QStandardPaths
::
findExecutable
(
"indiserver"
,
paths
).
isEmpty
()){
KMessageBox
::
error
(
NULL
,
i18n
(
"Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."
));
return
;
}
}
#endif
GUIManager
::
Instance
()
->
updateStatus
();
...
...
@@ -560,10 +590,25 @@ void KStars::slotINDIDriver()
{
#ifdef HAVE_INDI
#ifndef Q_OS_WIN
QString
indiServerDir
=
Options
::
indiServer
();
#ifdef Q_OS_OSX
if
(
Options
::
indiServerIsInternal
())
indiServerDir
=
QCoreApplication
::
applicationDirPath
()
+
"/indi"
;
else
if
(
indiServerDir
.
length
()
>
10
)
indiServerDir
=
Options
::
indiServer
().
mid
(
0
,
Options
::
indiServer
().
length
()
-
10
);
#endif
QStringList
paths
;
paths
<<
"/usr/bin"
<<
"/usr/local/bin"
<<
indiServerDir
;
if
(
QStandardPaths
::
findExecutable
(
"indiserver"
).
isEmpty
())
{
KMessageBox
::
error
(
NULL
,
i18n
(
"Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."
));
return
;
if
(
QStandardPaths
::
findExecutable
(
"indiserver"
,
paths
).
isEmpty
()){
KMessageBox
::
error
(
NULL
,
i18n
(
"Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."
));
return
;
}
}
#endif
...
...
@@ -580,10 +625,25 @@ void KStars::slotEkos()
#ifdef HAVE_INDI
#ifndef Q_OS_WIN
QString
indiServerDir
=
Options
::
indiServer
();
#ifdef Q_OS_OSX
if
(
Options
::
indiServerIsInternal
())
indiServerDir
=
QCoreApplication
::
applicationDirPath
()
+
"/indi"
;
else
if
(
indiServerDir
.
length
()
>
10
)
indiServerDir
=
Options
::
indiServer
().
mid
(
0
,
Options
::
indiServer
().
length
()
-
10
);
#endif
QStringList
paths
;
paths
<<
"/usr/bin"
<<
"/usr/local/bin"
<<
indiServerDir
;
if
(
QStandardPaths
::
findExecutable
(
"indiserver"
).
isEmpty
())
{
KMessageBox
::
error
(
NULL
,
i18n
(
"Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."
));
return
;
if
(
QStandardPaths
::
findExecutable
(
"indiserver"
,
paths
).
isEmpty
()){
KMessageBox
::
error
(
NULL
,
i18n
(
"Unable to find INDI server. Please make sure the package that provides the 'indiserver' binary is installed."
));
return
;
}
}
#endif
...
...
kstars/skycomponents/constellationartcomponent.cpp
View file @
87e676a6
...
...
@@ -50,7 +50,11 @@ void ConstellationArtComponent::deleteData()
void
ConstellationArtComponent
::
loadData
(){
if
(
m_ConstList
.
isEmpty
())
{
QSqlDatabase
skydb
=
QSqlDatabase
::
addDatabase
(
"QSQLITE"
,
"skycultures"
);
#ifdef Q_OS_OSX
QString
dbfile
=
KSPaths
::
locate
(
QStandardPaths
::
GenericDataLocation
,
"/skycultures/skycultures.sqlite"
);
#else
QString
dbfile
=
KSPaths
::
locate
(
QStandardPaths
::
GenericDataLocation
,
"skycultures.sqlite"
);
#endif
skydb
.
setDatabaseName
(
dbfile
);
if
(
skydb
.
open
()
==
false
)
...
...
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