Warning, file /graphics/skanlite/src/SaveLocation.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* ============================================================ 0002 * Date : 2010-07-07 0003 * Description : Save location settings dialog. 0004 * 0005 * SPDX-FileCopyrightText: 2008-2012 Kåre Särs <kare.sars@iki .fi> 0006 * SPDX-FileCopyrightText: 2014 Gregor Mitsch : port to KDE5 frameworks 0007 * 0008 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0009 * 0010 * ============================================================ */ 0011 0012 #ifndef SAVE_LOCATION_H 0013 #define SAVE_LOCATION_H 0014 0015 #include <QDialog> 0016 0017 class Ui_SaveLocation; 0018 class QShowEvent; 0019 0020 class SaveLocation : public QDialog 0021 { 0022 Q_OBJECT 0023 public: 0024 explicit SaveLocation(QWidget *parent = nullptr); 0025 ~SaveLocation() override; 0026 0027 QUrl folderUrl() const; 0028 QString imagePrefix() const; 0029 QString imageMimetype() const; 0030 QString imageSuffix() const; 0031 int startNumber() const; 0032 int startNumberMax() const; 0033 0034 void setFolderUrl(const QUrl &url); 0035 void setImagePrefix(const QString &prefix); 0036 void setImageFormat(const QString &suffix); 0037 void setImageFormatIndex(int index); 0038 void addImageFormat(const QString &type, const QString &mimetype); 0039 void setStartNumber(int number); 0040 0041 void setOpenRequesterOnShow(bool open); 0042 0043 protected: 0044 void showEvent(QShowEvent *event) override; 0045 0046 private Q_SLOTS: 0047 void updateGui(); 0048 0049 private: 0050 Ui_SaveLocation *m_ui = nullptr; 0051 bool m_openRequesterOnShow = false; 0052 }; 0053 0054 #endif 0055