Skip to content

Sky culture converter20062025#101

Merged
MherMnatsakanyan03 merged 23 commits intomasterfrom
SkyCultureConverter20062025
Jun 28, 2025
Merged

Sky culture converter20062025#101
MherMnatsakanyan03 merged 23 commits intomasterfrom
SkyCultureConverter20062025

Conversation

@MherMnatsakanyan03
Copy link
Collaborator

  • Added SkyCultureConverter via "convert" button in start dialog
  • scc plugin gets downloaded via cpm
  • option to disable it via "-DSCM_SHOULD_ENABLE_CONVERTER=Off"
  • automatic disabling when Qt Version 5
  • convertion happens in parrallel thread, so that ui-thread is not stuck possibly

@MherMnatsakanyan03 MherMnatsakanyan03 linked an issue Jun 21, 2025 that may be closed by this pull request
@RivinHD RivinHD removed a link to an issue Jun 21, 2025
SET(SCM_VERSION "0.1.0")

# download CPM.cmake
file(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use uppercase on all cmake 'functions' to align with the other CMakeLists of stellarium

@RivinHD
Copy link
Collaborator

RivinHD commented Jun 21, 2025

I have an issue when I try to convert the .rar file you provided. Is this intended?
image

I also have the issue that the file can not be moved. Use absolute path instead of relative paths (also for the error messages).
image

Copy link
Collaborator

@RivinHD RivinHD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On conversion failure, it somehow deleted my complete stellarium fork. Luckily, if failed on removing the running stellarium.exe.
The tempDirPath and tempDirPath directories are still there.
Probably some mistake in the moveConvertedFiles.
Any maybe also related to the current working driectory of the stellarium.

// Important: the converter checks if the destination folder already exists
// and will not overwrite it, so we do not create it here.
// If the destination folder already exists, the converter will return an error.
const QString tempDestDirPath = QDir::tempPath() + "/skycultures/results/" + stem;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use QDir::separator()

@RivinHD
Copy link
Collaborator

RivinHD commented Jun 24, 2025

The conversion window looks fine now.

@MherMnatsakanyan03 MherMnatsakanyan03 merged commit 4e32ed4 into master Jun 28, 2025
24 of 25 checks passed
@MherMnatsakanyan03 MherMnatsakanyan03 deleted the SkyCultureConverter20062025 branch June 28, 2025 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants