mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-06 17:13:58 +00:00
Add default path configration for screenshots
This commit is contained in:
@@ -82,6 +82,7 @@ include(src/third-party/Qt-Color-Widgets//color_widgets.pri)
|
||||
DEFINES += QAPPLICATION_CLASS=QApplication
|
||||
|
||||
SOURCES += src/main.cpp \
|
||||
src/config/filepathconfiguration.cpp \
|
||||
src/widgets/capture/buttonhandler.cpp \
|
||||
src/widgets/infowindow.cpp \
|
||||
src/config/configwindow.cpp \
|
||||
@@ -157,6 +158,7 @@ SOURCES += src/main.cpp \
|
||||
src/widgets/panel/sidepanelwidget.cpp
|
||||
|
||||
HEADERS += src/widgets/capture/buttonhandler.h \
|
||||
src/config/filepathconfiguration.h \
|
||||
src/widgets/infowindow.h \
|
||||
src/config/configwindow.h \
|
||||
src/widgets/capture/capturewidget.h \
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "src/widgets/capture/capturebutton.h"
|
||||
#include "src/config/geneneralconf.h"
|
||||
#include "src/config/filenameeditor.h"
|
||||
#include "src/config/filepathconfiguration.h"
|
||||
#include "src/config/strftimechooserwidget.h"
|
||||
#include "src/config/visualseditor.h"
|
||||
#include "src/utils/globalvalues.h"
|
||||
@@ -35,8 +36,7 @@
|
||||
|
||||
ConfigWindow::ConfigWindow(QWidget *parent) : QTabWidget(parent) {
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
const int size = GlobalValues::buttonBaseSize() * 12;
|
||||
setMinimumSize(size, size);
|
||||
setMinimumSize(GlobalValues::buttonBaseSize() * 14, GlobalValues::buttonBaseSize() * 12);
|
||||
setWindowIcon(QIcon(":img/app/flameshot.svg"));
|
||||
setWindowTitle(tr("Configuration"));
|
||||
|
||||
@@ -67,6 +67,11 @@ ConfigWindow::ConfigWindow(QWidget *parent) : QTabWidget(parent) {
|
||||
addTab(m_filenameEditor, QIcon(modifier + "name_edition.svg"),
|
||||
tr("Filename Editor"));
|
||||
|
||||
// filepath
|
||||
m_filePathConfiguration = new FilePathConfiguration();
|
||||
addTab(m_filePathConfiguration, QIcon(modifier + "name_edition.svg"),
|
||||
tr("Path Default"));
|
||||
|
||||
// general
|
||||
m_generalConfig = new GeneneralConf();
|
||||
addTab(m_generalConfig, QIcon(modifier + "config.svg"),
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <QTabWidget>
|
||||
|
||||
class FileNameEditor;
|
||||
class FilePathConfiguration;
|
||||
class GeneneralConf;
|
||||
class QFileSystemWatcher;
|
||||
class VisualsEditor;
|
||||
@@ -37,6 +38,7 @@ protected:
|
||||
|
||||
private:
|
||||
FileNameEditor *m_filenameEditor;
|
||||
FilePathConfiguration *m_filePathConfiguration;
|
||||
GeneneralConf *m_generalConfig;
|
||||
VisualsEditor *m_visuals;
|
||||
QFileSystemWatcher *m_configWatcher;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
FileNameEditor::FileNameEditor(QWidget *parent) : QWidget(parent) {
|
||||
initWidgets();
|
||||
initLayout();
|
||||
initLayout();
|
||||
}
|
||||
|
||||
void FileNameEditor::initLayout() {
|
||||
|
||||
77
src/config/filepathconfiguration.cpp
Normal file
77
src/config/filepathconfiguration.cpp
Normal file
@@ -0,0 +1,77 @@
|
||||
#include "filepathconfiguration.h"
|
||||
#include "src/utils/filenamehandler.h"
|
||||
#include "src/config/strftimechooserwidget.h"
|
||||
#include "src/utils/confighandler.h"
|
||||
#include <QCheckBox>
|
||||
#include <QFileDialog>
|
||||
#include <QDir>
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QLineEdit>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include "src/utils/confighandler.h"
|
||||
|
||||
|
||||
FilePathConfiguration::FilePathConfiguration(QWidget *parent) : QWidget(parent) {
|
||||
initWidgets();
|
||||
initLayout();
|
||||
}
|
||||
|
||||
void FilePathConfiguration::initLayout() {
|
||||
m_layout = new QVBoxLayout(this);
|
||||
|
||||
m_layout->addWidget(new QLabel(tr("Screenshot path default:")));
|
||||
m_layout->addWidget(m_screenshotPathFixed);
|
||||
m_layout->addWidget(m_screenshotPathFixedDefault);
|
||||
m_layout->addStretch();
|
||||
QHBoxLayout *horizScreenshotButtonsLayout = new QHBoxLayout();
|
||||
horizScreenshotButtonsLayout->addStretch();
|
||||
horizScreenshotButtonsLayout->addWidget(m_screenshotPathFixedClear);
|
||||
horizScreenshotButtonsLayout->addWidget(m_screenshotPathFixedBrowse);
|
||||
m_layout->addLayout(horizScreenshotButtonsLayout);
|
||||
}
|
||||
|
||||
void FilePathConfiguration::initWidgets() {
|
||||
ConfigHandler config;
|
||||
|
||||
// Screenshot path default
|
||||
m_screenshotPathFixed = new QCheckBox(tr("Use fixed path for screenshots to save"), this);
|
||||
m_screenshotPathFixed->setChecked(!config.savePathFixed().isEmpty());
|
||||
connect(m_screenshotPathFixed, SIGNAL(toggled(bool)), this, SLOT(sreenshotPathFixed()));
|
||||
m_screenshotPathFixedDefault = new QLineEdit(this);
|
||||
m_screenshotPathFixedDefault->setText(config.savePathFixed());
|
||||
m_screenshotPathFixedDefault->setDisabled(config.savePathFixed().isEmpty());
|
||||
m_screenshotPathFixedBrowse = new QPushButton(tr("Browse"), this);
|
||||
m_screenshotPathFixedBrowse->setDisabled(config.savePathFixed().isEmpty());
|
||||
connect(m_screenshotPathFixedBrowse, SIGNAL(released()),this, SLOT (screenshotPathFixedSet()));
|
||||
m_screenshotPathFixedClear = new QPushButton(tr("Clear"), this);
|
||||
m_screenshotPathFixedClear->setDisabled(config.savePathFixed().isEmpty());
|
||||
connect(m_screenshotPathFixedClear, SIGNAL(released()),this, SLOT (screenshotPathFixedClear()));
|
||||
}
|
||||
|
||||
void FilePathConfiguration::sreenshotPathFixed() {
|
||||
bool status = m_screenshotPathFixedDefault->isEnabled();
|
||||
m_screenshotPathFixedDefault->setEnabled(!status);
|
||||
m_screenshotPathFixedBrowse->setEnabled(!status);
|
||||
m_screenshotPathFixedClear->setEnabled(!status);
|
||||
screenshotPathFixedClear();
|
||||
}
|
||||
|
||||
void FilePathConfiguration::screenshotPathFixedSet() {
|
||||
QFileDialog *dirDialog = new QFileDialog(this, tr("Select default path for Screenshots"));
|
||||
dirDialog->setFileMode(QFileDialog::DirectoryOnly);
|
||||
dirDialog->setOption(QFileDialog::ShowDirsOnly, true);
|
||||
QString filePath = dirDialog->getOpenFileName();
|
||||
QDir d = QFileInfo(filePath).absoluteDir();
|
||||
QString absolutePath = d.absolutePath();
|
||||
m_screenshotPathFixedDefault->setText(absolutePath);
|
||||
ConfigHandler config;
|
||||
config.setSavePathFixed(absolutePath);
|
||||
}
|
||||
|
||||
void FilePathConfiguration::screenshotPathFixedClear() {
|
||||
ConfigHandler config;
|
||||
m_screenshotPathFixedDefault->setText("");
|
||||
config.setSavePathFixed(m_screenshotPathFixedDefault->text());
|
||||
}
|
||||
33
src/config/filepathconfiguration.h
Normal file
33
src/config/filepathconfiguration.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
//#include <QPointer>
|
||||
|
||||
class QVBoxLayout;
|
||||
class QLineEdit;
|
||||
class QCheckBox;
|
||||
class FileNameHandler;
|
||||
class QPushButton;
|
||||
|
||||
class FilePathConfiguration : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit FilePathConfiguration(QWidget *parent = nullptr);
|
||||
|
||||
private:
|
||||
QVBoxLayout *m_layout;
|
||||
QCheckBox *m_screenshotPathFixed;
|
||||
QLineEdit *m_screenshotPathFixedDefault;
|
||||
QPushButton *m_screenshotPathFixedBrowse;
|
||||
QPushButton *m_screenshotPathFixedClear;
|
||||
|
||||
void initLayout();
|
||||
void initWidgets();
|
||||
|
||||
public slots:
|
||||
|
||||
private slots:
|
||||
void sreenshotPathFixed();
|
||||
void screenshotPathFixedSet();
|
||||
void screenshotPathFixedClear();
|
||||
};
|
||||
@@ -118,11 +118,26 @@ void ConfigHandler::setUserColors(const QVector<QColor> &l) {
|
||||
}
|
||||
|
||||
QString ConfigHandler::savePathValue() {
|
||||
return m_settings.value(QStringLiteral("savePath")).toString();
|
||||
QString savePath = m_settings.value(QStringLiteral("savePathFixed")).toString();
|
||||
if( savePath.isEmpty() ) {
|
||||
savePath = m_settings.value(QStringLiteral("savePath")).toString();
|
||||
}
|
||||
return savePath;
|
||||
}
|
||||
|
||||
void ConfigHandler::setSavePath(const QString &savePath) {
|
||||
m_settings.setValue(QStringLiteral("savePath"), savePath);
|
||||
QString savePathFixed = m_settings.value(QStringLiteral("savePathFixed")).toString();
|
||||
if( savePathFixed.isEmpty() ) {
|
||||
m_settings.setValue(QStringLiteral("savePath"), savePath);
|
||||
}
|
||||
}
|
||||
|
||||
QString ConfigHandler::savePathFixed() {
|
||||
return m_settings.value(QStringLiteral("savePathFixed")).toString();
|
||||
}
|
||||
|
||||
void ConfigHandler::setSavePathFixed(const QString &savePathFixed) {
|
||||
m_settings.setValue(QStringLiteral("savePathFixed"), savePathFixed);
|
||||
}
|
||||
|
||||
QColor ConfigHandler::uiMainColorValue() {
|
||||
|
||||
@@ -33,6 +33,8 @@ public:
|
||||
|
||||
QString savePathValue();
|
||||
void setSavePath(const QString &);
|
||||
QString savePathFixed();
|
||||
void setSavePathFixed(const QString &);
|
||||
|
||||
QColor uiMainColorValue();
|
||||
void setUIMainColor(const QColor &);
|
||||
|
||||
@@ -172,6 +172,11 @@ Press Space to open the side panel.</source>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>General</translation>
|
||||
</message>
|
||||
@@ -286,6 +291,34 @@ Press Space to open the side panel.</source>
|
||||
<translation>Elimina el patró</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">Neteja</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -175,6 +175,11 @@ Drücke die Leertaste um das Seitenmenü zu öffnen.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>Allgemein</translation>
|
||||
</message>
|
||||
@@ -289,6 +294,34 @@ Drücke die Leertaste um das Seitenmenü zu öffnen.</translation>
|
||||
<translation>Löscht den Namen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">Löschen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -175,6 +175,11 @@ Presiona Espacio para abrir el panel lateral.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>General</translation>
|
||||
</message>
|
||||
@@ -289,6 +294,34 @@ Presiona Espacio para abrir el panel lateral.</translation>
|
||||
<translation>Borra el patrón</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">Limpiar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -175,6 +175,11 @@ Appuyer sur Espace pour ouvrir le panneau latéral.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>Général</translation>
|
||||
</message>
|
||||
@@ -289,6 +294,34 @@ Appuyer sur Espace pour ouvrir le panneau latéral.</translation>
|
||||
<translation>Supprime le nom</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">Purger</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -154,6 +154,10 @@ Press Space to open the side panel.</source>
|
||||
<source>General</source>
|
||||
<translation>Általános</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Controller</name>
|
||||
@@ -257,6 +261,29 @@ Press Space to open the side panel.</source>
|
||||
<translation type="vanished">Képernyőmentés</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">Töröl</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FlameshotDBusAdapter</name>
|
||||
<message>
|
||||
|
||||
@@ -175,6 +175,11 @@ Enter を押すと画面をキャプチャー。
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>全般</translation>
|
||||
</message>
|
||||
@@ -289,6 +294,34 @@ Enter を押すと画面をキャプチャー。
|
||||
<translation>名前を削除する</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">消去</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -171,6 +171,11 @@ Press Space to open the side panel.</source>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>ზოგადი</translation>
|
||||
</message>
|
||||
@@ -285,6 +290,34 @@ Press Space to open the side panel.</source>
|
||||
<translation>სახელის წაშლა</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">გაწმენდა</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -175,6 +175,11 @@ Druk op spatie om het zijpaneel te openen.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>Algemeen</translation>
|
||||
</message>
|
||||
@@ -289,6 +294,34 @@ Druk op spatie om het zijpaneel te openen.</translation>
|
||||
<translation>Wist de naam</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">Wissen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -174,6 +174,11 @@ Spacja, aby pokazać panel boczny.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>Ogólne</translation>
|
||||
</message>
|
||||
@@ -288,6 +293,34 @@ Spacja, aby pokazać panel boczny.</translation>
|
||||
<translation>Czyści wzorzec</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">Wyczyść</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -175,6 +175,11 @@ Pressione espaço abrir o painel lateral.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>Geral</translation>
|
||||
</message>
|
||||
@@ -289,6 +294,34 @@ Pressione espaço abrir o painel lateral.</translation>
|
||||
<translation>Deleta o nome</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">Limpar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -175,6 +175,11 @@ Press Space to open the side panel.</source>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation>Путь</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>Общие</translation>
|
||||
</message>
|
||||
@@ -289,6 +294,34 @@ Press Space to open the side panel.</source>
|
||||
<translation>Удаляет имя</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation>Путь скриншотов по умолчанию</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation>Использовать фиксированный путь для скриншотов</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation>Обзор</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation>Очистить</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation>Выбрать путь по умлочанию для скриншотов</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -175,6 +175,11 @@ Stlačte medzerník pre otvorenie postranného panelu.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>Všeobecné</translation>
|
||||
</message>
|
||||
@@ -289,6 +294,34 @@ Stlačte medzerník pre otvorenie postranného panelu.</translation>
|
||||
<translation>Vymaže meno</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">Vyčistiť</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -175,6 +175,11 @@ Press Space to open the side panel.</source>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>Опште</translation>
|
||||
</message>
|
||||
@@ -289,6 +294,34 @@ Press Space to open the side panel.</source>
|
||||
<translation>Брише име</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">Очисти</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -175,6 +175,11 @@ Yan paneli açmak için Boşluk tuşuna basın.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>Genel</translation>
|
||||
</message>
|
||||
@@ -289,6 +294,34 @@ Yan paneli açmak için Boşluk tuşuna basın.</translation>
|
||||
<translation>İsmi siler</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">Temizle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -175,6 +175,11 @@ Press Space to open the side panel.</source>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation>Шлях</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>Загальне</translation>
|
||||
</message>
|
||||
@@ -289,6 +294,34 @@ Press Space to open the side panel.</source>
|
||||
<translation>Видаляє ім'я</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation>Шлях за замовчуванням</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation>Використовувати шлях за замовчуванням</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation>Обрати</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation>Очистити</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation>Обрати шлях за замовчуванням</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -176,6 +176,11 @@ Press Space to open the side panel.</source>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>常规</translation>
|
||||
</message>
|
||||
@@ -290,6 +295,34 @@ Press Space to open the side panel.</source>
|
||||
<translation>删除这个名字</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">清空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -171,6 +171,11 @@ Press Space to open the side panel.</source>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="73"/>
|
||||
<source>Path Default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/configwindow.cpp" line="78"/>
|
||||
<source>General</source>
|
||||
<translation>一般</translation>
|
||||
</message>
|
||||
@@ -285,6 +290,34 @@ Press Space to open the side panel.</source>
|
||||
<translation>刪除這個名稱</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FilePathConfiguration</name>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="24"/>
|
||||
<source>Screenshot path default:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="39"/>
|
||||
<source>Use fixed path for screenshots to save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="45"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="48"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished">清空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/config/filepathconfiguration.cpp" line="62"/>
|
||||
<source>Select default path for Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GeneneralConf</name>
|
||||
<message>
|
||||
|
||||
@@ -27,8 +27,12 @@ BASE_VERSION_CUR_EXT=$(cat ./win_setup/flameshot.iss |grep "AppVersion=[0-9]\+\.
|
||||
echo "BASE_VERSION_CUR_EXT: ${BASE_VERSION_CUR_EXT}"
|
||||
sed -i "s/AppVersion=${BASE_VERSION_CUR_EXT}/AppVersion=${BASE_VERSION_NEW_EXT}/g" ./win_setup/flameshot.iss
|
||||
|
||||
# Run qmake and generate Makefile
|
||||
qmake
|
||||
|
||||
# update qt translations, ignore if no `lupdate` utils is installed
|
||||
lupdate -recursive ./ -ts ./translations/* || true
|
||||
|
||||
# push current release
|
||||
git add flameshot.pro ./win_setup/flameshot.iss appveyor.yml .travis.yml
|
||||
git commit -m "Update version to ${BASE_VERSION_NEW}"
|
||||
|
||||
Reference in New Issue
Block a user