Commit eaf99522 authored by Ingemar Ceicer's avatar Ingemar Ceicer

AppImage1

parent a7cc6e27
11:25 August 8, 2018
13:59 August 26, 2018
Version 0.0.1
Initial release
11:25 8 augusti 2018
13:59 26 augusti 2018
Version 0.0.1
Initial release
11:25 August 8, 2018
13:59 August 26, 2018
Version 0.0.1
Initial release
11:25 8 augusti 2018
13:59 26 augusti 2018
Version 0.0.1
Initial release
11:25 August 8, 2018
13:59 August 26, 2018
Version 0.0.1
Initial release
11:25 8 augusti 2018
13:59 26 augusti 2018
Version 0.0.1
Initial release
# Generated by linuxdeployqt
# https://github.com/probonopd/linuxdeployqt/
[Paths]
Prefix = ./
Plugins = plugins
Imports = qml
Qml2Imports = qml
11:25 August 8, 2018
13:59 August 26, 2018
Version 0.0.1
Initial release
11:25 8 augusti 2018
13:59 26 augusti 2018
Version 0.0.1
Initial release
10:47 August 5, 2018
Version 0.0.6
Bug fixes
08:44 July 30, 2018
Version 0.0.5
Preset Save / Open path
10:05 June 26, 2018
Version 0.0.4
Window icon on msgbox for update
20:28 June 7, 2018
Version 0.0.3
Delete all settings files
17:15 April 14, 2018
Version 0.0.2
Function pointers
11:16 Mars 28, 2018
13:59 August 26, 2018
Version 0.0.1
Initial release
10:47 5 augusti 2018
Version 0.0.6
Buggfixar
08:44 30 juli 2018
Version 0.0.5
Förvald Spara / Öppna sökväg
10:05 26 juni 2018
Version 0.0.4
Ikon på Uppdatera fönstret
17:15 14 april 2018
Version 0.0.2
Funktionspekare
11:16 28 mars 2018
13:59 26 augusti 2018
Version 0.0.1
Initial release
10:47 August 5, 2018
Version 0.0.6
Bug fixes
08:44 July 30, 2018
Version 0.0.5
Preset Save / Open path
10:05 June 26, 2018
Version 0.0.4
Window icon on msgbox for update
20:28 June 7, 2018
Version 0.0.3
Delete all settings files
17:15 April 14, 2018
Version 0.0.2
Function pointers
11:16 Mars 28, 2018
Version 0.0.1
Initial release
13:59 August 26, 2018
Version 0.0.1
Initial release
10:47 5 augusti 2018
Version 0.0.6
Buggfixar
08:44 30 juli 2018
Version 0.0.5
Förvald Spara / Öppna sökväg
10:05 26 juni 2018
Version 0.0.4
Ikon på Uppdatera fönstret
17:15 14 april 2018
Version 0.0.2
Funktionspekare
11:16 28 mars 2018
Version 0.0.1
Initial release
13:59 26 augusti 2018
Version 0.0.1
Initial release
10:47 August 5, 2018
Version 0.0.6
Bug fixes
08:44 July 30, 2018
Version 0.0.5
Preset Save / Open path
10:05 June 26, 2018
Version 0.0.4
Window icon on msgbox for update
20:28 June 7, 2018
Version 0.0.3
Delete all settings files
17:15 April 14, 2018
Version 0.0.2
Function pointers
11:16 Mars 28, 2018
13:59 August 26, 2018
Version 0.0.1
Initial release
10:47 5 augusti 2018
Version 0.0.6
Buggfixar
08:44 30 juli 2018
Version 0.0.5
Förvald Spara / Öppna sökväg
10:05 26 juni 2018
Version 0.0.4
Ikon på Uppdatera fönstret
17:15 14 april 2018
Version 0.0.2
Funktionspekare
11:16 28 mars 2018
13:59 26 augusti 2018
Version 0.0.1
Initial release
......@@ -43,8 +43,8 @@
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
# DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += QT_FATAL_WARNINGS
DEFINES += QT_DEPRECATED_WARNINGS
# DEFINES += QT_FATAL_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
......
......@@ -204,8 +204,7 @@ void MainWindow::setStartConfig()
if(!childKeys.empty()) {
settings.beginGroup("Files");
foreach(const QString &childKey, childKeys) {
foreach(const QString & childKey, childKeys) {
filename = settings.value(childKey).toString();
if(QFileInfo::exists(filename)) {
......@@ -213,19 +212,25 @@ void MainWindow::setStartConfig()
modified << false;
}
}
settings.endGroup();
}
settings.beginGroup("WordWrap");
QString wordwrap = settings.value("wordwrap", "No").toString();
settings.endGroup();
settings.beginGroup("Font");
const QString ceditFont = settings.value("font", MONOFACE_FONT).toString();
const int fontsize = settings.value("fontSize", "10").toInt();
settings.endGroup();
QFont font(ceditFont);
font.setPointSize(fontsize);
int a = 0;
for(int i = 0; i < tab.size(); i++) {
filename = tab.at(i);
QFile inputFile(filename);
auto *plainedit = new QPlainTextEdit;
plainedit->setFont(font);
if(wordwrap == "No")
plainedit->setWordWrapMode(QTextOption::NoWrap);
......@@ -253,7 +258,7 @@ void MainWindow::setStartConfig()
void MainWindow::setEndConfig(QCloseEvent *event)
bool MainWindow::setEndConfig(QCloseEvent *event)
{
bool allfalse = modified.contains(true);
......@@ -275,7 +280,7 @@ void MainWindow::setEndConfig(QCloseEvent *event)
case QMessageBox::Yes:
// Yes was clicked
event->ignore();
return;
return true;
default:
// should never be reached
......@@ -302,13 +307,14 @@ void MainWindow::setEndConfig(QCloseEvent *event)
settings.endGroup();
event->accept();
return false;
}
// private:
void MainWindow::setEndConfig()
bool MainWindow::setEndConfig()
{
bool allfalse = modified.contains(true);
......@@ -324,11 +330,12 @@ void MainWindow::setEndConfig()
switch(ret) {
case QMessageBox::No:
// No was clicked
modified.clear();
break;
case QMessageBox::Yes:
// Yes was clicked
return;
return true;
default:
// should never be reached
......@@ -355,12 +362,14 @@ void MainWindow::setEndConfig()
settings.endGroup();
close();
return false;
}
void MainWindow::startaom()
{
QApplication::quit();
const QString EXECUTE = QDir::toNativeSeparators("\"" + QCoreApplication::applicationDirPath() + "/" + QFileInfo(QCoreApplication::applicationFilePath()).fileName() + "\"");
QProcess::startDetached(EXECUTE);
}
......@@ -373,14 +382,13 @@ void MainWindow::dropEvent(QDropEvent *ev)
{
ev->accept();
QStringList surls;
foreach(QUrl url, ev->mimeData()->urls()) {
surls << url.toLocalFile();
}
open(&surls);
}
void MainWindow::dragEnterEvent(QDragEnterEvent *ev)
{
ev->accept();
}
......@@ -80,8 +80,8 @@ protected:
private:
Ui::MainWindow *ui;
void setStartConfig();
void setEndConfig();
void setEndConfig(QCloseEvent *event);
bool setEndConfig();
bool setEndConfig(QCloseEvent *event);
void startaom();
void open();
......
......@@ -68,7 +68,7 @@ void MainWindow::ny()
settings.beginGroup("Font");
const QString ceditFont = settings.value("font", MONOFACE_FONT).toString();
const int fontsize = settings.value("fontSize", "12").toInt();
const int fontsize = settings.value("fontSize", "10").toInt();
settings.endGroup();
QFont font(ceditFont);
font.setPointSize(fontsize);
......@@ -146,7 +146,7 @@ void MainWindow::open()
settings.beginGroup("Font");
const QString ceditFont = settings.value("font", MONOFACE_FONT).toString();
const int fontsize = settings.value("fontSize", "12").toInt();
const int fontsize = settings.value("fontSize", "10").toInt();
settings.endGroup();
QFont font(ceditFont);
font.setPointSize(fontsize);
......@@ -182,7 +182,7 @@ void MainWindow::open(const QStringList * filenames)
settings.setIniCodec("UTF-8");
settings.beginGroup("Font");
const QString ceditFont = settings.value("font", MONOFACE_FONT).toString();
const int fontsize = settings.value("fontSize", "12").toInt();
const int fontsize = settings.value("fontSize", "10").toInt();
settings.endGroup();
settings.beginGroup("WordWrap");
QString wordwrap = settings.value("wordwrap", "No").toString();
......@@ -447,9 +447,13 @@ void MainWindow::english()
tr("Cancel"), nullptr, 2)) {
case 0:
settings.setValue("lang", "en_US");
settings.endGroup();
setEndConfig();
QApplication::quit();
bool exit = setEndConfig();
if(exit) {
return;
}
// QApplication::quit();
startaom();
}
}
......@@ -470,9 +474,13 @@ void MainWindow::swedish()
tr("Cancel"), nullptr, 2)) {
case 0:
settings.setValue("lang", "sv_SE");
settings.endGroup();
setEndConfig();
QApplication::quit();
bool exit = setEndConfig();
if(exit) {
return;
}
// QApplication::quit();
startaom();
}
}
......
......@@ -270,7 +270,7 @@ void Tools::setStartConfig()
ui->spbFontSize->setMaximum(FONT_SIZE_MAXIMUM);
settings.beginGroup("Font");
const QString ceditFont = settings.value("font", MONOFACE_FONT).toString();
const int fontSize = settings.value("fontSize", "12").toInt();
const int fontSize = settings.value("fontSize", "10").toInt();
settings.endGroup();
ui->fontComboBox->setCurrentFont(ceditFont);
ui->spbFontSize->setValue(fontSize);
......
......@@ -324,7 +324,7 @@ Det belev fel när versionen kolldes.</translation>
<translation>Ta bort alla inställningar och stäng programmet</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="235"/>
<location filename="mainwindow.cpp" line="240"/>
<location filename="mainwindow_priv_slots.cpp" line="76"/>
<location filename="mainwindow_priv_slots.cpp" line="154"/>
<location filename="mainwindow_priv_slots.cpp" line="208"/>
......@@ -332,14 +332,14 @@ Det belev fel när versionen kolldes.</translation>
<translation>Ny </translation>
</message>
<message>
<location filename="mainwindow.cpp" line="263"/>
<location filename="mainwindow.cpp" line="318"/>
<location filename="mainwindow.cpp" line="268"/>
<location filename="mainwindow.cpp" line="324"/>
<source>There are files that have not been saved.</source>
<translation>Det finns filer som inte har sparats.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="264"/>
<location filename="mainwindow.cpp" line="319"/>
<location filename="mainwindow.cpp" line="269"/>
<location filename="mainwindow.cpp" line="325"/>
<source>Do you want to save the changes before closing the application?</source>
<translation>Vill du spara ändringarna innan programmet stängs?</translation>
</message>
......@@ -367,30 +367,30 @@ Det belev fel när versionen kolldes.</translation>
</message>
<message>
<location filename="mainwindow_priv_slots.cpp" line="445"/>
<location filename="mainwindow_priv_slots.cpp" line="468"/>
<location filename="mainwindow_priv_slots.cpp" line="472"/>
<source>The program must be restarted for the new language settings to take effect.</source>
<translation>Programmet måste startas om för att de nya språkinställningarna ska träda i kraft.</translation>
</message>
<message>
<location filename="mainwindow_priv_slots.cpp" line="446"/>
<location filename="mainwindow_priv_slots.cpp" line="469"/>
<location filename="mainwindow_priv_slots.cpp" line="473"/>
<source>Restart Now</source>
<translation>Starta om nu</translation>
</message>
<message>
<location filename="mainwindow_priv_slots.cpp" line="447"/>
<location filename="mainwindow_priv_slots.cpp" line="470"/>
<location filename="mainwindow_priv_slots.cpp" line="509"/>
<location filename="mainwindow_priv_slots.cpp" line="474"/>
<location filename="mainwindow_priv_slots.cpp" line="517"/>
<source>Cancel</source>
<translation>Avbryt</translation>
</message>
<message>
<location filename="mainwindow_priv_slots.cpp" line="507"/>
<location filename="mainwindow_priv_slots.cpp" line="515"/>
<source>All program settings will be deleted. The program will shut down.</source>
<translation>Alla programmets inställningar kommer att tas bort. Programmet kommer att stängas ner.</translation>
</message>
<message>
<location filename="mainwindow_priv_slots.cpp" line="508"/>
<location filename="mainwindow_priv_slots.cpp" line="516"/>
<source>Delete all settings</source>
<translation>Ta bort alla inställningar</translation>
</message>
......@@ -552,89 +552,89 @@ Det belev fel när versionen kolldes.</translation>
<translatorcomment>Stäng</translatorcomment>
<translation>Stäng</translation>
</message>
<message>
<location filename="tools.cpp" line="204"/>
<location filename="tools.cpp" line="236"/>
<source>Last used</source>
<translation>Senast använd</translation>
</message>
<message>
<location filename="tools.cpp" line="205"/>
<location filename="tools.cpp" line="225"/>
<location filename="tools.cpp" line="237"/>
<location filename="tools.cpp" line="257"/>
<source>Home</source>
<translation>Hem</translation>
</message>
<message>
<location filename="tools.cpp" line="206"/>
<location filename="tools.cpp" line="226"/>
<location filename="tools.cpp" line="238"/>
<location filename="tools.cpp" line="258"/>
<source>Download</source>
<translation>Hämtade filer</translation>
</message>
<message>
<location filename="tools.cpp" line="207"/>
<location filename="tools.cpp" line="227"/>
<location filename="tools.cpp" line="239"/>
<location filename="tools.cpp" line="259"/>
<source>Desktop</source>
<translation>Skrivbord</translation>
<source>Last used</source>
<translation>Senast använd</translation>
</message>
<message>
<location filename="tools.cpp" line="208"/>
<location filename="tools.cpp" line="228"/>
<location filename="tools.cpp" line="240"/>
<location filename="tools.cpp" line="260"/>
<source>Documents</source>
<translation>Dokument</translation>
<source>Home</source>
<translation>Hem</translation>
</message>
<message>
<location filename="tools.cpp" line="209"/>
<location filename="tools.cpp" line="229"/>
<location filename="tools.cpp" line="241"/>
<location filename="tools.cpp" line="261"/>
<source>Music</source>
<translation>Musik</translation>
<source>Download</source>
<translation>Hämtade filer</translation>
</message>
<message>
<location filename="tools.cpp" line="210"/>
<location filename="tools.cpp" line="230"/>
<location filename="tools.cpp" line="242"/>
<location filename="tools.cpp" line="262"/>
<source>Movies</source>
<translation>Video</translation>
<source>Desktop</source>
<translation>Skrivbord</translation>
</message>
<message>
<location filename="tools.cpp" line="211"/>
<location filename="tools.cpp" line="231"/>
<location filename="tools.cpp" line="243"/>
<location filename="tools.cpp" line="263"/>
<source>Pictures</source>
<translation>Bilder</translation>
<source>Documents</source>
<translation>Dokument</translation>
</message>
<message>
<location filename="tools.cpp" line="212"/>
<location filename="tools.cpp" line="232"/>
<location filename="tools.cpp" line="244"/>
<location filename="tools.cpp" line="264"/>
<source>Temp</source>
<translation>Temp</translation>
<source>Music</source>
<translation>Musik</translation>
</message>
<message>
<location filename="tools.cpp" line="213"/>
<location filename="tools.cpp" line="233"/>
<location filename="tools.cpp" line="245"/>
<location filename="tools.cpp" line="265"/>
<source>Movies</source>
<translation>Video</translation>
</message>
<message>
<location filename="tools.cpp" line="214"/>
<location filename="tools.cpp" line="234"/>
<location filename="tools.cpp" line="246"/>
<location filename="tools.cpp" line="266"/>
<source>Pictures</source>
<translation>Bilder</translation>
</message>
<message>
<location filename="tools.cpp" line="215"/>
<location filename="tools.cpp" line="235"/>
<location filename="tools.cpp" line="247"/>
<location filename="tools.cpp" line="267"/>
<source>Temp</source>
<translation>Temp</translation>
</message>
<message>
<location filename="tools.cpp" line="216"/>
<location filename="tools.cpp" line="248"/>
<source>Custom</source>
<translation>Anpassad</translation>
</message>
<message>
<location filename="tools.cpp" line="304"/>
<location filename="tools.cpp" line="307"/>
<source>Open Directory</source>
<translation>Öppna folder</translation>
</message>
<message>
<location filename="tools.cpp" line="357"/>
<location filename="tools.cpp" line="360"/>
<source>Save Directory</source>
<translation>Spara folder</translation>
</message>
......@@ -645,8 +645,8 @@ Det belev fel när versionen kolldes.</translation>
<translation>Reserv</translation>
</message>
<message>
<location filename="tools.cpp" line="224"/>
<location filename="tools.cpp" line="256"/>
<location filename="tools.cpp" line="227"/>
<location filename="tools.cpp" line="259"/>
<source>No fallback</source>
<translation>Ingen reserv</translation>
</message>
......
......@@ -319,7 +319,7 @@ There was an error when the version was checked.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="235"/>
<location filename="mainwindow.cpp" line="240"/>
<location filename="mainwindow_priv_slots.cpp" line="76"/>
<location filename="mainwindow_priv_slots.cpp" line="154"/>
<location filename="mainwindow_priv_slots.cpp" line="208"/>
......@@ -327,14 +327,14 @@ There was an error when the version was checked.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="263"/>
<location filename="mainwindow.cpp" line="318"/>
<location filename="mainwindow.cpp" line="268"/>
<location filename="mainwindow.cpp" line="324"/>
<source>There are files that have not been saved.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="264"/>
<location filename="mainwindow.cpp" line="319"/>
<location filename="mainwindow.cpp" line="269"/>
<location filename="mainwindow.cpp" line="325"/>
<source>Do you want to save the changes before closing the application?</source>
<translation type="unfinished"></translation>
</message>
......@@ -362,30 +362,30 @@ There was an error when the version was checked.</source>
</message>
<message>
<location filename="mainwindow_priv_slots.cpp" line="445"/>
<location filename="mainwindow_priv_slots.cpp" line="468"/>
<location filename="mainwindow_priv_slots.cpp" line="472"/>
<source>The program must be restarted for the new language settings to take effect.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow_priv_slots.cpp" line="446"/>
<location filename="mainwindow_priv_slots.cpp" line="469"/>
<location filename="mainwindow_priv_slots.cpp" line="473"/>
<source>Restart Now</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow_priv_slots.cpp" line="447"/>
<location filename="mainwindow_priv_slots.cpp" line="470"/>
<location filename="mainwindow_priv_slots.cpp" line="509"/>
<location filename="mainwindow_priv_slots.cpp" line="474"/>
<location filename="mainwindow_priv_slots.cpp" line="517"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow_priv_slots.cpp" line="507"/>
<location filename="mainwindow_priv_slots.cpp" line="515"/>
<source>All program settings will be deleted. The program will shut down.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow_priv_slots.cpp" line="508"/>
<location filename="mainwindow_priv_slots.cpp" line="516"/>
<source>Delete all settings</source>
<translation type="unfinished"></translation>
</message>
......@@ -552,34 +552,10 @@ There was an error when the version was checked.</source>
<source>Close</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="tools.cpp" line="204"/>
<location filename="tools.cpp" line="236"/>
<source>Last used</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="tools.cpp" line="205"/>
<location filename="tools.cpp" line="225"/>
<location filename="tools.cpp" line="237"/>
<location filename="tools.cpp" line="257"/>
<source>Home</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="tools.cpp" line="206"/>
<location filename="tools.cpp" line="226"/>
<location filename="tools.cpp" line="238"/>
<location filename="tools.cpp" line="258"/>
<source>Download</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="tools.cpp" line="207"/>
<location filename="tools.cpp" line="227"/>
<location filename="tools.cpp" line="239"/>
<location filename="tools.cpp" line="259"/>
<source>Desktop</source>
<source>Last used</source>
<translation type="unfinished"></translation>
</message>
<message>
......@@ -587,7 +563,7 @@ There was an error when the version was checked.</source>
<location filename="tools.cpp" line="228"/>
<location filename="tools.cpp" line="240"/>
<location filename="tools.cpp" line="260"/>
<source>Documents</source>
<source>Home</source>
<translation type="unfinished"></translation>
</message>
<message>
......@@ -595,7 +571,7 @@ There was an error when the version was checked.</source>
<location filename="tools.cpp" line="229"/>
<location filename="tools.cpp" line="241"/>
<location filename="tools.cpp" <