Browse Source

Added version information. Fixed multiple launch of application.

tags/2.2.1
Ivan Loskutov 11 years ago
parent
commit
4bd1f0954d
5 changed files with 29 additions and 5 deletions
  1. +10
    -0
      src/main.cpp
  2. +4
    -2
      src/systeminstaller.cpp
  3. +5
    -1
      translations/cl-install-gui_bg.ts
  4. +5
    -1
      translations/cl-install-gui_ru.ts
  5. +5
    -1
      translations/cl-install-gui_uk.ts

+ 10
- 0
src/main.cpp View File

@@ -10,6 +10,7 @@
#include <QDebug>

#include <QProcess>
#include <QSharedMemory>

#include "systeminstaller.h"

@@ -26,6 +27,15 @@ int main(int argc, char** argv)

QApplication app(argc, argv);

QSharedMemory lock("calculate-install-gui");

if (lock.attach(QSharedMemory::ReadOnly))
{
QMessageBox::critical(0, "cl-install-gui", "Application is already running");
return -2;
}
lock.create(1);

qInstallMsgHandler( MsgHandler );

debugLog.setFileName("/var/log/calculate/cl-install-gui-debug.log");


+ 4
- 2
src/systeminstaller.cpp View File

@@ -26,6 +26,8 @@

#include "pagecfdisk.h"

const QString VER_STR = "2.2.0.0";

SystemInstaller::SystemInstaller(QWidget *parent) :
QMainWindow(parent),
m_Translator(new QTranslator),
@@ -347,7 +349,7 @@ void SystemInstaller::showAbout()
{
QMessageBox::about(this, tr("About cl-install-gui"),
tr(
"<b>calculate-install-gui</b><br>"
"<b>calculate-install-gui %1</b><br>"
"GUI-frontend for cl-install<br>"
"<br><br>"
"Developer:<br>"
@@ -356,7 +358,7 @@ void SystemInstaller::showAbout()
"Translators:<br>"
"&nbsp;&nbsp;&nbsp;&nbsp;Rosen Alexandrov aka ROKO__<br>"
"&nbsp;&nbsp;&nbsp;&nbsp;Vadim Bosyuk aka Vados<br>"
)
).arg(VER_STR)
);
}



+ 5
- 1
translations/cl-install-gui_bg.ts View File

@@ -644,7 +644,11 @@ For modifying user - double click it.</source>
</message>
<message>
<source>&lt;b&gt;calculate-install-gui&lt;/b&gt;&lt;br&gt;GUI-frontend for cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Developer:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ivan Loskutov aka vanner&lt;br&gt;&lt;br&gt;Translators:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Rosen Alexandrov aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Vadim Bosyuk aka Vados&lt;br&gt;</source>
<translation type="unfinished">&lt;b&gt;calculate-install-gui&lt;/b&gt;&lt;br&gt;Графичен интерфейс за програмата cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Разработчици:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Иван Лоскутов aka vanner&lt;br&gt;&lt;br&gt;Преводачи:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Росен Александров aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Вадим Босюк aka Vados&lt;br&gt;</translation>
<translation type="obsolete">&lt;b&gt;calculate-install-gui&lt;/b&gt;&lt;br&gt;Графичен интерфейс за програмата cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Разработчици:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Иван Лоскутов aka vanner&lt;br&gt;&lt;br&gt;Преводачи:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Росен Александров aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Вадим Босюк aka Vados&lt;br&gt;</translation>
</message>
<message>
<source>&lt;b&gt;calculate-install-gui %1&lt;/b&gt;&lt;br&gt;GUI-frontend for cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Developer:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ivan Loskutov aka vanner&lt;br&gt;&lt;br&gt;Translators:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Rosen Alexandrov aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Vadim Bosyuk aka Vados&lt;br&gt;</source>
<translation type="unfinished">&lt;b&gt;calculate-install-gui %1&lt;/b&gt;&lt;br&gt;Графичен интерфейс за програмата cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Разработчици:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Иван Лоскутов aka vanner&lt;br&gt;&lt;br&gt;Преводачи:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Росен Александров aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Вадим Босюк aka Vados&lt;br&gt;</translation>
</message>
</context>
<context>


