Cherry-picked upstream version 0.9.0+20150831.

ubuntu/bionic
Alf Gaida 9 years ago
parent 190678c925
commit e22fb9a560

2
.gitignore vendored

@ -1,2 +0,0 @@
build
nbproject

@ -6,5 +6,5 @@ Copyright:
Copyright (c) 2010-2012 Razor team Copyright (c) 2010-2012 Razor team
Copyright (c) 2012-2014 LXQt team Copyright (c) 2012-2014 LXQt team
License: GPL-2 and LGPL-2.1+ License: LGPL-2.1+
The full text of the licenses can be found in the 'COPYING' file. The full text of the licenses can be found in the 'COPYING' file.

@ -1,12 +1,24 @@
cmake_minimum_required(VERSION 2.8.11) cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
project(lxqt-runner) project(lxqt-runner)
set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
include(CMakeDependentOption)
include(GNUInstallDirs)
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF) option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
option(USE_MENU_CACHE "Use libmenu-cache from LXDE to generate the app menu" ON)
option(RUNNER_MATH "Math operations support" ON)
option(RUNNER_VBOX "Virtual Box support" ON)
cmake_dependent_option(RUNNER_VBOX_HEADLESS
"Use headless mode instead of default window" OFF
"RUNNER_VBOX" OFF
)
find_package(KF5WindowSystem REQUIRED) find_package(KF5WindowSystem REQUIRED)
find_package(Qt5Widgets REQUIRED) find_package(Qt5Widgets REQUIRED)
@ -14,33 +26,23 @@ find_package(Qt5Xml REQUIRED)
find_package(Qt5Script REQUIRED) find_package(Qt5Script REQUIRED)
find_package(Qt5LinguistTools REQUIRED QUIET) find_package(Qt5LinguistTools REQUIRED QUIET)
find_package(lxqt REQUIRED) find_package(lxqt REQUIRED)
find_package(Qt5Xdg REQUIRED)
find_package(lxqt-globalkeys REQUIRED) find_package(lxqt-globalkeys REQUIRED)
find_package(lxqt-globalkeys-ui REQUIRED) find_package(lxqt-globalkeys-ui REQUIRED)
message(STATUS "Building with Qt${Qt5Core_VERSION_STRING}") message(STATUS "Building with Qt${Qt5Core_VERSION_STRING}")
set(QTX_LIBRARIES Qt5::Widgets Qt5::Xml Qt5::Script)
include(${LXQT_USE_FILE}) include(LXQtCompilerSettings NO_POLICY_SCOPE)
include(${QTXDG_USE_FILE})
include(${LXQT_GLOBALKEYS_USE_FILE}) set(QTX_LIBRARIES Qt5::Widgets Qt5::Xml Qt5::Script)
include(${LXQT_GLOBALKEYS_UI_USE_FILE})
# optionally use libmenu-cache from lxde to generate the application menu if (USE_MENU_CACHE)
find_package(PkgConfig) # optionally use libmenu-cache from lxde to generate the application menu
find_package(PkgConfig REQUIRED QUIET)
if (NOT WITHOUT_MENU_CACHE) pkg_check_modules(MENU_CACHE REQUIRED QUIET
pkg_check_modules(MENU_CACHE
libmenu-cache>=0.3.3 libmenu-cache>=0.3.3
) )
endif(NOT WITHOUT_MENU_CACHE)
# if libmenu-cache is available
if (MENU_CACHE_FOUND)
include_directories(${MENU_CACHE_INCLUDE_DIRS})
add_definitions(-DHAVE_MENU_CACHE=1)
endif() endif()
set(lxqt-runner_H_FILES set(lxqt-runner_H_FILES
dialog.h dialog.h
commanditemmodel.h commanditemmodel.h
@ -70,16 +72,13 @@ set(QRC_FILES
) )
set(lxqt-runner_LIBRARIES set(lxqt-runner_LIBRARIES
${LXQT_LIBRARIES} lxqt
${LXQT_GLOBALKEYS_LIBRARIES} lxqt-globalkeys
${LXQT_GLOBALKEYS_UI_LIBRARIES} lxqt-globalkeys-ui
${QTXDG_LIBRARIES}
${MENU_CACHE_LIBRARIES} ${MENU_CACHE_LIBRARIES}
${QTX_LIBRARIES} ${QTX_LIBRARIES}
) )
include(LXQtTranslate) include(LXQtTranslate)
lxqt_translate_ts(lxqt-runner_QM_FILES lxqt_translate_ts(lxqt-runner_QM_FILES
@ -94,69 +93,42 @@ lxqt_translate_ts(lxqt-runner_QM_FILES
lxqt_app_translation_loader(lxqt-runner_QM_LOADER ${PROJECT_NAME}) lxqt_app_translation_loader(lxqt-runner_QM_LOADER ${PROJECT_NAME})
#************************************************
include_directories(
${LXQT_INCLUDE_DIRS}
${LXQT_GLOBALKEYS_INCLUDE_DIRS}
${LXQT_GLOBALKEYS_UI_INCLUDE_DIRS}
${QTXDG_INCLUDE_DIRS}
)
if(NOT CMAKE_BUILD_TYPE) if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release) set(CMAKE_BUILD_TYPE Release)
endif() endif()
add_definitions(-Wall)
set(LXQT_SHARE_DIR "${CMAKE_INSTALL_PREFIX}/share/lxqt")
set(APP_SHARE_DIR "${LXQT_SHARE_DIR}/${PROJECT_NAME}")
#************************************************
if(NOT DEFINED RUNNER_MATH)
set(RUNNER_MATH Yes)
endif()
if(RUNNER_MATH)
add_definitions(-DMATH_ENABLED)
endif(RUNNER_MATH)
# *******************************************************************
# Optional: start VBOX machines in headless mode,
# instead of default window
if(NOT DEFINED RUNNER_VBOX)
set(RUNNER_VBOX Yes)
endif()
if(VBOXRUNNER_HEADLESS)
add_definitions(-DVBOXRUNNER_HEADLESS)
endif()
if (RUNNER_VBOX) if (RUNNER_VBOX)
set(QRC_FILES list(APPEND QRC_FILES virtualbox-icons.qrc)
${QRC_FILES}
virtualbox-icons.qrc
)
add_definitions(-DVBOX_ENABLED)
endif() endif()
qt5_wrap_ui(lxqt-runner_UI_HEADERS ${lxqt-runner_UI_FILES})
qt5_add_resources(lxqt-runner_QRC_SOURCES ${QRC_FILES})
add_executable(${PROJECT_NAME} add_executable(${PROJECT_NAME}
${lxqt-runner_CPP_FILES} ${lxqt-runner_CPP_FILES}
${lxqt-runner_UI_FILES}
${lxqt-runner_QRC_SOURCES} ${lxqt-runner_QRC_SOURCES}
${lxqt-runner_QM_FILES} ${lxqt-runner_QM_FILES}
${lxqt-runner_QM_LOADER} ${lxqt-runner_QM_LOADER}
) )
target_link_libraries(${PROJECT_NAME} ${lxqt-runner_LIBRARIES} KF5::WindowSystem) target_include_directories(${PROJECT_NAME}
PRIVATE "$<$<BOOL:${MENU_CACHE_FOUND}>:${MENU_CACHE_INCLUDE_DIRS}>"
)
target_compile_definitions(${PROJECT_NAME}
PRIVATE "$<$<BOOL:${RUNNER_MATH}>:MATH_ENABLED>"
PRIVATE "$<$<BOOL:${RUNNER_VBOX}>:VBOX_ENABLED>"
PRIVATE "$<$<BOOL:${RUNNER_VBOX_HEADLESS}>:VBOX_HEADLESS_ENABLED>"
PRIVATE "$<$<BOOL:${MENU_CACHE_FOUND}>:HAVE_MENU_CACHE=1>"
)
target_link_libraries(${PROJECT_NAME}
${lxqt-runner_LIBRARIES}
KF5::WindowSystem
)
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin) install(TARGETS
install(FILES ${CONFIG_FILES} DESTINATION ${APP_SHARE_DIR}) ${PROJECT_NAME}
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT Runtime
)
# building tarball with CPack ------------------------------------------------- # building tarball with CPack -------------------------------------------------
include(InstallRequiredSystemLibraries) include(InstallRequiredSystemLibraries)

@ -43,6 +43,8 @@ CommandItemModel::CommandItemModel(QObject *parent) :
mOnlyHistory(false) mOnlyHistory(false)
{ {
setDynamicSortFilter(false); // required in Qt5 setDynamicSortFilter(false); // required in Qt5
setFilterCaseSensitivity(Qt::CaseInsensitive);
setSortCaseSensitivity(Qt::CaseInsensitive);
setSourceModel(mSourceModel); setSourceModel(mSourceModel);
} }
@ -214,12 +216,10 @@ CommandSourceItemModel::CommandSourceItemModel(QObject *parent) :
mProviders.append(new VirtualBoxProvider()); mProviders.append(new VirtualBoxProvider());
#endif #endif
mProviders.append(new PowerProvider());
rebuild(); rebuild();
mExternalProviderStartIndex = index(rowCount(), 0); mExternalProviderStartIndex = index(rowCount(), 0);
LxQt::Settings settings("lxqt-runner"); LXQt::Settings settings("lxqt-runner");
int numExternalProviders = settings.beginReadArray("external providers"); int numExternalProviders = settings.beginReadArray("external providers");
for (int i = 0; i < numExternalProviders; i++) for (int i = 0; i < numExternalProviders; i++)
{ {

@ -8,7 +8,7 @@
* Authors: * Authors:
* Alexander Sokoloff <sokoloff.a@gmail.com> * Alexander Sokoloff <sokoloff.a@gmail.com>
* *
* This program or library is free software; you can/ redistribute it * This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public * and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.

@ -49,7 +49,7 @@ ConfigureDialog::ConfigureDialog(QSettings *settings, const QString &defaultShor
QDialog(parent), QDialog(parent),
ui(new Ui::ConfigureDialog), ui(new Ui::ConfigureDialog),
mSettings(settings), mSettings(settings),
mOldSettings(new LxQt::SettingsCache(settings)), mOldSettings(new LXQt::SettingsCache(settings)),
mDefaultShortcut(defaultShortcut) mDefaultShortcut(defaultShortcut)
{ {
ui->setupUi(this); ui->setupUi(this);

@ -37,7 +37,7 @@ namespace Ui {
class QSettings; class QSettings;
namespace LxQt { namespace LXQt {
class SettingsCache; class SettingsCache;
} }
@ -61,7 +61,7 @@ protected:
private: private:
Ui::ConfigureDialog *ui; Ui::ConfigureDialog *ui;
QSettings *mSettings; QSettings *mSettings;
LxQt::SettingsCache *mOldSettings; LXQt::SettingsCache *mOldSettings;
QString mDefaultShortcut; QString mDefaultShortcut;
private slots: private slots:

3
debian/changelog vendored

@ -1,9 +1,10 @@
lxqt-runner (0.9.0+20150831-1) unstable; urgency=medium lxqt-runner (0.9.0+20150831-1) unstable; urgency=medium
* Cherry-picked upstream version 0.9.0+20150831.
* Added upstream signing key and use in watch file * Added upstream signing key and use in watch file
* Fixed control with cme fix * Fixed control with cme fix
-- Alf Gaida <agaida@siduction.org> Fri, 04 Sep 2015 21:15:04 +0200 -- Alf Gaida <agaida@siduction.org> Fri, 04 Sep 2015 21:20:43 +0200
lxqt-runner (0.9.0-1) experimental; urgency=low lxqt-runner (0.9.0-1) experimental; urgency=low

@ -51,7 +51,7 @@
#include <QWindow> #include <QWindow>
#include <QScrollBar> #include <QScrollBar>
#include <KF5/KWindowSystem/KWindowSystem> #include <KWindowSystem/KWindowSystem>
#define DEFAULT_SHORTCUT "Alt+F2" #define DEFAULT_SHORTCUT "Alt+F2"
@ -59,9 +59,9 @@
************************************************/ ************************************************/
Dialog::Dialog(QWidget *parent) : Dialog::Dialog(QWidget *parent) :
QDialog(parent, Qt::Tool | Qt::WindowStaysOnTopHint | Qt::CustomizeWindowHint), QDialog(parent, Qt::Dialog | Qt::WindowStaysOnTopHint | Qt::CustomizeWindowHint),
ui(new Ui::Dialog), ui(new Ui::Dialog),
mSettings(new LxQt::Settings("lxqt-runner", this)), mSettings(new LXQt::Settings("lxqt-runner", this)),
mGlobalShortcut(0), mGlobalShortcut(0),
mLockCascadeChanges(false), mLockCascadeChanges(false),
mConfigureDialog(0) mConfigureDialog(0)
@ -70,7 +70,7 @@ Dialog::Dialog(QWidget *parent) :
setWindowTitle("LXQt Runner"); setWindowTitle("LXQt Runner");
setAttribute(Qt::WA_TranslucentBackground); setAttribute(Qt::WA_TranslucentBackground);
connect(LxQt::Settings::globalSettings(), SIGNAL(iconThemeChanged()), this, SLOT(update())); connect(LXQt::Settings::globalSettings(), SIGNAL(iconThemeChanged()), this, SLOT(update()));
connect(ui->closeButton, SIGNAL(clicked()), this, SLOT(hide())); connect(ui->closeButton, SIGNAL(clicked()), this, SLOT(hide()));
connect(mSettings, SIGNAL(settingsChanged()), this, SLOT(applySettings())); connect(mSettings, SIGNAL(settingsChanged()), this, SLOT(applySettings()));
@ -87,7 +87,7 @@ Dialog::Dialog(QWidget *parent) :
setFilter(""); setFilter("");
dataChanged(); dataChanged();
ui->commandList->setItemDelegate(new LxQt::HtmlDelegate(QSize(32, 32), ui->commandList)); ui->commandList->setItemDelegate(new LXQt::HtmlDelegate(QSize(32, 32), ui->commandList));
// Popup menu ............................... // Popup menu ...............................
QAction *a = new QAction(XdgIcon::fromTheme("configure"), tr("Configure"), this); QAction *a = new QAction(XdgIcon::fromTheme("configure"), tr("Configure"), this);
@ -98,9 +98,9 @@ Dialog::Dialog(QWidget *parent) :
connect(a, SIGNAL(triggered()), mCommandItemModel, SLOT(clearHistory())); connect(a, SIGNAL(triggered()), mCommandItemModel, SLOT(clearHistory()));
addAction(a); addAction(a);
mPowerManager = new LxQt::PowerManager(this); mPowerManager = new LXQt::PowerManager(this);
addActions(mPowerManager->availableActions()); addActions(mPowerManager->availableActions());
mScreenSaver = new LxQt::ScreenSaver(this); mScreenSaver = new LXQt::ScreenSaver(this);
addActions(mScreenSaver->availableActions()); addActions(mScreenSaver->availableActions());
setContextMenuPolicy(Qt::ActionsContextMenu); setContextMenuPolicy(Qt::ActionsContextMenu);
@ -108,7 +108,6 @@ Dialog::Dialog(QWidget *parent) :
QMenu *menu = new QMenu(this); QMenu *menu = new QMenu(this);
menu->addActions(actions()); menu->addActions(actions());
ui->actionButton->setMenu(menu); ui->actionButton->setMenu(menu);
ui->actionButton->setIcon(XdgIcon::fromTheme("configure"));
// End of popup menu ........................ // End of popup menu ........................
applySettings(); applySettings();
@ -117,6 +116,7 @@ Dialog::Dialog(QWidget *parent) :
connect(QApplication::desktop(), SIGNAL(workAreaResized(int)), SLOT(realign())); connect(QApplication::desktop(), SIGNAL(workAreaResized(int)), SLOT(realign()));
connect(mGlobalShortcut, SIGNAL(activated()), this, SLOT(showHide())); connect(mGlobalShortcut, SIGNAL(activated()), this, SLOT(showHide()));
connect(mGlobalShortcut, SIGNAL(shortcutChanged(QString,QString)), this, SLOT(shortcutChanged(QString,QString))); connect(mGlobalShortcut, SIGNAL(shortcutChanged(QString,QString)), this, SLOT(shortcutChanged(QString,QString)));
connect(KWindowSystem::self(), SIGNAL(activeWindowChanged(WId)), this, SLOT(onActiveWindowChanged(WId)));
resize(mSettings->value("dialog/width", 400).toInt(), size().height()); resize(mSettings->value("dialog/width", 400).toInt(), size().height());
@ -140,7 +140,7 @@ Dialog::~Dialog()
void Dialog::closeEvent(QCloseEvent *event) void Dialog::closeEvent(QCloseEvent *event)
{ {
hide(); hide();
event->ignore(); event->accept();
} }
@ -179,11 +179,6 @@ bool Dialog::eventFilter(QObject *object, QEvent *event)
if (object == ui->commandList) if (object == ui->commandList)
return listKeyPressEvent(keyEvent); return listKeyPressEvent(keyEvent);
} }
else if (event->type() == QEvent::FocusOut)
{
hide();
return true;
}
return QDialog::eventFilter(object, event); return QDialog::eventFilter(object, event);
} }
@ -292,7 +287,9 @@ bool Dialog::listKeyPressEvent(QKeyEvent *event)
************************************************/ ************************************************/
void Dialog::showHide() void Dialog::showHide()
{ {
if (isVisible() && isActiveWindow()) // Using KWindowSystem to detect the active window since
// QWidget::isActiveWindow is not working reliably.
if (isVisible() && (KWindowSystem::activeWindow() == winId()))
{ {
hide(); hide();
} }
@ -375,19 +372,28 @@ void Dialog::shortcutChanged(const QString &/*oldShortcut*/, const QString &newS
} }
/************************************************
************************************************/
void Dialog::onActiveWindowChanged(WId id)
{
if (isVisible() && id != winId())
showHide();
}
/************************************************ /************************************************
************************************************/ ************************************************/
void Dialog::setFilter(const QString &text, bool onlyHistory) void Dialog::setFilter(const QString &text, bool onlyHistory)
{ {
qDebug() << "Ind i setFilter...";
if (mCommandItemModel->isOutDated()) if (mCommandItemModel->isOutDated())
mCommandItemModel->rebuild(); mCommandItemModel->rebuild();
QString trimmedText = text.simplified(); QString trimmedText = text.simplified();
mCommandItemModel->setCommand(trimmedText); mCommandItemModel->setCommand(trimmedText);
mCommandItemModel->showOnlyHistory(onlyHistory); mCommandItemModel->showOnlyHistory(onlyHistory);
mCommandItemModel->setFilterWildcard(trimmedText); mCommandItemModel->setFilterRegExp(trimmedText);
mCommandItemModel->sort(0); mCommandItemModel->sort(0);
} }

@ -34,7 +34,7 @@ namespace Ui {
class Dialog; class Dialog;
} }
namespace LxQt { namespace LXQt {
class Settings; class Settings;
class PowerManager; class PowerManager;
class ScreenSaver; class ScreenSaver;
@ -69,21 +69,18 @@ protected:
private: private:
Ui::Dialog *ui; Ui::Dialog *ui;
LxQt::Settings *mSettings; LXQt::Settings *mSettings;
GlobalKeyShortcut::Action *mGlobalShortcut; GlobalKeyShortcut::Action *mGlobalShortcut;
CommandItemModel *mCommandItemModel; CommandItemModel *mCommandItemModel;
bool mShowOnTop; bool mShowOnTop;
int mMonitor; int mMonitor;
LxQt::PowerManager *mPowerManager; LXQt::PowerManager *mPowerManager;
LxQt::ScreenSaver *mScreenSaver; LXQt::ScreenSaver *mScreenSaver;
bool mLockCascadeChanges; bool mLockCascadeChanges;
ConfigureDialog *mConfigureDialog; ConfigureDialog *mConfigureDialog;
//! \brief handle various additional behaviours (math only for now)
bool editEnterPressed();
private slots: private slots:
void realign(); void realign();
void applySettings(); void applySettings();
@ -93,6 +90,7 @@ private slots:
void runCommand(); void runCommand();
void showConfigDialog(); void showConfigDialog();
void shortcutChanged(const QString &oldShortcut, const QString &newShortcut); void shortcutChanged(const QString &oldShortcut, const QString &newShortcut);
void onActiveWindowChanged(WId id);
}; };
#endif // DIALOG_H #endif // DIALOG_H

@ -32,7 +32,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);
QWidget *hiddenPreviewParent = new QWidget(0, Qt::Tool); QWidget *hiddenPreviewParent = new QWidget(0, Qt::Tool);

@ -23,7 +23,7 @@ technologies, ships several core desktop components, all of which are optional:
.P .P
These components perform similar actions to those available in other desktop These components perform similar actions to those available in other desktop
environments, and their names are self-descriptive. They are usually not launched environments, and their names are self-descriptive. They are usually not launched
by hand but automatically, when choosing a \fBLxQt\-qt\fR session in the Display by hand but automatically, when choosing a \fBLXQt\fR session in the Display
Manager. Manager.
.SH BEHAVIOR .SH BEHAVIOR
As you type, suggestions will appear. Once you see the application you wish to run you can navigate As you type, suggestions will appear. Once you see the application you wish to run you can navigate
@ -34,7 +34,7 @@ such as \fBlxqt-globalkeyshortcuts\fR.
This module only shows at \fBLXQt\fR desktop environment, but you can use in others desktops, by This module only shows at \fBLXQt\fR desktop environment, but you can use in others desktops, by
setting an configuring into session startup. setting an configuring into session startup.
.SH "REPORTING BUGS" .SH "REPORTING BUGS"
Report bugs to https://github.com/lxde/lxde-qt/issues Report bugs to https://github.com/lxde/lxqt/issues
.SH "SEE ALSO" .SH "SEE ALSO"
\fBLXQt\fR it has been tailored for users who value simplicity, speed, and \fBLXQt\fR it has been tailored for users who value simplicity, speed, and
an intuitive interface, also intended for less powerful machines. See also: an intuitive interface, also intended for less powerful machines. See also:

@ -89,8 +89,18 @@ bool startProcess(QString command)
QString program = expandCommand(command, &args); QString program = expandCommand(command, &args);
if (program.isEmpty()) if (program.isEmpty())
return false; return false;
if (QProcess::startDetached(program, args))
{
return true;
} else
{
//fallback for executable script with no #!
//trying as in system(2)
args.prepend(program);
args.prepend(QStringLiteral("-c"));
return QProcess::startDetached(QStringLiteral("/bin/sh"), args);
}
return QProcess::startDetached(program, args);
} }
@ -230,11 +240,8 @@ bool AppLinkItem::compare(const QRegExp &regExp) const
if (regExp.isEmpty()) if (regExp.isEmpty())
return false; return false;
QRegExp re(regExp); return mProgram.contains(regExp) ||
mTitle.contains(regExp) ;
re.setCaseSensitivity(Qt::CaseInsensitive);
return mProgram.contains(re) ||
mTitle.contains(re) ;
} }
@ -255,7 +262,7 @@ AppLinkProvider::AppLinkProvider():
mMenuCacheNotify = 0; mMenuCacheNotify = 0;
#else #else
mXdgMenu = new XdgMenu(); mXdgMenu = new XdgMenu();
mXdgMenu->setEnvironments(QStringList() << "X-LXQT" << "LxQt"); mXdgMenu->setEnvironments(QStringList() << "X-LXQT" << "LXQt");
connect(mXdgMenu, SIGNAL(changed()), this, SLOT(update())); connect(mXdgMenu, SIGNAL(changed()), this, SLOT(update()));
mXdgMenu->read(XdgMenu::getMenuFileName()); mXdgMenu->read(XdgMenu::getMenuFileName());
update(); update();
@ -407,10 +414,7 @@ bool HistoryItem::run() const
************************************************/ ************************************************/
bool HistoryItem::compare(const QRegExp &regExp) const bool HistoryItem::compare(const QRegExp &regExp) const
{ {
QRegExp re(regExp); return mCommand.contains(regExp);
re.setCaseSensitivity(Qt::CaseSensitive);
return mCommand.contains(re);
} }
@ -603,7 +607,7 @@ void VirtualBoxItem::setRDEPort(const QString & portNum)
bool VirtualBoxItem::run() const bool VirtualBoxItem::run() const
{ {
QStringList arguments; QStringList arguments;
#ifdef VBOXRUNNER_HEADLESS #ifdef VBOX_HEADLESS_ENABLED
arguments << "-startvm" << title(); arguments << "-startvm" << title();
return QProcess::startDetached ("VBoxHeadless" , arguments); return QProcess::startDetached ("VBoxHeadless" , arguments);
#else #else
@ -615,9 +619,7 @@ bool VirtualBoxItem::run() const
bool VirtualBoxItem::compare(const QRegExp &regExp) const bool VirtualBoxItem::compare(const QRegExp &regExp) const
{ {
QRegExp re(regExp); return (! regExp.isEmpty() && -1 != regExp.indexIn (title ()));
re.setCaseSensitivity(Qt::CaseInsensitive);
return (! regExp.isEmpty() && -1 != re.indexIn (title ()));
} }
unsigned int VirtualBoxItem::rank(const QString &pattern) const unsigned int VirtualBoxItem::rank(const QString &pattern) const
@ -833,54 +835,6 @@ MathProvider::MathProvider()
append(new MathItem()); append(new MathItem());
} }
PowerProviderItem::PowerProviderItem(QAction *action)
: CommandProviderItem(),
m_action(action)
{
mIcon = action->icon();
mTitle = action->text();
mComment = QObject::tr("Power Management");
mToolTip = mComment;
}
bool PowerProviderItem::run() const
{
m_action->activate(QAction::Trigger);
return true;
}
bool PowerProviderItem::compare(const QRegExp &regExp) const
{
if (regExp.isEmpty())
return false;
QRegExp re(regExp);
re.setCaseSensitivity(Qt::CaseInsensitive);
return mTitle.contains(re) ;
}
unsigned int PowerProviderItem::rank(const QString &pattern) const
{
return stringRank(mTitle, pattern);
}
PowerProvider::PowerProvider() : CommandProvider()
{
m_power = new LxQt::PowerManager(this);
foreach (QAction *a, m_power->availableActions())
{
append(new PowerProviderItem(a));
}
m_screensaver = new LxQt::ScreenSaver(this);
foreach (QAction *a, m_screensaver->availableActions())
{
append(new PowerProviderItem(a));
}
}
ExternalProviderItem::ExternalProviderItem() ExternalProviderItem::ExternalProviderItem()
{ {
} }

