aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/panel-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/lumina-desktop/panel-plugins')
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.h2
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/battery/NOTES2
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp2
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/desktopswitcher/LDesktopSwitcher.h2
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h2
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp12
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp2
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.h2
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp2
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp11
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp2
11 files changed, 21 insertions, 20 deletions
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.h b/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.h
index 3d31faad..29562d5d 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.h
+++ b/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.h
@@ -12,7 +12,7 @@
#include <QString>
#include <QLabel>
-#include <LuminaUtils.h>
+#include <LUtils.h>
#include <LuminaXDG.h>
#include <LuminaOS.h>
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/battery/NOTES b/src-qt5/core/lumina-desktop/panel-plugins/battery/NOTES
index 3ea07778..3d93267e 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/battery/NOTES
+++ b/src-qt5/core/lumina-desktop/panel-plugins/battery/NOTES
@@ -22,7 +22,7 @@ apm -l
apm -t
Zeigt die verbleibende Zeit in Sekunden
-Aufruf Systemfunktionen: LuminaUtils.h
+Aufruf Systemfunktionen: LUtils.h
mit der Methode:
QStringList LUtils::getCmdOutput(QString cmd, QStringList args)
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp b/src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp
index 9903d4fd..90d942de 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp
@@ -102,7 +102,7 @@ void LDeskBarPlugin::filechanged(QString file){
}
void LDeskBarPlugin::updateFiles(){
QFileInfoList homefiles = LSession::handle()->DesktopFiles();
- QStringList favitems = LUtils::listFavorites();
+ QStringList favitems = LDesktopUtils::listFavorites();
//Remember for format for favorites: <name>::::[app/dir/<mimetype>]::::<full path>
for(int i=0; i<homefiles.length(); i++){
if( !favitems.filter(homefiles[i].canonicalFilePath()).isEmpty() ){ continue; } //duplicate entry
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/desktopswitcher/LDesktopSwitcher.h b/src-qt5/core/lumina-desktop/panel-plugins/desktopswitcher/LDesktopSwitcher.h
index 851d9e35..af9250b7 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/desktopswitcher/LDesktopSwitcher.h
+++ b/src-qt5/core/lumina-desktop/panel-plugins/desktopswitcher/LDesktopSwitcher.h
@@ -14,7 +14,7 @@
#include <QMenu>
#include <QToolButton>
-#include <LuminaUtils.h>
+#include <LUtils.h>
#include <LuminaXDG.h>
#include <LuminaX11.h>
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h b/src-qt5/core/lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h
index e160c2b3..6f61c4d5 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h
+++ b/src-qt5/core/lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h
@@ -13,7 +13,7 @@
#include <QVBoxLayout>
#include "../LPPlugin.h"
-#include <LuminaUtils.h>
+#include <LUtils.h>
#include <QDebug>
class QuickPPlugin : public LPPlugin{
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp
index 15b9c72c..ea074a59 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp
@@ -5,7 +5,7 @@
// See the LICENSE file for full details
//===========================================
#include "ItemWidget.h"
-#include <LuminaUtils.h>
+#include <LUtils.h>
#include <QMenu>
#include "../../LSession.h"
@@ -73,7 +73,7 @@ ItemWidget::ItemWidget(QWidget *parent, QString itemPath, QString type, bool gob
icon->setWhatsThis(itemPath);
if(!goback){ this->setWhatsThis(name->text()); }
isDirectory = (type=="dir"); //save this for later
- if(LUtils::isFavorite(itemPath)){
+ if(LDesktopUtils::isFavorite(itemPath)){
linkPath = itemPath;
isShortcut=true;
}else if( inHome ){//|| itemPath.section("/",0,-2)==QDir::homePath()+"/Desktop" ){
@@ -93,7 +93,7 @@ ItemWidget::ItemWidget(QWidget *parent, XDGDesktop *item) : QFrame(parent){
createWidget();
if(item==0){ gooditem = false; return; }
isDirectory = false;
- if(LUtils::isFavorite(item->filePath)){
+ if(LDesktopUtils::isFavorite(item->filePath)){
linkPath = item->filePath;
isShortcut=true;
}else if( item->filePath.section("/",0,-2)==QDir::homePath()+"/Desktop" ){
@@ -177,7 +177,7 @@ void ItemWidget::setupContextMenu(){
contextMenu->addAction( LXDG::findIcon("preferences-desktop-icons",""), tr("Pin to Desktop"), this, SLOT(PinToDesktop()) );
}
//Favorite Item
- if( LUtils::isFavorite(icon->whatsThis()) ){ //Favorite Item - can always remove this
+ if( LDesktopUtils::isFavorite(icon->whatsThis()) ){ //Favorite Item - can always remove this
contextMenu->addAction( LXDG::findIcon("edit-delete",""), tr("Remove from Favorites"), this, SLOT(RemoveFavorite()) );
}else{
//This file does not have a shortcut yet -- allow the user to add it
@@ -242,13 +242,13 @@ void ItemWidget::PinToDesktop(){
}
void ItemWidget::RemoveFavorite(){
- LUtils::removeFavorite(icon->whatsThis());
+ LDesktopUtils::removeFavorite(icon->whatsThis());
linkPath.clear();
emit RemovedShortcut();
}
void ItemWidget::AddFavorite(){
- if( LUtils::addFavorite(icon->whatsThis()) ){
+ if( LDesktopUtils::addFavorite(icon->whatsThis()) ){
linkPath = icon->whatsThis();
emit NewShortcut();
}
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp
index 0a396464..f44add77 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp
@@ -8,7 +8,7 @@
#include "../../LSession.h"
#include <LuminaXDG.h>
-#include <LuminaUtils.h> //This contains the "ResizeMenu" class
+#include <LUtils.h> //This contains the "ResizeMenu" class
LStartButtonPlugin::LStartButtonPlugin(QWidget *parent, QString id, bool horizontal) : LPPlugin(parent, id, horizontal){
button = new QToolButton(this);
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.h b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.h
index 22742bc5..d46bb1be 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.h
+++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.h
@@ -24,7 +24,7 @@
// libLumina includes
#include <LuminaXDG.h>
-#include <LuminaUtils.h>
+#include <LUtils.h>
#include <ResizeMenu.h>
#include "StartMenu.h"
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
index bfac46c0..260215ec 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
@@ -411,7 +411,7 @@ void StartMenu::UpdateApps(){
void StartMenu::UpdateFavs(){
//SYNTAX NOTE: (per-line) "<name>::::[dir/app/<mimetype>]::::<path>"
- QStringList newfavs = LUtils::listFavorites();
+ QStringList newfavs = LDesktopUtils::listFavorites();
if(favs == newfavs){ return; } //nothing to do - same as before
favs = newfavs;
ClearScrollArea(ui->scroll_favs);
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp b/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
index a1dfe956..8d7dab7a 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
@@ -5,7 +5,8 @@
// See the LICENSE file for full details
//===========================================
#include "UserItemWidget.h"
-#include <LuminaUtils.h>
+#include <LUtils.h>
+#include <LDesktopUtils.h>
#include <QMenu>
#define TEXTCUTOFF 165
@@ -50,7 +51,7 @@ UserItemWidget::UserItemWidget(QWidget *parent, QString itemPath, QString type,
icon->setWhatsThis(itemPath);
if(!goback){ this->setWhatsThis(name->text()); }
isDirectory = (type=="dir"); //save this for later
- if(LUtils::isFavorite(itemPath)){
+ if(LDesktopUtils::isFavorite(itemPath)){
linkPath = itemPath;
isShortcut=true;
}else if( inHome ){//|| itemPath.section("/",0,-2)==QDir::homePath()+"/Desktop" ){
@@ -66,7 +67,7 @@ UserItemWidget::UserItemWidget(QWidget *parent, XDGDesktop *item) : QFrame(paren
if(item==0){ return; }
createWidget();
isDirectory = false;
- if(LUtils::isFavorite(item->filePath)){
+ if(LDesktopUtils::isFavorite(item->filePath)){
linkPath = item->filePath;
isShortcut=true;
}else if( item->filePath.section("/",0,-2)==QDir::homePath()+"/Desktop" ){
@@ -171,7 +172,7 @@ void UserItemWidget::setupActions(XDGDesktop *app){
void UserItemWidget::buttonClicked(){
button->setVisible(false);
if(button->whatsThis()=="add"){
- LUtils::addFavorite(icon->whatsThis());
+ LDesktopUtils::addFavorite(icon->whatsThis());
//QFile::link(icon->whatsThis(), QDir::homePath()+"/.lumina/favorites/"+icon->whatsThis().section("/",-1) );
emit NewShortcut();
}else if(button->whatsThis()=="remove"){
@@ -184,7 +185,7 @@ void UserItemWidget::buttonClicked(){
}
//Don't emit the RemovedShortcut signal here - the automatic ~/Desktop watcher will see the change when finished
}else{
- LUtils::removeFavorite(icon->whatsThis()); //This is a favorite
+ LDesktopUtils::removeFavorite(icon->whatsThis()); //This is a favorite
emit RemovedShortcut();
}
}
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp b/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp
index fb58c7f6..a0ba8996 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp
@@ -221,7 +221,7 @@ void UserWidget::updateFavItems(bool newfilter){
if(updatingfavs){ return; }
updatingfavs = true;
//qDebug() << "Updating User Favorite Items";
- QStringList newfavs = LUtils::listFavorites();
+ QStringList newfavs = LDesktopUtils::listFavorites();
//qDebug() << "Favorites:" << newfavs;
if(lastHomeUpdate.isNull() || (QFileInfo(QDir::homePath()+"/Desktop").lastModified() > lastHomeUpdate) || newfavs!=favs ){
favs = newfavs;
bgstack15