+ 5
- 1
translations/cl-install-gui_ru.ts View File

@@ -641,7 +641,11 @@ For modifying user - double click it.</source>
</message>
<message>
<source>&lt;b&gt;calculate-install-gui&lt;/b&gt;&lt;br&gt;GUI-frontend for cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Developer:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ivan Loskutov aka vanner&lt;br&gt;&lt;br&gt;Translators:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Rosen Alexandrov aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Vadim Bosyuk aka Vados&lt;br&gt;</source>
<translation type="unfinished">&lt;b&gt;calculate-install-gui&lt;/b&gt;&lt;br&gt;Графический фронтэнд для программы cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Разработчик:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Иван Лоскутов aka vanner&lt;br&gt;&lt;br&gt;Переводчики:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Росен Александров aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Вадим Босюк aka Vados&lt;br&gt;</translation>
<translation type="obsolete">&lt;b&gt;calculate-install-gui&lt;/b&gt;&lt;br&gt;Графический фронтэнд для программы cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Разработчик:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Иван Лоскутов aka vanner&lt;br&gt;&lt;br&gt;Переводчики:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Росен Александров aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Вадим Босюк aka Vados&lt;br&gt;</translation>
</message>
<message>
<source>&lt;b&gt;calculate-install-gui %1&lt;/b&gt;&lt;br&gt;GUI-frontend for cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Developer:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ivan Loskutov aka vanner&lt;br&gt;&lt;br&gt;Translators:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Rosen Alexandrov aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Vadim Bosyuk aka Vados&lt;br&gt;</source>
<translation type="unfinished">&lt;b&gt;calculate-install-gui %1&lt;/b&gt;&lt;br&gt;Графический фронтэнд для программы cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Разработчик:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Иван Лоскутов aka vanner&lt;br&gt;&lt;br&gt;Переводчики:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Росен Александров aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Вадим Босюк aka Vados&lt;br&gt;</translation>
</message>
</context>
<context>


+ 5
- 1
translations/cl-install-gui_uk.ts View File

@@ -712,7 +712,11 @@ For modifying user - double click it.</source>
</message>
<message>
<source>&lt;b&gt;calculate-install-gui&lt;/b&gt;&lt;br&gt;GUI-frontend for cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Developer:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ivan Loskutov aka vanner&lt;br&gt;&lt;br&gt;Translators:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Rosen Alexandrov aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Vadim Bosyuk aka Vados&lt;br&gt;</source>
<translation type="unfinished">&lt;b&gt;calculate-install-gui&lt;/b&gt;&lt;br&gt;Графычний фронтенд для програми cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt; Розробник:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Иван Лоскутов aka vanner&lt;br&gt;&lt;br&gt;Перекладачі:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Росен Александров aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Вадим Босюк aka Vados&lt;br&gt;</translation>
<translation type="obsolete">&lt;b&gt;calculate-install-gui&lt;/b&gt;&lt;br&gt;Графычний фронтенд для програми cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt; Розробник:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Иван Лоскутов aka vanner&lt;br&gt;&lt;br&gt;Перекладачі:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Росен Александров aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Вадим Босюк aka Vados&lt;br&gt;</translation>
</message>
<message>
<source>&lt;b&gt;calculate-install-gui %1&lt;/b&gt;&lt;br&gt;GUI-frontend for cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt;Developer:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ivan Loskutov aka vanner&lt;br&gt;&lt;br&gt;Translators:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Rosen Alexandrov aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Vadim Bosyuk aka Vados&lt;br&gt;</source>
<translation type="unfinished">&lt;b&gt;calculate-install-gui %1&lt;/b&gt;&lt;br&gt;Графычний фронтенд для програми cl-install&lt;br&gt;&lt;br&gt;&lt;br&gt; Розробник:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Иван Лоскутов aka vanner&lt;br&gt;&lt;br&gt;Перекладачі:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Росен Александров aka ROKO__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Вадим Босюк aka Vados&lt;br&gt;</translation>
</message>
</context>
<context>


Loading…
Cancel
Save