@ -293,40 +293,6 @@ private:
}; };
#endif #endif
class QAction;
/*! Power management built in into runner
*/
class PowerProviderItem : public CommandProviderItem
{
public:
PowerProviderItem(QAction *action);
bool run() const;
bool compare(const QRegExp &regExp) const;
unsigned int rank(const QString &pattern) const;
private:
QAction *m_action;
};
namespace LxQt {
class PowerManager;
class ScreenSaver;
}
/*! Power management built in into runner
*/
class PowerProvider: public CommandProvider
{
Q_OBJECT
public:
PowerProvider();
private:
LxQt::PowerManager *m_power;
LxQt::ScreenSaver *m_screensaver;
};
class ExternalProviderItem: public CommandProviderItem class ExternalProviderItem: public CommandProviderItem
{ {
Q_OBJECT Q_OBJECT

@ -2,7 +2,7 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>إعدادات مُطلق ريزر</translation> <translation>إعدادات مُطلق ريزر</translation>
</message> </message>
<message> <message>
@ -68,7 +68,7 @@
<translation>الرِّياضيَّات</translation> <translation>الرِّياضيَّات</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>إدارة الطاقة لبيئة ريزر</translation> <translation>إدارة الطاقة لبيئة ريزر</translation>
</message> </message>
</context> </context>

@ -2,7 +2,7 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Nastavení spouštěče programů</translation> <translation>Nastavení spouštěče programů</translation>
</message> </message>
<message> <message>
@ -68,7 +68,7 @@
<translation>Matematika</translation> <translation>Matematika</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Správa energie</translation> <translation>Správa energie</translation>
</message> </message>
</context> </context>

@ -2,7 +2,7 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Nastavení spouštěče programů</translation> <translation>Nastavení spouštěče programů</translation>
</message> </message>
<message> <message>
@ -68,7 +68,7 @@
<translation>Matematika</translation> <translation>Matematika</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Správa energie</translation> <translation>Správa energie</translation>
</message> </message>
</context> </context>

@ -3,7 +3,7 @@
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<location filename="../configuredialog/configuredialog.ui" line="14"/> <location filename="../configuredialog/configuredialog.ui" line="14"/>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation type="unfinished"/> <translation type="unfinished"/>
</message> </message>
<message> <message>

@ -2,7 +2,7 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Programstarter Indstillinger</translation> <translation>Programstarter Indstillinger</translation>
</message> </message>
<message> <message>
@ -46,7 +46,7 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>Indstil LxQt programstarter</translation> <translation>Indstil LXQt programstarter</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
@ -68,8 +68,8 @@
<translation>Matematik</translation> <translation>Matematik</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>LxQt Strømstyring</translation> <translation>LXQt Strømstyring</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -1,50 +1,57 @@
<?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.0"> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="de">
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<location filename="../configuredialog/configuredialog.ui" line="14"/> <location filename="../configuredialog/configuredialog.ui" line="14"/>
<source>LxQt-runner Settings</source> <source>Runner Settings</source>
<translation type="unfinished"/> <translation>Anwendungsstarter-Einstellungen</translation>
</message> </message>
<message> <message>
<location filename="../configuredialog/configuredialog.ui" line="20"/> <location filename="../configuredialog/configuredialog.ui" line="20"/>
<source>Appearance</source> <source>Appearance</source>
<translation type="unfinished"/> <translation>Aussehen</translation>
</message> </message>
<message> <message>
<location filename="../configuredialog/configuredialog.ui" line="26"/> <location filename="../configuredialog/configuredialog.ui" line="26"/>
<source>Positioning:</source> <source>Positioning:</source>
<translation type="unfinished"/> <translation>Positionierung:</translation>
</message> </message>
<message> <message>
<location filename="../configuredialog/configuredialog.ui" line="36"/> <location filename="../configuredialog/configuredialog.ui" line="36"/>
<source>Show on:</source> <source>Show on:</source>
<translation type="unfinished"/> <translation>Anzeigen auf:</translation>
</message> </message>
<message> <message>
<location filename="../configuredialog/configuredialog.ui" line="56"/> <location filename="../configuredialog/configuredialog.ui" line="56"/>
<source>Shortcut:</source> <source>Shortcut:</source>
<translation type="unfinished"/> <translation>Tastenkürzel:</translation>
</message> </message>
<message> <message>
<location filename="../configuredialog/configuredialog.cpp" line="70"/> <location filename="../configuredialog/configuredialog.cpp" line="60"/>
<source>Top edge of screen</source> <source>Top edge of the screen</source>
<translation type="unfinished"/> <translation>Bildschirmoberkante</translation>
</message> </message>
<message> <message>
<location filename="../configuredialog/configuredialog.cpp" line="71"/> <location filename="../configuredialog/configuredialog.cpp" line="61"/>
<source>Center of screen</source> <source>Center of the screen</source>
<translation type="unfinished"/> <translation>Bildschirmmitte</translation>
</message>
<message>
<location filename="../configuredialog/configuredialog.cpp" line="67"/>
<source>Focused screen</source>
<translation>Fokussierter Bildschirm</translation>
</message> </message>
<message> <message>
<location filename="../configuredialog/configuredialog.cpp" line="77"/> <location filename="../configuredialog/configuredialog.cpp" line="71"/>
<source>Monitor where the mouse</source> <source>Always on screen %1</source>
<translation type="unfinished"/> <translation>Immer auf Bildschirm %1</translation>
</message> </message>
<message> <message>
<location filename="../configuredialog/configuredialog.cpp" line="82"/> <location filename="../configuredialog/configuredialog.cpp" line="80"/>
<source>Always on %1 monitor</source> <source>Reset</source>
<translation type="unfinished"/> <translation>Zurücksetzen</translation>
</message> </message>
</context> </context>
<context> <context>
@ -52,30 +59,35 @@
<message> <message>
<location filename="../dialog.ui" line="26"/> <location filename="../dialog.ui" line="26"/>
<source>Application launcher </source> <source>Application launcher </source>
<translation type="unfinished"/> <translation>Anwendungsstarter</translation>
</message>
<message>
<location filename="../dialog.cpp" line="93"/>
<source>Configure</source>
<translation>Konfigurieren</translation>
</message> </message>
<message> <message>
<location filename="../dialog.cpp" line="91"/> <location filename="../dialog.cpp" line="97"/>
<source>Configure lxqt-runner</source> <source>Clear History</source>
<translation type="unfinished"/> <translation>Verlauf löschen</translation>
</message> </message>
<message> <message>
<location filename="../dialog.cpp" line="296"/> <location filename="../dialog.cpp" line="345"/>
<source>Press &quot;%1&quot; to see dialog.</source> <source>Show/hide runner dialog</source>
<translation type="unfinished"/> <translation>Dialog anzeigen/verstecken</translation>
</message> </message>
</context> </context>
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="../providers.cpp" line="221"/> <location filename="../providers.cpp" line="398"/>
<source>History</source> <source>History</source>
<translation type="unfinished"/> <translation>Verlauf</translation>
</message> </message>
<message> <message>
<location filename="../providers.cpp" line="307"/> <location filename="../providers.cpp" line="784"/>
<source>Mathematics</source> <source>Mathematics</source>
<translation type="unfinished"/> <translation>Mathematik</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -1,75 +0,0 @@
<?xml version="1.0" ?><!DOCTYPE TS><TS language="de_DE" version="2.0">
<context>
<name>ConfigureDialog</name>
<message>
<source>LxQt-runner Settings</source>
<translation>LxQt-runner-Einstellungen</translation>
</message>
<message>
<source>Appearance</source>
<translation>Aussehen</translation>
</message>
<message>
<source>Positioning:</source>
<translation>Positionierung:</translation>
</message>
<message>
<source>Show on:</source>
<translation>Anzeigen auf:</translation>
</message>
<message>
<source>Shortcut:</source>
<translation>Tastenkürzel:</translation>
</message>
<message>
<source>Top edge of screen</source>
<translation>Bildschirmoberkante</translation>
</message>
<message>
<source>Center of screen</source>
<translation>Bildschirmmitte</translation>
</message>
<message>
<source>Monitor where the mouse</source>
<translation>Anzeigen, wo die Maus ist</translation>
</message>
<message>
<source>Always on %1 monitor</source>
<translation>Immer auf Monitor %1</translation>
</message>
</context>
<context>
<name>Dialog</name>
<message>
<source>Application launcher </source>
<translation>Anwendungsstarter</translation>
</message>
<message>
<source>Configure lxqt-runner</source>
<translation>Konfiguriere lxqt-runner</translation>
</message>
<message>
<source>Clear lxqt-runner History</source>
<translation>LxQt-runner Verlauf löschen</translation>
</message>
<message>
<source>Press &quot;%1&quot; to see dialog.</source>
<translation>Klicke &quot;%1&quot; für Dialogsansicht.</translation>
</message>
</context>
<context>
<name>QObject</name>
<message>
<source>History</source>
<translation>Verlauf</translation>
</message>
<message>
<source>Mathematics</source>
<translation>Mathematik</translation>
</message>
<message>
<source>LxQt Power Management</source>
<translation>LxQt Energieverwaltung</translation>
</message>
</context>
</TS>

@ -1,9 +1,11 @@
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0"> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="el">
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Ρυθμίσεις εκτελεστή LxQt</translation> <translation>Ρυθμίσεις εκτελεστή LXQt</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -68,8 +70,8 @@
<translation>Μαθηματικά</translation> <translation>Μαθηματικά</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Διαχείριση ενέργειας LxQt</translation> <translation>Διαχείριση ενέργειας LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,7 +2,7 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Agordoj de lxqt-runner</translation> <translation>Agordoj de lxqt-runner</translation>
</message> </message>
<message> <message>
@ -68,8 +68,8 @@
<translation>Matematiko</translation> <translation>Matematiko</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Kurentmastrumilo de LxQt</translation> <translation>Kurentmastrumilo de LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Configuración de LxQt-runner</translation> <translation>Configuración de LXQt-runner</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -50,7 +50,7 @@
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
<translation>Limpiar historial de LxQt-Runner</translation> <translation>Limpiar historial de LXQt-Runner</translation>
</message> </message>
<message> <message>
<source>Press &quot;%1&quot; to see dialog.</source> <source>Press &quot;%1&quot; to see dialog.</source>
@ -68,8 +68,8 @@
<translation>Matemáticas</translation> <translation>Matemáticas</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Administrador de energía de LxQt</translation> <translation>Administrador de energía de LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Configuraciones de LxQt-Ejecutor</translation> <translation>Configuraciones de LXQt-Ejecutor</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -46,7 +46,7 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>Configurar lanzador de LxQt</translation> <translation>Configurar lanzador de LXQt</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
@ -68,8 +68,8 @@
<translation>Matematicas</translation> <translation>Matematicas</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Manejador de energia de LxQt</translation> <translation>Manejador de energia de LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>LxQt-runner ezarpenak</translation> <translation>LXQt-runner ezarpenak</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -68,8 +68,8 @@
<translation>Matematikak</translation> <translation>Matematikak</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>LxQt energia-kudeaketa</translation> <translation>LXQt energia-kudeaketa</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>LxQtin käynnistimen asetukset</translation> <translation>LXQtin käynnistimen asetukset</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -46,11 +46,11 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>Hallitse LxQtin käynnistintä</translation> <translation>Hallitse LXQtin käynnistintä</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
<translation>Tyhjennä LxQt-käynnistimen historia</translation> <translation>Tyhjennä LXQt-käynnistimen historia</translation>
</message> </message>
<message> <message>
<source>Press &quot;%1&quot; to see dialog.</source> <source>Press &quot;%1&quot; to see dialog.</source>
@ -68,8 +68,8 @@
<translation>Matematiikka</translation> <translation>Matematiikka</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>LxQtin virranhallinta</translation> <translation>LXQtin virranhallinta</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,7 +2,7 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Paramètres du lanceur de commandes</translation> <translation>Paramètres du lanceur de commandes</translation>
</message> </message>
<message> <message>
@ -68,7 +68,7 @@
<translation>Mathématiques</translation> <translation>Mathématiques</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Gestion de l&apos;énergie</translation> <translation>Gestion de l&apos;énergie</translation>
</message> </message>
</context> </context>

@ -3,7 +3,7 @@
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<location filename="../configuredialog/configuredialog.ui" line="14"/> <location filename="../configuredialog/configuredialog.ui" line="14"/>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation type="unfinished"/> <translation type="unfinished"/>
</message> </message>
<message> <message>

@ -3,7 +3,7 @@
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<location filename="../configuredialog/configuredialog.ui" line="14"/> <location filename="../configuredialog/configuredialog.ui" line="14"/>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation type="unfinished"/> <translation type="unfinished"/>
</message> </message>
<message> <message>

@ -3,7 +3,7 @@
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<location filename="../configuredialog/configuredialog.ui" line="14"/> <location filename="../configuredialog/configuredialog.ui" line="14"/>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation type="unfinished"/> <translation type="unfinished"/>
</message> </message>
<message> <message>

@ -1,9 +1,11 @@
<?xml version="1.0" ?><!DOCTYPE TS><TS language="it_IT" version="2.0"> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="it">
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Impostazioni di LxQt-runner</translation> <translation>Impostazioni di LXQt-runner</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -46,7 +48,7 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>Configura LxQt-runner</translation> <translation>Configura LXQt-runner</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
@ -68,8 +70,8 @@
<translation>Matematica</translation> <translation>Matematica</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Gestione energetica di LxQt</translation> <translation>Gestione energetica di LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>LxQt-runner</translation> <translation>LXQt-runner</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -50,7 +50,7 @@
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
<translation>LxQt-runner</translation> <translation>LXQt-runner</translation>
</message> </message>
<message> <message>
<source>Press &quot;%1&quot; to see dialog.</source> <source>Press &quot;%1&quot; to see dialog.</source>
@ -68,8 +68,8 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>LxQt</translation> <translation>LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -3,7 +3,7 @@
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<location filename="../configuredialog/configuredialog.ui" line="14"/> <location filename="../configuredialog/configuredialog.ui" line="14"/>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation type="unfinished"/> <translation type="unfinished"/>
</message> </message>
<message> <message>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>LxQt paleidiklio nuostatos</translation> <translation>LXQt paleidiklio nuostatos</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -68,8 +68,8 @@
<translation>Matematika</translation> <translation>Matematika</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>LxQt energijos valdymas</translation> <translation>LXQt energijos valdymas</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>LxQt-uitvoeren Instellingen</translation> <translation>LXQt-uitvoeren Instellingen</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -46,7 +46,7 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>Configureer LxQt-uitvoeren</translation> <translation>Configureer LXQt-uitvoeren</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
@ -68,8 +68,8 @@
<translation>Wiskundig</translation> <translation>Wiskundig</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>LxQt Energiebeheer</translation> <translation>LXQt Energiebeheer</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Ustawienia LxQt-runner</translation> <translation>Ustawienia LXQt-runner</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -68,8 +68,8 @@
<translation>Matematyka</translation> <translation>Matematyka</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Zarządzanie zasilaniem LxQt</translation> <translation>Zarządzanie zasilaniem LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -4,8 +4,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Definições do LxQt-runner</translation> <translation>Definições do LXQt-runner</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -70,8 +70,8 @@
<translation>Matemática</translation> <translation>Matemática</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Gestão de energia do LxQt</translation> <translation>Gestão de energia do LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Configurações do executor do LxQt</translation> <translation>Configurações do executor do LXQt</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -46,11 +46,11 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>Configurar o executor do LxQt</translation> <translation>Configurar o executor do LXQt</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
<translation>Limpar o histórico do executor do LxQt</translation> <translation>Limpar o histórico do executor do LXQt</translation>
</message> </message>
<message> <message>
<source>Press &quot;%1&quot; to see dialog.</source> <source>Press &quot;%1&quot; to see dialog.</source>
@ -68,8 +68,8 @@
<translation>Matemática</translation> <translation>Matemática</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Gerenciamento de energia do LxQt</translation> <translation>Gerenciamento de energia do LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,7 +2,7 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Setări lxqt-runner</translation> <translation>Setări lxqt-runner</translation>
</message> </message>
<message> <message>
@ -68,8 +68,8 @@
<translation>Matematică</translation> <translation>Matematică</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Gestiune alimentare LxQt</translation> <translation>Gestiune alimentare LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Nastavenia Spúšťača LxQt</translation> <translation>Nastavenia Spúšťača LXQt</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -46,7 +46,7 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>Nastaviť Spúšťač LxQt</translation> <translation>Nastaviť Spúšťač LXQt</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
@ -68,7 +68,7 @@
<translation>Matematika</translation> <translation>Matematika</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation type="unfinished"/> <translation type="unfinished"/>
</message> </message>
</context> </context>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Nastavitve za LxQt-runner</translation> <translation>Nastavitve za LXQt-runner</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -46,11 +46,11 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>Nastavitve za LxQt-runner</translation> <translation>Nastavitve za LXQt-runner</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
<translation>Počisti zgodovino za LxQt-runner</translation> <translation>Počisti zgodovino za LXQt-runner</translation>
</message> </message>
<message> <message>
<source>Press &quot;%1&quot; to see dialog.</source> <source>Press &quot;%1&quot; to see dialog.</source>
@ -68,7 +68,7 @@
<translation>Matematika</translation> <translation>Matematika</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Upravljanje z energijo</translation> <translation>Upravljanje z energijo</translation>
</message> </message>
</context> </context>

@ -3,7 +3,7 @@
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<location filename="../configuredialog/configuredialog.ui" line="14"/> <location filename="../configuredialog/configuredialog.ui" line="14"/>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation type="unfinished"/> <translation type="unfinished"/>
</message> </message>
<message> <message>

@ -4,7 +4,7 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Подешавања Рејзор-покретача</translation> <translation>Подешавања Рејзор-покретача</translation>
</message> </message>
<message> <message>

@ -2,7 +2,7 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Подешавања Рејзор-покретача</translation> <translation>Подешавања Рејзор-покретача</translation>
</message> </message>
<message> <message>
@ -68,7 +68,7 @@
<translation>Математика</translation> <translation>Математика</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation type="unfinished"/> <translation type="unfinished"/>
</message> </message>
</context> </context>

@ -2,7 +2,7 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>-lxqt</translation> <translation>-lxqt</translation>
</message> </message>
<message> <message>
@ -68,8 +68,8 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation> LxQt</translation> <translation> LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>LxQt-çalıştırıcı Ayarları</translation> <translation>LXQt-çalıştırıcı Ayarları</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -46,11 +46,11 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>LxQt-çalıştırıcıyı yapılandır</translation> <translation>LXQt-çalıştırıcıyı yapılandır</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
<translation>LxQt-çalıştırıcı geçmişini temizle</translation> <translation>LXQt-çalıştırıcı geçmişini temizle</translation>
</message> </message>
<message> <message>
<source>Press &quot;%1&quot; to see dialog.</source> <source>Press &quot;%1&quot; to see dialog.</source>
@ -68,8 +68,8 @@
<translation>İşlemler</translation> <translation>İşlemler</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>LxQt Güç Yönetimi</translation> <translation>LXQt Güç Yönetimi</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>Налаштування запускача програм LxQt</translation> <translation>Налаштування запускача програм LXQt</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -46,7 +46,7 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>Налаштувати запускач програм LxQt</translation> <translation>Налаштувати запускач програм LXQt</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
@ -68,8 +68,8 @@
<translation>Математика</translation> <translation>Математика</translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>Керування живленням LxQt</translation> <translation>Керування живленням LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>LxQt</translation> <translation>LXQt</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -46,7 +46,7 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>LxQt</translation> <translation>LXQt</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
@ -68,8 +68,8 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>LxQt </translation> <translation>LXQt </translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -2,8 +2,8 @@
<context> <context>
<name>ConfigureDialog</name> <name>ConfigureDialog</name>
<message> <message>
<source>LxQt-runner Settings</source> <source>LXQt-runner Settings</source>
<translation>LxQt</translation> <translation>LXQt</translation>
</message> </message>
<message> <message>
<source>Appearance</source> <source>Appearance</source>
@ -46,11 +46,11 @@
</message> </message>
<message> <message>
<source>Configure lxqt-runner</source> <source>Configure lxqt-runner</source>
<translation>LxQt</translation> <translation>LXQt</translation>
</message> </message>
<message> <message>
<source>Clear lxqt-runner History</source> <source>Clear lxqt-runner History</source>
<translation>LxQt</translation> <translation>LXQt</translation>
</message> </message>
<message> <message>
<source>Press &quot;%1&quot; to see dialog.</source> <source>Press &quot;%1&quot; to see dialog.</source>
@ -68,8 +68,8 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<source>LxQt Power Management</source> <source>LXQt Power Management</source>
<translation>LxQt</translation> <translation>LXQt</translation>
</message> </message>
</context> </context>
</TS> </TS>

@ -1,9 +1,29 @@
/* /* BEGIN_COMMON_COPYRIGHT_HEADER
* File: YamlParser.cpp * (c)LGPL2+
* Author: christian
* *
* Created on 9. maj 2013, 13:13 * LXDE-Qt - a lightweight, Qt based, desktop toolset
*/ * http://razor-qt.org
*
* Copyright: 2013 Razor team
* Authors:
* Christian Surlykke <christian@surlykke.dk>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include <QIODevice> #include <QIODevice>
#include <QRegExp> #include <QRegExp>

@ -1,9 +1,29 @@
/* /* BEGIN_COMMON_COPYRIGHT_HEADER
* File: YamlParser.h * (c)LGPL2+
* Author: christian
* *
* Created on 9. maj 2013, 13:13 * LXDE-Qt - a lightweight, Qt based, desktop toolset
*/ * http://razor-qt.org
*
* Copyright: 2013 Razor team
* Authors:
* Christian Surlykke <christian@surlykke.dk>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#ifndef YAMLPARSER_H #ifndef YAMLPARSER_H
#define YAMLPARSER_H #define YAMLPARSER_H

Loading…
Cancel
Save