Skip to content

Commit 97841e9

Browse files
committed
remove artwork feature
1 parent 9cc78ad commit 97841e9

3 files changed

Lines changed: 0 additions & 33 deletions

File tree

plugins/SkyCultureMaker/src/gui/ScmConstellationDialog.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,6 @@ void ScmConstellationDialog::loadFromConstellation(scm::ScmConstellation *conste
8787
constellation->hide();
8888
// Load the coordinates and stars to ScmDraw
8989
maker->getScmDraw()->loadLines(constellation->getCoordinates(), constellation->getStars());
90-
91-
// WTF???
92-
// Set up artwork tab
93-
// imageItem->setAnchors(constellation->getArtwork().getAnchors());
94-
// QPixmap image = QPixmap("");
95-
// imageItem->setImage(image);
96-
// imageItem->show();
97-
// ui->artwork_image->centerOn(imageItem);
98-
// ui->artwork_image->fitInView(imageItem, Qt::KeepAspectRatio);
99-
// ui->artwork_image->show();
100-
// updateArtwork();
10190
}
10291

10392
void ScmConstellationDialog::retranslate()

plugins/SkyCultureMaker/src/gui/ScmImageAnchored.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,6 @@ const std::vector<ScmImageAnchor> &ScmImageAnchored::getAnchors() const
116116
return anchorItems;
117117
}
118118

119-
void ScmImageAnchored::setAnchors(const std::array<scm::Anchor, 3> &anchors)
120-
{
121-
for (size_t i = 0; i < anchorItems.size(); ++i)
122-
{
123-
const auto &anchor = anchors[i];
124-
anchorItems[i].setPosDiameter(anchor.position[0], anchor.position[1],
125-
anchorItems[i].boundingRect().width());
126-
anchorItems[i].setStarHip(anchor.hip);
127-
anchorItems[i].setStarNameI18n("");
128-
}
129-
130-
updateAnchors();
131-
}
132-
133119
bool ScmImageAnchored::isImageAnchored()
134120
{
135121
for (const auto &anchor : anchorItems)

plugins/SkyCultureMaker/src/gui/ScmImageAnchored.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include "ScmConstellationArtwork.hpp"
2828
#include "ScmImageAnchor.hpp"
2929
#include "types/Anchor.hpp"
30-
#include <array>
3130
#include <functional>
3231
#include <vector>
3332
#include <QGraphicsPathItem>
@@ -84,13 +83,6 @@ class ScmImageAnchored : public QGraphicsPixmapItem
8483
*/
8584
const std::vector<ScmImageAnchor> &getAnchors() const;
8685

87-
/**
88-
* @brief Sets the anchors of this object.
89-
*
90-
* @param anchors The anchors to set.
91-
*/
92-
void setAnchors(const std::array<scm::Anchor, 3> &anchors);
93-
9486
/**
9587
* @brief Indicates if all anchors have a star they are bound too.
9688
*

0 commit comments

Comments
 (0)