Skip to content

Commit d04bfd1

Browse files
authored
chore: sync upstream (no squash)
2 parents 574b0f8 + 15741d2 commit d04bfd1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+48599
-25952
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,42 @@ jobs:
275275
# When using rsync, you can define copyback: false to not copy files back from the VM in to the host.
276276
copyback: false
277277
prepare: |
278-
pkg install -y cmake git eigen glm exiv2 nlopt fast_float md4c qxlsx perl5 xorg-vfbserver gettext qt5-charts qt5-concurrent qt5-core qt5-gui qt5-network qt5-opengl \
279-
qt5-widgets qt5-multimedia qt5-webengine qt5-buildtools qt5-qmake qt5-script qt5-testlib qt5-linguisttools
278+
pkg install -y cmake git eigen glm exiv2 nlopt fast_float md4c qxlsx perl5 xorg-vfbserver gettext qt5
279+
280+
run: |
281+
set -e -x
282+
export DISPLAY=:0
283+
mkdir builds
284+
cd builds
285+
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSTELLARIUM_RELEASE_BUILD=Off -DENABLE_TESTING=On "${{ github.workspace }}"
286+
make -j3
287+
Xvfb :0 -ac -screen 0 1024x768x24+32 >/dev/null 2>&1 &
288+
sleep 3
289+
ctest --output-on-failure
290+
sleep 1
291+
pkill Xvfb
292+
293+
# CI on FreeBSD (Qt6)
294+
ci-freebsd-qt6:
295+
name: "FreeBSD (x86_64; qt6)"
296+
runs-on: ubuntu-latest
297+
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex')"
298+
299+
steps:
300+
- name: Checkout repository
301+
uses: actions/checkout@v4
302+
303+
- name: Build and run unit tests in FreeBSD
304+
uses: vmactions/freebsd-vm@v1
305+
id: freebsd-qt6
306+
with:
307+
release: "14.2"
308+
# Use sh shell
309+
usesh: true
310+
# When using rsync, you can define copyback: false to not copy files back from the VM in to the host.
311+
copyback: false
312+
prepare: |
313+
pkg install -y cmake git eigen glm exiv2 nlopt fast_float md4c qxlsx-qt6 perl5 xorg-vfbserver gettext qt6
280314
281315
run: |
282316
set -e -x

BUILDING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ To install all of these, use the following commands:
9191

9292
```
9393
sudo apt install build-essential cmake zlib1g-dev libgl1-mesa-dev libdrm-dev gcc g++ \
94-
graphviz doxygen gettext git libgps-dev \
94+
graphviz doxygen gettext git libgps-dev libqt5qxlsx-dev \
9595
gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-pulseaudio \
9696
gstreamer1.0-libav gstreamer1.0-vaapi qtbase5-dev \
9797
qtbase5-private-dev qtscript5-dev libqt5svg5-dev qttools5-dev-tools \

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ MESSAGE(STATUS "Platform: ${CMAKE_SYSTEM} (${CMAKE_SYSTEM_PROCESSOR})")
134134
SET(ENABLE_TESTING 0 CACHE BOOL "Define whether the unit tests should be activated.")
135135
SET(ENABLE_LTO 0 CACHE BOOL "Define whether the Link Time Optimization should be activated.")
136136
SET(ENABLE_PCH 1 CACHE BOOL "Define whether to use precompiled headers.")
137+
SET(ENABLE_CCACHE 1 CACHE BOOL "Define whether to use ccache if possible.")
137138

138139
IF(NOT CMAKE_BUILD_TYPE)
139140
SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug GProf Valgrind ASan UBSan Release RelWithDebInfo MinSizeRel." FORCE)
@@ -197,7 +198,7 @@ IF(OPENGL_DEBUG_LOGGING)
197198
ENDIF()
198199

199200
# Use ccache if possible
200-
IF(NOT WIN32)
201+
IF(NOT WIN32 AND ENABLE_CCACHE)
201202
FIND_PROGRAM(CCACHE_PROGRAM ccache)
202203
IF(CCACHE_PROGRAM)
203204
MESSAGE(STATUS "Found ccache ${CCACHE_PROGRAM}")

data/gui/normalStyle.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ QSizeGrip {
5555
QTextEdit,
5656
QPlainTextEdit,
5757
QListWidget,
58+
QTreeWidget,
5859
QLineEdit {
5960
border: 1px solid rgb(0, 0, 0);
6061
border-radius: 0;
@@ -67,6 +68,7 @@ QLineEdit {
6768

6869
QTextEdit:disabled,
6970
QListWidget:disabled,
71+
QTreeWidget:disabled,
7072
QLineEdit:disabled {
7173
background: rgb(90, 90, 90);
7274
}
@@ -424,69 +426,79 @@ QGroupBox::indicator {
424426
* indicators, but there's a problem with spacing discussed at
425427
* https://stackoverflow.com/q/77422984 */
426428
QListWidget::indicator,
429+
QTreeWidget::indicator,
427430
QListView::indicator {
428431
margin: 0;
429432
background: none;
430433
}
431434

432435
QCheckBox::indicator:checked,
433436
QListWidget::indicator:checked,
437+
QTreeWidget::indicator:checked,
434438
QListView::indicator:checked,
435439
QGroupBox::indicator:checked {
436440
image: url(:/graphicGui/uieCheckbox-checked.png);
437441
}
438442

439443
QCheckBox::indicator:indeterminate,
440444
QListWidget::indicator:indeterminate,
445+
QTreeWidget::indicator:indeterminate,
441446
QListView::indicator:indeterminate,
442447
QGroupBox::indicator:indeterminate {
443448
image: url(:/graphicGui/uieCheckbox-partial.png);
444449
}
445450

446451
QCheckBox::indicator:unchecked,
447452
QListWidget::indicator:unchecked,
453+
QTreeWidget::indicator:unchecked,
448454
QListView::indicator:unchecked,
449455
QGroupBox::indicator:unchecked {
450456
image: url(:/graphicGui/uieCheckbox-unchecked.png);
451457
}
452458

453459
QCheckBox::indicator:hover:checked,
454460
QListWidget::indicator:hover:checked,
461+
QTreeWidget::indicator:hover:checked,
455462
QListView::indicator:hover:checked,
456463
QGroupBox::indicator:hover:checked {
457464
image: url(:/graphicGui/uieCheckbox-checked-hover.png);
458465
}
459466

460467
QCheckBox::indicator:hover:indeterminate,
461468
QListWidget::indicator:hover:indeterminate,
469+
QTreeWidget::indicator:hover:indeterminate,
462470
QListView::indicator:hover:indeterminate,
463471
QGroupBox::indicator:hover:indeterminate {
464472
image: url(:/graphicGui/uieCheckbox-partial-hover.png);
465473
}
466474

467475
QCheckBox::indicator:hover:unchecked,
468476
QListWidget::indicator:hover:unchecked,
477+
QTreeWidget::indicator:hover:unchecked,
469478
QListView::indicator:hover:unchecked,
470479
QGroupBox::indicator:hover:unchecked {
471480
image: url(:/graphicGui/uieCheckbox-unchecked-hover.png);
472481
}
473482

474483
QCheckBox::indicator:checked:disabled,
475484
QListWidget::indicator:checked:disabled,
485+
QTreeWidget::indicator:checked:disabled,
476486
QListView::indicator:checked:disabled,
477487
QGroupBox::indicator:checked:disabled {
478488
image: url(:/graphicGui/uieCheckbox-checked-disabled.png);
479489
}
480490

481491
QCheckBox::indicator:indeterminate:disabled,
482492
QListWidget::indicator:indeterminate:disabled,
493+
QTreeWidget::indicator:indeterminate:disabled,
483494
QListView::indicator:indeterminate:disabled,
484495
QGroupBox::indicator:indeterminate:disabled {
485496
image: url(:/graphicGui/uieCheckbox-partial-disabled.png);
486497
}
487498

488499
QCheckBox::indicator:unchecked:disabled,
489500
QListWidget::indicator:unchecked:disabled,
501+
QTreeWidget::indicator:unchecked:disabled,
490502
QListView::indicator:unchecked:disabled,
491503
QGroupBox::indicator:unchecked:disabled {
492504
image: url(:/graphicGui/uieCheckbox-unchecked-disabled.png);

guide/app_config_ini.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ \subsection{\big[devel\big]}
391391
convert\_dso\_catalog & bool & Set to \emph{true} to convert file \file{catalog.txt}
392392
into file \file{catalog.dat}. Default value: \emph{false}.\\%\midrule
393393
convert\_dso\_decimal\_coord & bool & Set to \emph{true} to use decimal values for coordinates
394-
in source catalog. Default value: \emph{true}.\\\bottomrule
394+
in source catalog. Default value: \emph{true}.\\\midrule
395+
markers\_to\_logfile & bool & Write marker coordinates to logfile. Useful when developing dark constellations. See p.~\pageref{SC:constellations:dark:markers}\\\bottomrule
395396
\end{tabularx}
396397

397398
\subsection{\big[dso\_catalog\_filters\big]}

guide/ch_skycultures.tex

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ \subsection{Constellations}
525525
\end{description}
526526

527527

528-
\paragraph{Drawing dark constellations}\index{constellations!dark}
528+
\paragraph{Drawing dark constellations}\index{constellations!dark}\label{SC:constellations:dark:markers}
529529
The outlines \newFeature{25.2}of figures like the ``Emu in the Sky'' cannot be described with connect-the-dot star patterns,
530530
as they are formed from the absence of luminous patterns. We need to describe them using coordinate lists.
531531
To make the process less tedious, we can extend setting Markers (see \ref{sec:tour:markers}).
@@ -547,6 +547,14 @@ \subsection{Constellations}
547547
While the IAU has defined 88 constellation areas in 1930, constellations of other cultures are not as clearly defined. These areas can help analyzing historical records.
548548
Note that a point may lie in zero, one or more than one constellation area(s) when it overlaps two or even more adjacent figures.
549549

550+
Technically, the stars are projected perspectively onto a tangential plane to the celestial sphere
551+
at the balance point of all involved stars.
552+
Then a simple \emph{package wrapping} algorithm \citep[ch.25]{Sedgewick:AlgorithmsInC} can be applied to find the convex hull.
553+
Straight lines in the projection are great circle arcs.
554+
Note that this limits constellation size to less than 180 degrees in the sky,
555+
outlying stars will currently be discarded.
556+
(Please report an error if this affects you, so we might find a better solution.)
557+
550558
This functionality is an advanced topic mostly used by sky culture researchers \citep[e.g.][94-98]{Hoffmann2017a} who are also not afraid of calling scripting functions (see ch.~\ref{ch:scripting}),
551559
and is therefore hidden from beginning users. To make use of it, edit your \file{config.ini} and add a key:
552560
\begin{configfile}

guide/guide.bib

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,3 +2237,12 @@ @book{Hoffmann2017a
22372237
doi = {10.1007/978-3-658-18683-8}
22382238
}
22392239

2240+
@book{Sedgewick:AlgorithmsInC,
2241+
author = {{Sedgewick}, Robert},
2242+
publisher = {Addison-Wesley Publishing Company},
2243+
title = {{Algorithms in C}},
2244+
year = {1990},
2245+
address = {Reading, MA/Menlo Park, CA/New York et al.},
2246+
OPTisbn = {},
2247+
series = {Computer Science},
2248+
}

po/stellarium-remotecontrol/ca.po

Lines changed: 43 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
# Gemma Domènech <info@gemmadomenech.com>, 2022
99
# Pascual Martínez Reig <pascualmralcoi@gmail.com>, 2022
1010
# Susanna Pujol, 2022
11-
# Daniel Alomar <daniel.adastra@gmail.com>, 2025
1211
# cardinot <mcardinot@gmail.com>, 2025
12+
# Daniel Alomar <daniel.adastra@gmail.com>, 2025
1313
#
1414
#, fuzzy
1515
msgid ""
1616
msgstr ""
1717
"Project-Id-Version: stellarium-remotecontrol\n"
1818
"Report-Msgid-Bugs-To: stellarium@googlegroups.com\n"
19-
"POT-Creation-Date: 2025-06-02 10:04+0700\n"
19+
"POT-Creation-Date: 2025-07-14 13:19+0700\n"
2020
"PO-Revision-Date: 2022-10-05 14:25+0000\n"
21-
"Last-Translator: cardinot <mcardinot@gmail.com>, 2025\n"
21+
"Last-Translator: Daniel Alomar <daniel.adastra@gmail.com>, 2025\n"
2222
"Language-Team: Catalan (https://app.transifex.com/stellarium/teams/80998/ca/)\n"
2323
"MIME-Version: 1.0\n"
2424
"Content-Type: text/plain; charset=UTF-8\n"
@@ -112,8 +112,8 @@ msgid "Could not retrieve landscape list"
112112
msgstr "No puc recuperar la llista de paisatges"
113113

114114
#: plugins/RemoteControl/webroot/js/plugins/scenery3d.js:22
115-
#: plugins/RemoteControl/webroot/js/ui/scripts.js:76 index.html:750
116-
#: index.html:812 tablet7in.html:835 tablet7in.html:895
115+
#: plugins/RemoteControl/webroot/js/ui/scripts.js:76 index.html:761
116+
#: index.html:823 tablet7in.html:845 tablet7in.html:905
117117
msgid "-none-"
118118
msgstr "-cap-"
119119

@@ -547,83 +547,95 @@ msgstr "Mostra l'art en la brillantor"
547547
msgid "Show boundaries with thickness"
548548
msgstr "Mostrar contorns amb gruix"
549549

550-
#: index.html:732 tablet7in.html:805
551-
msgid "Use native names for planets"
552-
msgstr "Feu servir noms nadius per als planetes"
550+
#: index.html:733 tablet7in.html:805
551+
msgid "Show zodiac with thickness"
552+
msgstr "Mostrar el zodíac amb gruix"
553+
554+
#: index.html:737 tablet7in.html:809
555+
msgid "Show lunar stations/mansions with thickness"
556+
msgstr "Mostra les estacions/mansions lunars amb gruix"
553557

554-
#: index.html:733 tablet7in.html:806
558+
#: index.html:741 tablet7in.html:813
559+
msgid "Short labels"
560+
msgstr "Etiquetes curtes"
561+
562+
#: index.html:742 tablet7in.html:814
555563
msgid "Constellation selection isolated"
556564
msgstr "Selecció de constel·lació aïllada"
557565

558-
#: index.html:737 tablet7in.html:810
566+
#: index.html:743 tablet7in.html:815
567+
msgid "Only last selected"
568+
msgstr "Només l’última selecció"
569+
570+
#: index.html:748 tablet7in.html:820
559571
msgid "Current sky culture"
560572
msgstr "Cultura del cel actual"
561573

562-
#: index.html:750 tablet7in.html:835
574+
#: index.html:761 tablet7in.html:845
563575
msgid "Active script:"
564576
msgstr "Script actiu:"
565577

566-
#: index.html:751 tablet7in.html:836
578+
#: index.html:762 tablet7in.html:846
567579
msgid "Run selected script"
568580
msgstr "Executar script seleccionat"
569581

570-
#: index.html:751 tablet7in.html:836
582+
#: index.html:762 tablet7in.html:846
571583
msgid "Stop current script"
572584
msgstr "Aturar script actual"
573585

574-
#: index.html:756 tablet7in.html:43 tablet7in.html:820
586+
#: index.html:767 tablet7in.html:43 tablet7in.html:830
575587
msgid "Actions"
576588
msgstr "Accions"
577589

578-
#: index.html:760 tablet7in.html:824
590+
#: index.html:771 tablet7in.html:834
579591
msgid "Run/toggle action"
580592
msgstr "Executar/commutar acció"
581593

582-
#: index.html:771 tablet7in.html:859
594+
#: index.html:782 tablet7in.html:869
583595
msgid "Planet map"
584596
msgstr "Mapa de planeta"
585597

586-
#: index.html:772 tablet7in.html:860
598+
#: index.html:783 tablet7in.html:870
587599
msgid "Planet map pointer"
588600
msgstr "Punter del mapa del planeta"
589601

590-
#: index.html:776 tablet7in.html:864
602+
#: index.html:787 tablet7in.html:874
591603
msgid "Type to search location"
592604
msgstr "Escrigui per cercar ubicació"
593605

594-
#: index.html:810 tablet7in.html:893
606+
#: index.html:821 tablet7in.html:903
595607
msgid "Interaction"
596608
msgstr "Interacció"
597609

598-
#: index.html:811 tablet7in.html:894
610+
#: index.html:822 tablet7in.html:904
599611
msgid "Current scene:"
600612
msgstr "Escena actual:"
601613

602-
#: index.html:814 tablet7in.html:897
614+
#: index.html:825 tablet7in.html:907
603615
msgid "View controls"
604616
msgstr "Controls de vista"
605617

606-
#: index.html:820 tablet7in.html:903
618+
#: index.html:831 tablet7in.html:913
607619
msgid "Movement controls"
608620
msgstr "Controls de moviment"
609621

610-
#: index.html:832 tablet7in.html:915
622+
#: index.html:843 tablet7in.html:925
611623
msgid "Torchlight"
612624
msgstr "Llum de torxa"
613625

614-
#: index.html:839 tablet7in.html:922
626+
#: index.html:850 tablet7in.html:932
615627
msgid "Scene selection"
616628
msgstr "Selecció d'escena"
617629

618-
#: index.html:843 tablet7in.html:926
630+
#: index.html:854 tablet7in.html:936
619631
msgid "Load selected scene"
620632
msgstr "Carregar escena seleccionada"
621633

622-
#: index.html:869 tablet7in.html:953
634+
#: index.html:880 tablet7in.html:963
623635
msgid "No response from server"
624636
msgstr "Ńo hi ha resposta del sevidor"
625637

626-
#: index.html:870 tablet7in.html:954
638+
#: index.html:881 tablet7in.html:964
627639
msgid "No response from server for %1 seconds. Is Stellarium still running?"
628640
msgstr ""
629641
"No hi ha resposta del servidor des de fa %1 segons. Està Stellarium encara "
@@ -769,18 +781,18 @@ msgstr "Aquari"
769781
msgid "Pisces"
770782
msgstr "Peixos"
771783

772-
#: tablet7in.html:844
784+
#: tablet7in.html:854
773785
msgid "Favorites"
774786
msgstr "Favorits"
775787

776-
#: tablet7in.html:846
788+
#: tablet7in.html:856
777789
msgid "Show 1"
778790
msgstr "Mostrar 1"
779791

780-
#: tablet7in.html:847
792+
#: tablet7in.html:857
781793
msgid "Remove Labels and Images"
782794
msgstr "Eliminar Etiquetes i Imatges"
783795

784-
#: tablet7in.html:847
796+
#: tablet7in.html:857
785797
msgid "Cleanup Screen"
786798
msgstr "Neteja Pantalla"

0 commit comments

Comments
 (0)