Kstars
opsastrometryindexfiles.cpp
59 connect(indexLocations, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
64 connect(checkBox, &QCheckBox::clicked, this, &OpsAstrometryIndexFiles::downloadOrDeleteIndexFiles);
179 FOVOut->setText(QString("%1' x %2'").arg(QString::number(fov_w, 'f', 2), QString::number(fov_h, 'f', 2)));
192 folderDetails->setText(i18n("Downloads Disabled, this is not a directory, it is a list of all index files."));
292 //This loop goes over all the directories and adds a stylesheet to change the look of the checkbox text
294 //Index File download function to check if they really want to do install a file that is installed.
368 void OpsAstrometryIndexFiles::downloadIndexFile(const QString &URL, const QString &fileN, QCheckBox *checkBox,
379 QProgressBar *indexDownloadProgress = findChild<QProgressBar *>(indexSeriesName.replace('-', '_').left(10) + "_progress");
380 QLabel *indexDownloadInfo = findChild<QLabel *>(indexSeriesName.replace('-', '_').left(10) + "_info");
381 QPushButton *indexDownloadCancel = findChild<QPushButton *>(indexSeriesName.replace('-', '_').left(10) + "_cancel");
382 QLabel *indexDownloadPerc = findChild<QLabel *>(indexSeriesName.replace('-', '_').left(10) + "_perc");
390 indexDownloadInfo->setText("(" + QString::number(currentIndex) + '/' + QString::number(maxIndex + 1) + ") ");
431 i18n("Download Timed out. Either the network is not fast enough, the file is not accessible, or you are not connected."));
489 qDebug() << Q_FUNC_INFO << "Filesize: " << downloadedFileSize << ", time: " << dtime << ", inst speed: " << downloadedFileSize / dtime <<
509 void OpsAstrometryIndexFiles::setDownloadInfoVisible(QString indexSeriesName, QCheckBox *checkBox, bool set)
513 QProgressBar *indexDownloadProgress = findChild<QProgressBar *>(indexSeriesName.replace('-', '_').left(10) + "_progress");
514 QLabel *indexDownloadInfo = findChild<QLabel *>(indexSeriesName.replace('-', '_').left(10) + "_info");
515 QPushButton *indexDownloadCancel = findChild<QPushButton *>(indexSeriesName.replace('-', '_').left(10) + "_cancel");
516 QLabel *indexDownloadPerc = findChild<QLabel *>(indexSeriesName.replace('-', '_').left(10) + "_perc");
548 i18n("The selected Index File directory does not exist. Please either create it or choose another."));
559 if(!checkBox->styleSheet().isEmpty()) //This means that the checkbox has a stylesheet so the index file was installed someplace.
562 nullptr, i18n("The file %1 already exists in another directory. Are you sure you want to download it to this directory as well?",
void append(const T &value)
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const const
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
void setText(const QString &)
QString number(int n, int base)
WriteOnly
ButtonCode warningContinueCancel(QWidget *parent, const QString &text, const QString &title=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Notify)
Ekos is an advanced Astrophotography tool for Linux. It is based on a modular extensible framework to...
Definition: align.cpp:70
int count(const T &value) const const
QNetworkReply::NetworkError error() const const
bool contains(const QString &str, Qt::CaseSensitivity cs) const const
QString url(QUrl::FormattingOptions options) const const
void clicked(bool checked)
QObject * sender() const const
void setStyleSheet(const QString &styleSheet)
bool openUrl(const QUrl &url)
QString homePath()
void setChecked(bool)
KIOFILEWIDGETS_EXPORT QStringList list(const QString &fileClass)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
ShowDirsOnly
KGuiItem cancel()
virtual void setVisible(bool visible)
void deleteLater()
QString i18n(const char *text, const TYPE &arg...)
RemovePath
void setMaximum(int maximum)
bool removeOne(const T &value)
void textChanged(const QString &text)
void timeout()
bool isEmpty() const const
QUrl fromLocalFile(const QString &localFile)
qint64 size() const const
bool remove(const QString &fileName)
This is the main window for KStars. In addition to the GUI elements, the class contains the program c...
Definition: kstars.h:92
qint64 elapsed() const const
void setupUi(QWidget *widget)
QString & replace(int position, int n, QChar after)
QString label(StandardShortcut id)
bool isFinished() const const
void setIcon(const QIcon &icon)
KIOFILEWIDGETS_EXPORT QString dir(const QString &fileClass)
void setToolTip(const QString &)
QString left(int n) const const
NoError
bool isWritable() const const
void currentIndexChanged(int index)
KGuiItem cont()
int size() const const
void finished()
QByteArray readAll()
QStringList entryList(QDir::Filters filters, QDir::SortFlags sort) const const
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
void setValue(int value)
QString getExistingDirectory(QWidget *parent, const QString &caption, const QString &dir, QFileDialog::Options options)
QString mid(int position, int n) const const
QObject * parent() const const
char * data()
virtual void abort()=0
void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 04:00:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 04:00:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.