Adding upstream version 0.9.0+20150830.
This commit is contained in:
parent
00179e996f
commit
628e3f6ece
@ -31,7 +31,7 @@
|
|||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
|
|
||||||
AdvancedSettings::AdvancedSettings(LxQt::Settings* settings, QWidget *parent):
|
AdvancedSettings::AdvancedSettings(LXQt::Settings* settings, QWidget *parent):
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
mSettings(settings)
|
mSettings(settings)
|
||||||
{
|
{
|
||||||
|
@ -37,14 +37,14 @@ class AdvancedSettings : public QWidget, public Ui::AdvancedSettings
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit AdvancedSettings(LxQt::Settings* settings, QWidget* parent = 0);
|
explicit AdvancedSettings(LXQt::Settings* settings, QWidget* parent = 0);
|
||||||
~AdvancedSettings();
|
~AdvancedSettings();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void restoreSettings();
|
void restoreSettings();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LxQt::Settings* mSettings;
|
LXQt::Settings* mSettings;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void save();
|
void save();
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
|
|
||||||
BasicSettings::BasicSettings(LxQt::Settings* settings, QWidget *parent) :
|
BasicSettings::BasicSettings(LXQt::Settings* settings, QWidget *parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
mSettings(settings)
|
mSettings(settings)
|
||||||
{
|
{
|
||||||
@ -49,7 +49,7 @@ BasicSettings::BasicSettings(LxQt::Settings* settings, QWidget *parent) :
|
|||||||
connect(bottomCenterRB, SIGNAL(clicked()), this, SLOT(updateNotification()));
|
connect(bottomCenterRB, SIGNAL(clicked()), this, SLOT(updateNotification()));
|
||||||
connect(bottomRightRB, SIGNAL(clicked()), this, SLOT(updateNotification()));
|
connect(bottomRightRB, SIGNAL(clicked()), this, SLOT(updateNotification()));
|
||||||
|
|
||||||
LxQt::Notification serverTest;
|
LXQt::Notification serverTest;
|
||||||
QString serverName = serverTest.serverInfo().name;
|
QString serverName = serverTest.serverInfo().name;
|
||||||
if (serverName != "lxqt-notificationd")
|
if (serverName != "lxqt-notificationd")
|
||||||
{
|
{
|
||||||
@ -114,7 +114,7 @@ void BasicSettings::updateNotification()
|
|||||||
align = QStringLiteral("bottom-right");
|
align = QStringLiteral("bottom-right");
|
||||||
|
|
||||||
mSettings->setValue(QStringLiteral("placement"), align);
|
mSettings->setValue(QStringLiteral("placement"), align);
|
||||||
LxQt::Notification::notify(tr("Notification demo ") + align,
|
LXQt::Notification::notify(tr("Notification demo ") + align,
|
||||||
tr("This is a test notification.\n All notifications will now appear here on LXQt."),
|
tr("This is a test notification.\n All notifications will now appear here on LXQt."),
|
||||||
QStringLiteral("lxqt-logo.png"));
|
QStringLiteral("lxqt-logo.png"));
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ class BasicSettings : public QWidget, public Ui::BasicSettings
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit BasicSettings(LxQt::Settings* settings, QWidget* parent = 0);
|
explicit BasicSettings(LXQt::Settings* settings, QWidget* parent = 0);
|
||||||
~BasicSettings();
|
~BasicSettings();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
@ -47,7 +47,7 @@ private slots:
|
|||||||
void updateNotification();
|
void updateNotification();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LxQt::Settings* mSettings;
|
LXQt::Settings* mSettings;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BASICSETTINGS_H
|
#endif // BASICSETTINGS_H
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
LxQt::SingleApplication a(argc, argv);
|
LXQt::SingleApplication a(argc, argv);
|
||||||
|
|
||||||
MainWindow w;
|
MainWindow w;
|
||||||
w.setWindowIcon(QIcon::fromTheme("preferences-desktop-theme"));
|
w.setWindowIcon(QIcon::fromTheme("preferences-desktop-theme"));
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
|
|
||||||
MainWindow::MainWindow(QWidget *parent) :
|
MainWindow::MainWindow(QWidget *parent) :
|
||||||
LxQt::ConfigDialog(tr("Desktop Notifications"), new LxQt::Settings("notifications"), parent)
|
LXQt::ConfigDialog(tr("Desktop Notifications"), new LXQt::Settings("notifications"), parent)
|
||||||
{
|
{
|
||||||
BasicSettings* basic = new BasicSettings(mSettings, this);
|
BasicSettings* basic = new BasicSettings(mSettings, this);
|
||||||
addPage(basic, tr("Basic Settings"), "preferences-desktop-notification");
|
addPage(basic, tr("Basic Settings"), "preferences-desktop-notification");
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include <LXQt/ConfigDialog>
|
#include <LXQt/ConfigDialog>
|
||||||
|
|
||||||
|
|
||||||
class MainWindow : public LxQt::ConfigDialog
|
class MainWindow : public LXQt::ConfigDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[cs]=Nastavení oznamování v LxQtu
|
GenericName[cs]=Nastavení oznamování v LXQtu
|
||||||
Name[cs]=Nastavení oznamování v LxQtu
|
Name[cs]=Nastavení oznamování v LXQtu
|
||||||
Comment[cs]=Nastavit oznamování na ploše LxQt
|
Comment[cs]=Nastavit oznamování na ploše LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[cs_CZ]=Nastavení oznamování v LxQtu
|
GenericName[cs_CZ]=Nastavení oznamování v LXQtu
|
||||||
Name[cs_CZ]=Nastavení oznamování v LxQtu
|
Name[cs_CZ]=Nastavení oznamování v LXQtu
|
||||||
Comment[cs_CZ]=Nastavit oznamování na ploše LxQt
|
Comment[cs_CZ]=Nastavit oznamování na ploše LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[da]=Notesblok
|
GenericName[da]=Notesblok
|
||||||
Name[da]=Strømstyring
|
Name[da]=Strømstyring
|
||||||
Comment[da]=Indstil freedesktop meddelelser på LxQt skrivebord
|
Comment[da]=Indstil freedesktop meddelelser på LXQt skrivebord
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[da_DK]=LxQt freedesktop Meddelelsesindstillinger
|
GenericName[da_DK]=LXQt freedesktop Meddelelsesindstillinger
|
||||||
Name[da_DK]=LxQt freedesktop Meddelelsesindstillinger
|
Name[da_DK]=LXQt freedesktop Meddelelsesindstillinger
|
||||||
Comment[da_DK]=Indstil freedesktop meddelelser på LxQt skrivebord
|
Comment[da_DK]=Indstil freedesktop meddelelser på LXQt skrivebord
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
Name[de]=Mitteilungen der Arbeitsfläche
|
Name[de]=Mitteilungen der Arbeitsfläche
|
||||||
GenericName[de]=LxQt Mitteilungseinstellungen
|
GenericName[de]=LXQt Mitteilungseinstellungen
|
||||||
Comment[de]=Konfiguration von Benachrichtigungen
|
Comment[de]=Konfiguration von Benachrichtigungen
|
4
config/translations/lxqt-config-notificationd_el.desktop
Normal file
4
config/translations/lxqt-config-notificationd_el.desktop
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Translations
|
||||||
|
Name[el]=Ειδοποιήσεις επιφάνειας εργασίας
|
||||||
|
GenericName[el]=Ρυθμίσεις ειδοποιήσεων LXQt
|
||||||
|
Comment[el]=Διαμόρφωση των ειδοποιήσεων της επιφάνειας εργασίας LXQt
|
105
config/translations/lxqt-config-notificationd_el.ts
Normal file
105
config/translations/lxqt-config-notificationd_el.ts
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.1" language="el">
|
||||||
|
<context>
|
||||||
|
<name>AdvancedSettings</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../advancedsettings.ui" line="17"/>
|
||||||
|
<source>Sizes</source>
|
||||||
|
<translation>Μεγέθη</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../advancedsettings.ui" line="25"/>
|
||||||
|
<source>Width:</source>
|
||||||
|
<translation>Πλάτος:</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../advancedsettings.ui" line="32"/>
|
||||||
|
<location filename="../advancedsettings.ui" line="56"/>
|
||||||
|
<source> px</source>
|
||||||
|
<translation> εικ</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../advancedsettings.ui" line="49"/>
|
||||||
|
<source>Spacing:</source>
|
||||||
|
<translation>Απόσταση:</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../advancedsettings.ui" line="68"/>
|
||||||
|
<source>Duration</source>
|
||||||
|
<translation>Διάρκεια</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../advancedsettings.ui" line="74"/>
|
||||||
|
<source>Some notifications set their own on-screen duration.</source>
|
||||||
|
<translation>Μερικές ειδοποιήσεις καθορίζουν τη δική τους διάρκεια εμφάνισης.</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../advancedsettings.ui" line="86"/>
|
||||||
|
<source>Default duration:</source>
|
||||||
|
<translation>Διάρκεια εξ ορισμού:</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../advancedsettings.ui" line="93"/>
|
||||||
|
<source> sec</source>
|
||||||
|
<translation> δευτ</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>BasicSettings</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../basicsettings.ui" line="23"/>
|
||||||
|
<source>Basic Settings</source>
|
||||||
|
<translation>Βασικές ρυθμίσεις</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../basicsettings.ui" line="30"/>
|
||||||
|
<source>Position on screen</source>
|
||||||
|
<translation>Θέση στην οθόνη</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../basicsettings.cpp" line="57"/>
|
||||||
|
<source><b>Warning:</b> No notifications daemon is running.
|
||||||
|
A fallback will be used.</source>
|
||||||
|
<translation><b>Προειδοποίηση:</b> Δεν εκτελείται κάποιος δαίμονας ειδοποιήσεων
|
||||||
|
Θα χρησιμοποιηθεί η ανακατεύθυνση.</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../basicsettings.cpp" line="60"/>
|
||||||
|
<source><b>Warning:</b> A third-party notifications daemon (%1) is running.
|
||||||
|
These settings won't have any effect on it!</source>
|
||||||
|
<translation><b>Προειδοποίηση:</b> Εκτελείται ένας δαίμονας ειδοποιήσεων τρίτων (%1).
|
||||||
|
Αυτές οι ρυθμίσεις δεν θα έχουν κάποια επίδραση σε αυτόν!</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../basicsettings.cpp" line="117"/>
|
||||||
|
<source>Notification demo </source>
|
||||||
|
<translation>Επίδειξη ειδοποιήσεων </translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../basicsettings.cpp" line="118"/>
|
||||||
|
<source>This is a test notification.
|
||||||
|
All notifications will now appear here on LXQt.</source>
|
||||||
|
<translation>Αυτή είναι μια δοκιμαστική ειδοποίηση.
|
||||||
|
Όλες οι ειδοποιήσεις στο LXQt θα εμφανίζονται εδώ.</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>MainWindow</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../mainwindow.cpp" line="40"/>
|
||||||
|
<source>Desktop Notifications</source>
|
||||||
|
<translation>Ειδοποιήσεις επιφάνειας εργασίας</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../mainwindow.cpp" line="43"/>
|
||||||
|
<source>Basic Settings</source>
|
||||||
|
<translation>Βασικές ρυθμίσεις</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../mainwindow.cpp" line="47"/>
|
||||||
|
<source>Advanced Settings</source>
|
||||||
|
<translation>Προηγμένες ρυθμίσεις</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
@ -1,4 +0,0 @@
|
|||||||
# Translations
|
|
||||||
GenericName[el_GR]=Διαμόρφωση ειδοποιήσεων LxQt
|
|
||||||
Name[el_GR]=Διαμόρφωση ειδοποιήσεων LxQt
|
|
||||||
Comment[el_GR]=Διαμόρφωση ειδοποιήσεων στην επιφάνεια εργασίας LxQt
|
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[eo]=Agordoj de muso por LxQto
|
GenericName[eo]=Agordoj de muso por LXQto
|
||||||
Name[eo]=Agordoj de muso por LxQto
|
Name[eo]=Agordoj de muso por LXQto
|
||||||
Comment[eo]=Agordi atentigojn de freedesktop en LxQt-labortablo
|
Comment[eo]=Agordi atentigojn de freedesktop en LXQt-labortablo
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[es]=Administrador de tareas
|
GenericName[es]=Administrador de tareas
|
||||||
Name[es]=Configuración de sesiones LxQt
|
Name[es]=Configuración de sesiones LXQt
|
||||||
Comment[es]=Configure las notificacionde de freedesktop en el escritorio LxQt
|
Comment[es]=Configure las notificacionde de freedesktop en el escritorio LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[es_VE]=Configuracion de notificaciones de Escritorio LxQt
|
GenericName[es_VE]=Configuracion de notificaciones de Escritorio LXQt
|
||||||
Name[es_VE]=Configuracion de notificaciones de Escritorio LxQt
|
Name[es_VE]=Configuracion de notificaciones de Escritorio LXQt
|
||||||
Comment[es_VE]=Configura las notificacones en el Escritoro LxQt
|
Comment[es_VE]=Configura las notificacones en el Escritoro LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[eu]=LxQt Freedesktop jakinarazpenen konfigurazioa
|
GenericName[eu]=LXQt Freedesktop jakinarazpenen konfigurazioa
|
||||||
Name[eu]=LxQt Freedesktop jakinarazpenen konfigurazioa
|
Name[eu]=LXQt Freedesktop jakinarazpenen konfigurazioa
|
||||||
Comment[eu]=Konfiguratu LxQt mahaigaineko Freedesktop jakinarazpenak
|
Comment[eu]=Konfiguratu LXQt mahaigaineko Freedesktop jakinarazpenak
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[fi]=LxQt-työpöydän ilmoitusasetukset
|
GenericName[fi]=LXQt-työpöydän ilmoitusasetukset
|
||||||
Name[fi]=LxQt-työpöydän ilmoitusasetukset
|
Name[fi]=LXQt-työpöydän ilmoitusasetukset
|
||||||
Comment[fi]=Muokkaa LxQt-työpöydän ilmoituksia
|
Comment[fi]=Muokkaa LXQt-työpöydän ilmoituksia
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[hu]=Az asztali értesítések beállítása
|
GenericName[hu]=Az asztali értesítések beállítása
|
||||||
Name[hu]=LxQt értesítések beállítása
|
Name[hu]=LXQt értesítések beállítása
|
||||||
Comment[hu]=A felbukkanó értesítések beállítása
|
Comment[hu]=A felbukkanó értesítések beállítása
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[id_ID]=Hell World
|
GenericName[id_ID]=Hell World
|
||||||
Name[id_ID]=Konfigurator Desktop LxQt
|
Name[id_ID]=Konfigurator Desktop LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[it]=Notifiche
|
GenericName[it]=Notifiche
|
||||||
Name[it]=Configura notifiche
|
Name[it]=Configura notifiche
|
||||||
Comment[it]=Configura le notifiche Freedesktop del Desktop LxQt
|
Comment[it]=Configura le notifiche Freedesktop del Desktop LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[ja]=LxQtフリーデスクトップ通知の設定
|
GenericName[ja]=LXQtフリーデスクトップ通知の設定
|
||||||
Name[ja]=LxQtフリーデスクトップ通知の設定
|
Name[ja]=LXQtフリーデスクトップ通知の設定
|
||||||
Comment[ja]=LxQtデスクトップでフリーデスクトップ通知を設定
|
Comment[ja]=LXQtデスクトップでフリーデスクトップ通知を設定
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[lt]=Qlipper
|
GenericName[lt]=Qlipper
|
||||||
Name[lt]=Energijos naudojimo nustatymai
|
Name[lt]=Energijos naudojimo nustatymai
|
||||||
Comment[lt]=Konfigūruoti freedesktop pranešimus LxQt darbalaukyje
|
Comment[lt]=Konfigūruoti freedesktop pranešimus LXQt darbalaukyje
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[nl]=Notepad
|
GenericName[nl]=Notepad
|
||||||
Name[nl]=Energiebeheer
|
Name[nl]=Energiebeheer
|
||||||
Comment[nl]=Configureren freedesktop meldingen in LxQt desktop
|
Comment[nl]=Configureren freedesktop meldingen in LXQt desktop
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[pl]=Menu
|
GenericName[pl]=Menu
|
||||||
Name[pl]=Panel sterowania LxQt
|
Name[pl]=Panel sterowania LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[pl_PL]=Konfiguracja wyglądu LxQt
|
GenericName[pl_PL]=Konfiguracja wyglądu LXQt
|
||||||
Name[pl_PL]=Konfiguracja wyglądu LxQt
|
Name[pl_PL]=Konfiguracja wyglądu LXQt
|
||||||
Comment[pl_PL]=Konfiguruj powiadomienia freedesktop w LxQt
|
Comment[pl_PL]=Konfiguruj powiadomienia freedesktop w LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[pt_BR]=Suspender Automaticamente
|
GenericName[pt_BR]=Suspender Automaticamente
|
||||||
Name[pt_BR]=Gerenciamento de energia
|
Name[pt_BR]=Gerenciamento de energia
|
||||||
Comment[pt_BR]=Configurar as notificações do freedesktop na área de trabalho do LxQt
|
Comment[pt_BR]=Configurar as notificações do freedesktop na área de trabalho do LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[ro_RO]=Părăsește
|
GenericName[ro_RO]=Părăsește
|
||||||
Name[ro_RO]=Părăsește sistemul
|
Name[ro_RO]=Părăsește sistemul
|
||||||
Comment[ro_RO]=Configurează notificările freedesktop în desktop-ul LxQt
|
Comment[ro_RO]=Configurează notificările freedesktop în desktop-ul LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[ru]=Настройки уведомлений LxQt
|
GenericName[ru]=Настройки уведомлений LXQt
|
||||||
Name[ru]=Уведомления рабочего стола
|
Name[ru]=Уведомления рабочего стола
|
||||||
Comment[ru]=Настроить уведомления рабочего стола
|
Comment[ru]=Настроить уведомления рабочего стола
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[ru_RU]=Настройки уведомлений LxQt
|
GenericName[ru_RU]=Настройки уведомлений LXQt
|
||||||
Name[ru_RU]=Уведомления рабочего стола
|
Name[ru_RU]=Уведомления рабочего стола
|
||||||
Comment[ru_RU]=Настроить уведомления рабочего стола
|
Comment[ru_RU]=Настроить уведомления рабочего стола
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[sl]=Nastavitve obvestil
|
GenericName[sl]=Nastavitve obvestil
|
||||||
Name[sl]=Nastavitve obvestil na namizju
|
Name[sl]=Nastavitve obvestil na namizju
|
||||||
Comment[sl]=Nastavite obvestila na namizju LxQt
|
Comment[sl]=Nastavite obvestila na namizju LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[th_TH]=การตั้งค่าการเตือนต่างๆ ของ LxQt Freedesktop
|
GenericName[th_TH]=การตั้งค่าการเตือนต่างๆ ของ LXQt Freedesktop
|
||||||
Name[th_TH]=การตั้งค่าการเตือนต่างๆ ของ LxQt Freedesktop
|
Name[th_TH]=การตั้งค่าการเตือนต่างๆ ของ LXQt Freedesktop
|
||||||
Comment[th_TH]=ตั้งค่าการเตือนต่างๆ ของ freedesktop ในเดสก์ท็อป LxQt
|
Comment[th_TH]=ตั้งค่าการเตือนต่างๆ ของ freedesktop ในเดสก์ท็อป LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[tr]=Not Defteri
|
GenericName[tr]=Not Defteri
|
||||||
Name[tr]=Güç yönetimi
|
Name[tr]=Güç yönetimi
|
||||||
Comment[tr]=LxQt masaüstünde freedesktop bildirimlerini ayarla
|
Comment[tr]=LXQt masaüstünde freedesktop bildirimlerini ayarla
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[uk]=Налаштування Freedesktop сповіщень LxQt
|
GenericName[uk]=Налаштування Freedesktop сповіщень LXQt
|
||||||
Name[uk]=Налаштування Freedesktop сповіщень LxQt
|
Name[uk]=Налаштування Freedesktop сповіщень LXQt
|
||||||
Comment[uk]=Налаштувати Freedesktop сповіщення в стільниці LxQt
|
Comment[uk]=Налаштувати Freedesktop сповіщення в стільниці LXQt
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[zh_CN]=qxkb
|
GenericName[zh_CN]=qxkb
|
||||||
Name[zh_CN]=LxQt 通知配置
|
Name[zh_CN]=LXQt 通知配置
|
||||||
Comment[zh_CN]=配置 LxQt 桌面的通知
|
Comment[zh_CN]=配置 LXQt 桌面的通知
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Translations
|
# Translations
|
||||||
GenericName[zh_TW]=LxQt通知設定
|
GenericName[zh_TW]=LXQt通知設定
|
||||||
Name[zh_TW]=LxQt通知設定
|
Name[zh_TW]=LXQt通知設定
|
||||||
Comment[zh_TW]=LxQt桌面上的FreeDesktop通知設定
|
Comment[zh_TW]=LXQt桌面上的FreeDesktop通知設定
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
*/
|
*/
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
LxQt::Application a(argc, argv);
|
LXQt::Application a(argc, argv);
|
||||||
|
|
||||||
a.setQuitOnLastWindowClosed(false);
|
a.setQuitOnLastWindowClosed(false);
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ Notifyd::Notifyd(QObject* parent)
|
|||||||
mId(0)
|
mId(0)
|
||||||
{
|
{
|
||||||
m_area = new NotificationArea();
|
m_area = new NotificationArea();
|
||||||
m_settings = new LxQt::Settings("notifications");
|
m_settings = new LXQt::Settings("notifications");
|
||||||
reloadSettings();
|
reloadSettings();
|
||||||
|
|
||||||
connect(this, SIGNAL(notificationAdded(uint,QString,QString,QString,QString,int,QStringList,QVariantMap)),
|
connect(this, SIGNAL(notificationAdded(uint,QString,QString,QString,QString,int,QStringList,QVariantMap)),
|
||||||
|
@ -129,7 +129,7 @@ private:
|
|||||||
NotificationArea *m_area;
|
NotificationArea *m_area;
|
||||||
int m_serverTimeout;
|
int m_serverTimeout;
|
||||||
|
|
||||||
LxQt::Settings *m_settings;
|
LXQt::Settings *m_settings;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void reloadSettings();
|
void reloadSettings();
|
||||||
|
15
src/translations/lxqt-notificationd_el.ts
Normal file
15
src/translations/lxqt-notificationd_el.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.1" language="el">
|
||||||
|
<context>
|
||||||
|
<name>NotificationActionsComboWidget</name>
|
||||||
|
<message>
|
||||||
|
<source>Actions:</source>
|
||||||
|
<translation>Ενέργειες:</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>OK</source>
|
||||||
|
<translation>Εντάξει</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
@ -33,14 +33,14 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
connect(ui->pushButton, SIGNAL(clicked()), SLOT(createNotification()));
|
connect(ui->pushButton, SIGNAL(clicked()), SLOT(createNotification()));
|
||||||
LxQtNotification::notify("1");
|
LXQtNotification::notify("1");
|
||||||
LxQtNotification::notify("2");
|
LXQtNotification::notify("2");
|
||||||
LxQtNotification::notify("3");
|
LXQtNotification::notify("3");
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::createNotification()
|
void MainWindow::createNotification()
|
||||||
{
|
{
|
||||||
LxQtNotification* n = new LxQtNotification("Notification!");
|
LXQtNotification* n = new LXQtNotification("Notification!");
|
||||||
nlist.append(n);
|
nlist.append(n);
|
||||||
connect(n, SIGNAL(actionActivated(int)), this, SLOT(clickEvent(int)));
|
connect(n, SIGNAL(actionActivated(int)), this, SLOT(clickEvent(int)));
|
||||||
n->setActions(QStringList() << "Hi" << "Bye" << "foo" << "bar" << "lorem" << "ipsum", 1);
|
n->setActions(QStringList() << "Hi" << "Bye" << "foo" << "bar" << "lorem" << "ipsum", 1);
|
||||||
@ -50,7 +50,7 @@ void MainWindow::createNotification()
|
|||||||
|
|
||||||
void MainWindow::clickEvent(int button)
|
void MainWindow::clickEvent(int button)
|
||||||
{
|
{
|
||||||
LxQtNotification* n = qobject_cast<LxQtNotification*>(sender());
|
LXQtNotification* n = qobject_cast<LXQtNotification*>(sender());
|
||||||
if (n)
|
if (n)
|
||||||
{
|
{
|
||||||
if (button == 0)
|
if (button == 0)
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
#include <QMainWindow>
|
#include <QMainWindow>
|
||||||
|
|
||||||
class LxQtNotification;
|
class LXQtNotification;
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
@ -47,7 +47,7 @@ public slots:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::MainWindow* ui;
|
Ui::MainWindow* ui;
|
||||||
QList<LxQtNotification*> nlist;
|
QList<LXQtNotification*> nlist;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MAINWINDOW_H
|
#endif // MAINWINDOW_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user