parent
d57ec2a21f
commit
6018bc6436
@ -0,0 +1,128 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0" language="hu_HU">
|
||||
<defaultcodec>UTF-8</defaultcodec>
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="aboutdialog.ui" line="23"/>
|
||||
<source>About QtMindMap</source>
|
||||
<translation type="unfinished">A QtMindMap-rol</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.ui" line="54"/>
|
||||
<source>QtMindMap 0.1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.ui" line="67"/>
|
||||
<source>Mindmap software in QT</source>
|
||||
<translation type="unfinished">Agyterkep szoftver Qt-ben irva</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.ui" line="80"/>
|
||||
<source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Denes Matetelki <a href="mailto:denes.matetelki@gmail.com"><span style=" text-decoration: underline; color:#508ed8;">denes.matetelki@gmail.com</span></a></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="14"/>
|
||||
<source>QtMindMap</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="28"/>
|
||||
<source>&File</source>
|
||||
<translation type="unfinished">Fajl</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="39"/>
|
||||
<source>&Help</source>
|
||||
<translation type="unfinished">Segitseg</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="57"/>
|
||||
<source>&New</source>
|
||||
<translation type="unfinished">Uj</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="65"/>
|
||||
<source>&Open</source>
|
||||
<translation type="unfinished">Megnyitas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="73"/>
|
||||
<source>&Save</source>
|
||||
<translation type="unfinished">Mentes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="81"/>
|
||||
<location filename="mainwindow.cpp" line="40"/>
|
||||
<source>&Quit</source>
|
||||
<translation type="unfinished">Kilepes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="89"/>
|
||||
<source>&About QtMindMap</source>
|
||||
<translation type="unfinished">A QtMindMap-rol</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="94"/>
|
||||
<source>&Close</source>
|
||||
<translation type="unfinished">Bezaras</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="31"/>
|
||||
<source>Mi&nimize</source>
|
||||
<translation type="unfinished">&Talcara</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="34"/>
|
||||
<source>Ma&ximize</source>
|
||||
<translation type="unfinished">Teljes &meret</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="37"/>
|
||||
<source>&Restore</source>
|
||||
<translation type="unfinished">&Visszaallita</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="main.cpp" line="95"/>
|
||||
<source>QtMindMap Error</source>
|
||||
<translation type="unfinished">QtMindMap hiba</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main.cpp" line="96"/>
|
||||
<source>I couldn't detect any system tray on this system.</source>
|
||||
<translation type="unfinished">Nem talalhato talca a jelenlegi rendszerben.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SystemTray</name>
|
||||
<message>
|
||||
<source>Mi&nimize</source>
|
||||
<translation type="obsolete">&Talcara</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ma&ximize</source>
|
||||
<translation type="obsolete">Teljes &meret</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Restore</source>
|
||||
<translation type="obsolete">&Visszaallita</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Quit</source>
|
||||
<translation type="obsolete">&Kilepes</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -1,41 +0,0 @@
|
||||
#include "systemtray.h"
|
||||
|
||||
|
||||
#include <QtGui>
|
||||
//#include <QAction>
|
||||
//#include <QMenu>
|
||||
|
||||
SystemTray::SystemTray(MainWindow* parent)
|
||||
: QSystemTrayIcon(parent),
|
||||
mainWindow(parent)
|
||||
{
|
||||
// QSystemTrayIcon *trayIcon;
|
||||
|
||||
|
||||
minimizeAction = new QAction(tr("Mi&nimize"), this);
|
||||
connect(minimizeAction, SIGNAL(triggered()), parent, SLOT(hide()));
|
||||
|
||||
maximizeAction = new QAction(tr("Ma&ximize"), this);
|
||||
connect(maximizeAction, SIGNAL(triggered()), parent, SLOT(showMaximized()));
|
||||
|
||||
restoreAction = new QAction(tr("&Restore"), this);
|
||||
connect(restoreAction, SIGNAL(triggered()), parent, SLOT(showNormal()));
|
||||
|
||||
quitAction = new QAction(tr("&Quit"), this);
|
||||
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
|
||||
|
||||
/// @BUG shall pass this as parent
|
||||
trayIconMenu = new QMenu(0);
|
||||
trayIconMenu->addAction(minimizeAction);
|
||||
trayIconMenu->addAction(maximizeAction);
|
||||
trayIconMenu->addAction(restoreAction);
|
||||
trayIconMenu->addSeparator();
|
||||
trayIconMenu->addAction(quitAction);
|
||||
|
||||
// trayIcon = new QSystemTrayIcon(this);
|
||||
// trayIcon->setContextMenu(trayIconMenu);
|
||||
setContextMenu(trayIconMenu);
|
||||
|
||||
icon = new QIcon(":/heart.svg");
|
||||
setIcon(QIcon(":/heart.svg"));
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
#ifndef SYSTEMTRAY_H
|
||||
#define SYSTEMTRAY_H
|
||||
|
||||
#include <QSystemTrayIcon>
|
||||
#include "mainwindow.h"
|
||||
|
||||
class SystemTray : public QSystemTrayIcon
|
||||
{
|
||||
// Q_OBJECT
|
||||
|
||||
public:
|
||||
SystemTray(MainWindow *parent = 0);
|
||||
|
||||
private:
|
||||
MainWindow *mainWindow;
|
||||
QMenu *trayIconMenu;
|
||||
QAction *minimizeAction;
|
||||
QAction *maximizeAction;
|
||||
QAction *restoreAction;
|
||||
QAction *quitAction;
|
||||
QIcon *icon;
|
||||
};
|
||||
|
||||
#endif // SYSTEMTRAY_H
|
@ -1,21 +0,0 @@
|
||||
<ui version="4.0">
|
||||
<author/>
|
||||
<comment/>
|
||||
<exportmacro/>
|
||||
<class>SystemTray</class>
|
||||
<widget class="QWidget" name="SystemTray">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
</widget>
|
||||
<pixmapfunction/>
|
||||
<connections/>
|
||||
</ui>
|
Loading…
Reference in new issue