aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/lumina-desktop')
-rw-r--r--src-qt5/core/lumina-desktop/AppMenu.cpp54
-rw-r--r--src-qt5/core/lumina-desktop/AppMenu.h5
-rw-r--r--src-qt5/core/lumina-desktop/LDesktop.cpp5
-rw-r--r--src-qt5/core/lumina-desktop/SettingsMenu.cpp5
-rw-r--r--src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp11
-rw-r--r--src-qt5/core/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp5
-rw-r--r--src-qt5/core/lumina-desktop/i18n/lumina-desktop_sv.ts526
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/applauncher/AppLaunchButton.cpp12
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/appmenu/LAppMenuPlugin.cpp43
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp6
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp41
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.h4
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp55
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.h2
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp36
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.h4
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp10
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.h2
18 files changed, 410 insertions, 416 deletions
diff --git a/src-qt5/core/lumina-desktop/AppMenu.cpp b/src-qt5/core/lumina-desktop/AppMenu.cpp
index cbf71e62..798d8b6d 100644
--- a/src-qt5/core/lumina-desktop/AppMenu.cpp
+++ b/src-qt5/core/lumina-desktop/AppMenu.cpp
@@ -11,6 +11,7 @@
AppMenu::AppMenu(QWidget* parent) : QMenu(parent){
appstorelink = LOS::AppStoreShortcut(); //Default application "store" to display (AppCafe in TrueOS)
controlpanellink = LOS::ControlPanelShortcut(); //Default control panel
+ sysApps = new XDGDesktopList(this, true); //have this one automatically keep in sync
APPS.clear();
//watcher = new QFileSystemWatcher(this);
//connect(watcher, SIGNAL(directoryChanged(QString)), this, SLOT(watcherUpdate()) );
@@ -24,7 +25,7 @@ AppMenu::~AppMenu(){
}
-QHash<QString, QList<XDGDesktop> >* AppMenu::currentAppHash(){
+QHash<QString, QList<XDGDesktop*> >* AppMenu::currentAppHash(){
return &APPS;
}
@@ -38,8 +39,7 @@ void AppMenu::updateAppList(){
this->setIcon( LXDG::findIcon("system-run","") );
//Now update the lists
this->clear();
- APPS.clear();
- XDGDesktopList *sysApps = LXDG:: systemAppsList();
+ APPS.clear(); //NOTE: Don't delete these pointers - the pointers are managed by the sysApps class and these are just references to them
//qDebug() << "New Apps List:";
if(LSession::handle()->sessionSettings()->value("AutomaticDesktopAppLinks",true).toBool() && !lastHashUpdate.isNull() ){
QString desktop = QDir::homePath()+"/"+tr("Desktop")+"/"; //translated desktop folder
@@ -60,8 +60,8 @@ void AppMenu::updateAppList(){
}
tmp = sysApps->newApps;
for(int i=0; i<tmp.length() && !desktop.isEmpty(); i++){
- XDGDesktop desk = sysApps->files.value(tmp[i]);
- if(desk.isHidden || !LXDG::checkValidity(desk, false) ){ continue; } //skip this one
+ XDGDesktop *desk = sysApps->files.value(tmp[i]);
+ if(desk->isHidden || !desk->isValid(false) ){ continue; } //skip this one
//qDebug() << "New App: " << tmp[i] << desk.filePath << "Hidden:" << desk.isHidden;
//Create a new symlink for this file if one does not exist
QString filename = tmp[i].section("/",-1);
@@ -69,23 +69,22 @@ void AppMenu::updateAppList(){
if(!QFile::exists(desktop+filename) ){ QFile::link(tmp[i], desktop+filename); }
}
}
- QList<XDGDesktop> allfiles = sysApps->apps(false,false); //only valid, non-hidden apps
+ QList<XDGDesktop*> allfiles = sysApps->apps(false,false); //only valid, non-hidden apps
APPS = LXDG::sortDesktopCats(allfiles);
APPS.insert("All", LXDG::sortDesktopNames(allfiles));
lastHashUpdate = QDateTime::currentDateTime();
//Now fill the menu
- bool ok; //for checking inputs
//Add link to the file manager
//this->addAction( LXDG::findIcon("user-home", ""), tr("Browse Files"), this, SLOT(launchFileManager()) );
//--Look for the app store
- XDGDesktop store = LXDG::loadDesktopFile(appstorelink, ok);
- if(ok){
+ XDGDesktop store(appstorelink);
+ if(store.isValid()){
this->addAction( LXDG::findIcon(store.icon, ""), tr("Manage Applications"), this, SLOT(launchStore()) );
}
//--Look for the control panel
- store = LXDG::loadDesktopFile(controlpanellink, ok);
- if(ok){
- this->addAction( LXDG::findIcon(store.icon, ""), tr("Control Panel"), this, SLOT(launchControlPanel()) );
+ XDGDesktop controlp(controlpanellink);
+ if(controlp.isValid()){
+ this->addAction( LXDG::findIcon(controlp.icon, ""), tr("Control Panel"), this, SLOT(launchControlPanel()) );
}
this->addSeparator();
//--Now create the sub-menus
@@ -112,29 +111,29 @@ void AppMenu::updateAppList(){
QMenu *menu = new QMenu(name, this);
menu->setIcon(LXDG::findIcon(icon,""));
connect(menu, SIGNAL(triggered(QAction*)), this, SLOT(launchApp(QAction*)) );
- QList<XDGDesktop> appL = APPS.value(cats[i]);
+ QList<XDGDesktop*> appL = APPS.value(cats[i]);
for( int a=0; a<appL.length(); a++){
- if(appL[a].actions.isEmpty()){
+ if(appL[a]->actions.isEmpty()){
//Just a single entry point - no extra actions
- QAction *act = new QAction(LXDG::findIcon(appL[a].icon, ""), appL[a].name, this);
- act->setToolTip(appL[a].comment);
- act->setWhatsThis(appL[a].filePath);
+ QAction *act = new QAction(LXDG::findIcon(appL[a]->icon, ""), appL[a]->name, this);
+ act->setToolTip(appL[a]->comment);
+ act->setWhatsThis(appL[a]->filePath);
menu->addAction(act);
}else{
//This app has additional actions - make this a sub menu
// - first the main menu/action
- QMenu *submenu = new QMenu(appL[a].name, this);
- submenu->setIcon( LXDG::findIcon(appL[a].icon,"") );
+ QMenu *submenu = new QMenu(appL[a]->name, this);
+ submenu->setIcon( LXDG::findIcon(appL[a]->icon,"") );
//This is the normal behavior - not a special sub-action (although it needs to be at the top of the new menu)
- QAction *act = new QAction(LXDG::findIcon(appL[a].icon, ""), appL[a].name, this);
- act->setToolTip(appL[a].comment);
- act->setWhatsThis(appL[a].filePath);
+ QAction *act = new QAction(LXDG::findIcon(appL[a]->icon, ""), appL[a]->name, this);
+ act->setToolTip(appL[a]->comment);
+ act->setWhatsThis(appL[a]->filePath);
submenu->addAction(act);
//Now add entries for every sub-action listed
- for(int sa=0; sa<appL[a].actions.length(); sa++){
- QAction *sact = new QAction(LXDG::findIcon(appL[a].actions[sa].icon, appL[a].icon), appL[a].actions[sa].name, this);
- sact->setToolTip(appL[a].comment);
- sact->setWhatsThis("-action \""+appL[a].actions[sa].ID+"\" \""+appL[a].filePath+"\"");
+ for(int sa=0; sa<appL[a]->actions.length(); sa++){
+ QAction *sact = new QAction(LXDG::findIcon(appL[a]->actions[sa].icon, appL[a]->icon), appL[a]->actions[sa].name, this);
+ sact->setToolTip(appL[a]->comment);
+ sact->setWhatsThis("-action \""+appL[a]->actions[sa].ID+"\" \""+appL[a]->filePath+"\"");
submenu->addAction(sact);
}
menu->addMenu(submenu);
@@ -151,7 +150,8 @@ void AppMenu::updateAppList(){
//=================
void AppMenu::start(){
//Setup the watcher
- connect(LXDG:: systemAppsList(), SIGNAL(appsUpdated()), this, SLOT(watcherUpdate()) );
+ connect(sysApps, SIGNAL(appsUpdated()), this, SLOT(watcherUpdate()) );
+ sysApps->updateList();
//Now fill the menu the first time
updateAppList();
}
diff --git a/src-qt5/core/lumina-desktop/AppMenu.h b/src-qt5/core/lumina-desktop/AppMenu.h
index 7584de07..5baaab7a 100644
--- a/src-qt5/core/lumina-desktop/AppMenu.h
+++ b/src-qt5/core/lumina-desktop/AppMenu.h
@@ -31,14 +31,15 @@ public:
AppMenu(QWidget *parent = 0);
~AppMenu();
- QHash<QString, QList<XDGDesktop> > *currentAppHash();
+ QHash<QString, QList<XDGDesktop*> > *currentAppHash();
QDateTime lastHashUpdate;
private:
//QFileSystemWatcher *watcher;
QString appstorelink, controlpanellink;
QList<QMenu> MLIST;
- QHash<QString, QList<XDGDesktop> > APPS;
+ XDGDesktopList *sysApps;
+ QHash<QString, QList<XDGDesktop*> > APPS;
void updateAppList(); //completely update the menu lists
diff --git a/src-qt5/core/lumina-desktop/LDesktop.cpp b/src-qt5/core/lumina-desktop/LDesktop.cpp
index e3d946d4..f1b73bc0 100644
--- a/src-qt5/core/lumina-desktop/LDesktop.cpp
+++ b/src-qt5/core/lumina-desktop/LDesktop.cpp
@@ -280,9 +280,8 @@ void LDesktop::UpdateMenu(bool fast){
else if(items[i].startsWith("app::::") && items[i].endsWith(".desktop")){
//Custom *.desktop application
QString file = items[i].section("::::",1,1).simplified();
- bool ok = false;
- XDGDesktop xdgf = LXDG::loadDesktopFile(file, ok);
- if(ok){
+ XDGDesktop xdgf(file);// = LXDG::loadDesktopFile(file, ok);
+ if(xdgf.type!=XDGDesktop::BAD){
deskMenu->addAction( LXDG::findIcon(xdgf.icon,""), xdgf.name)->setWhatsThis(file);
}else{
qDebug() << "Could not load application file:" << file;
diff --git a/src-qt5/core/lumina-desktop/SettingsMenu.cpp b/src-qt5/core/lumina-desktop/SettingsMenu.cpp
index 10ada2cf..80ef3042 100644
--- a/src-qt5/core/lumina-desktop/SettingsMenu.cpp
+++ b/src-qt5/core/lumina-desktop/SettingsMenu.cpp
@@ -45,9 +45,8 @@ void SettingsMenu::UpdateMenu(){
QString CONTROLPANEL = LOS::ControlPanelShortcut();
if(QFile::exists(CONTROLPANEL) && !CONTROLPANEL.isEmpty()){
//Now load the info
- bool ok = false;
- XDGDesktop cpan = LXDG::loadDesktopFile(CONTROLPANEL, ok);
- if(ok){
+ XDGDesktop cpan(CONTROLPANEL);
+ if(cpan.isValid()){
act = new QAction( LXDG::findIcon(cpan.icon,""), tr("Control Panel"), this);
act->setWhatsThis("lumina-open \""+CONTROLPANEL+"\"");
this->addAction(act);
diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
index 8c7af5e9..bd8e79db 100644
--- a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
+++ b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
@@ -38,8 +38,9 @@ void AppLauncherPlugin::loadButton(){
button->setIconSize( QSize(icosize,icosize) );
QString txt;
if(path.endsWith(".desktop") && ok){
- XDGDesktop file = LXDG::loadDesktopFile(path, ok);
- if(path.isEmpty() || !QFile::exists(path) || !ok){
+ XDGDesktop file(path);
+ ok = file.isValid();
+ if(!ok){
button->setWhatsThis("");
button->setIcon( QIcon(LXDG::findIcon("quickopen-file","").pixmap(QSize(icosize,icosize)).scaledToHeight(icosize, Qt::SmoothTransformation) ) );
txt = tr("Click to Set");
@@ -125,13 +126,13 @@ void AppLauncherPlugin::buttonClicked(){
QString path = button->whatsThis();
if(path.isEmpty() || !QFile::exists(path) ){
//prompt for the user to select an application
- QList<XDGDesktop> apps = LXDG::sortDesktopNames( LXDG::systemDesktopFiles() );
+ QList<XDGDesktop*> apps = LXDG::sortDesktopNames( LXDG::systemDesktopFiles() );
QStringList names;
- for(int i=0; i<apps.length(); i++){ names << apps[i].name; }
+ for(int i=0; i<apps.length(); i++){ names << apps[i]->name; }
bool ok = false;
QString app = QInputDialog::getItem(this, tr("Select Application"), tr("Name:"), names, 0, false, &ok);
if(!ok || names.indexOf(app)<0){ return; } //cancelled
- this->saveSetting("applicationpath", apps[ names.indexOf(app) ].filePath);
+ this->saveSetting("applicationpath", apps[ names.indexOf(app) ]->filePath);
QTimer::singleShot(0,this, SLOT(loadButton()));
}else{
LSession::LaunchApplication("lumina-open \""+path+"\"");
diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp b/src-qt5/core/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
index 01e174e9..90f3374b 100644
--- a/src-qt5/core/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
+++ b/src-qt5/core/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
@@ -149,9 +149,8 @@ void DesktopViewPlugin::updateContents(){
it->setIcon( LXDG::findIcon("folder","") );
txt = files[i].fileName();
}else if(files[i].suffix() == "desktop" ){
- bool ok = false;
- XDGDesktop desk = LXDG::loadDesktopFile(files[i].absoluteFilePath(), ok);
- if(ok){
+ XDGDesktop desk(files[i].absoluteFilePath());
+ if(desk.isValid()){
it->setIcon( LXDG::findIcon(desk.icon,"unknown") );
if(desk.name.isEmpty()){
txt = files[i].fileName();
diff --git a/src-qt5/core/lumina-desktop/i18n/lumina-desktop_sv.ts b/src-qt5/core/lumina-desktop/i18n/lumina-desktop_sv.ts
index 677f3cee..2c46c490 100644
--- a/src-qt5/core/lumina-desktop/i18n/lumina-desktop_sv.ts
+++ b/src-qt5/core/lumina-desktop/i18n/lumina-desktop_sv.ts
@@ -1,30 +1,30 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE TS>
<TS version="2.1" language="sv">
<context>
<name>AppLaunchButtonPlugin</name>
<message>
- <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="32"/>
+ <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="32"></location>
<source>Click to assign an application</source>
<translation>Klicka här för att tilldela ett program</translation>
</message>
<message>
- <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="38"/>
+ <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="38"></location>
<source>Launch %1</source>
<translation>Starta %1</translation>
</message>
<message>
- <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="45"/>
+ <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="45"></location>
<source>Open %1</source>
<translation>Öppna %1</translation>
</message>
<message>
- <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="63"/>
+ <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="63"></location>
<source>Select Application</source>
<translation>Välj program</translation>
</message>
<message>
- <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="63"/>
+ <location filename="../panel-plugins/applauncher/AppLaunchButton.cpp" line="63"></location>
<source>Name:</source>
<translation>Namn:</translation>
</message>
@@ -32,18 +32,18 @@
<context>
<name>AppLauncherPlugin</name>
<message>
- <location filename="../desktop-plugins/applauncher/AppLauncherPlugin.cpp" line="45"/>
- <location filename="../desktop-plugins/applauncher/AppLauncherPlugin.cpp" line="71"/>
+ <location filename="../desktop-plugins/applauncher/AppLauncherPlugin.cpp" line="45"></location>
+ <location filename="../desktop-plugins/applauncher/AppLauncherPlugin.cpp" line="71"></location>
<source>Click to Set</source>
<translation>Klicka för att tilldela</translation>
</message>
<message>
- <location filename="../desktop-plugins/applauncher/AppLauncherPlugin.cpp" line="132"/>
+ <location filename="../desktop-plugins/applauncher/AppLauncherPlugin.cpp" line="132"></location>
<source>Select Application</source>
<translation>Välj program</translation>
</message>
<message>
- <location filename="../desktop-plugins/applauncher/AppLauncherPlugin.cpp" line="132"/>
+ <location filename="../desktop-plugins/applauncher/AppLauncherPlugin.cpp" line="132"></location>
<source>Name:</source>
<translation>Namn:</translation>
</message>
@@ -51,87 +51,87 @@
<context>
<name>AppMenu</name>
<message>
- <location filename="../AppMenu.cpp" line="45"/>
+ <location filename="../AppMenu.cpp" line="45"></location>
<source>Desktop</source>
- <translation type="unfinished">Skrivbord</translation>
+ <translation>Skrivbord</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="83"/>
+ <location filename="../AppMenu.cpp" line="83"></location>
<source>Manage Applications</source>
<translation>Hantera program</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="88"/>
+ <location filename="../AppMenu.cpp" line="88"></location>
<source>Control Panel</source>
<translation>Kontrollpanel</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="98"/>
+ <location filename="../AppMenu.cpp" line="98"></location>
<source>Multimedia</source>
<translation>Multimedia</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="99"/>
+ <location filename="../AppMenu.cpp" line="99"></location>
<source>Development</source>
<translation>Utveckling</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="100"/>
+ <location filename="../AppMenu.cpp" line="100"></location>
<source>Education</source>
<translation>Utbildning</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="101"/>
+ <location filename="../AppMenu.cpp" line="101"></location>
<source>Games</source>
<translation>Spel</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="102"/>
+ <location filename="../AppMenu.cpp" line="102"></location>
<source>Graphics</source>
<translation>Grafik</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="103"/>
+ <location filename="../AppMenu.cpp" line="103"></location>
<source>Network</source>
<translation>Nätverk</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="104"/>
+ <location filename="../AppMenu.cpp" line="104"></location>
<source>Office</source>
<translation>Kontorsprogram</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="105"/>
+ <location filename="../AppMenu.cpp" line="105"></location>
<source>Science</source>
<translation>Vetenskap</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="106"/>
+ <location filename="../AppMenu.cpp" line="106"></location>
<source>Settings</source>
<translation>Inställningar</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="107"/>
+ <location filename="../AppMenu.cpp" line="107"></location>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="108"/>
+ <location filename="../AppMenu.cpp" line="108"></location>
<source>Utility</source>
<translation>Verktyg</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="109"/>
+ <location filename="../AppMenu.cpp" line="109"></location>
<source>Wine</source>
<translation>Wine</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="110"/>
+ <location filename="../AppMenu.cpp" line="110"></location>
<source>Unsorted</source>
<translation>Osorterade</translation>
</message>
<message>
- <location filename="../AppMenu.cpp" line="37"/>
+ <location filename="../AppMenu.cpp" line="37"></location>
<source>Applications</source>
<translation>Program</translation>
</message>
@@ -139,57 +139,57 @@
<context>
<name>BootSplash</name>
<message>
- <location filename="../BootSplash.ui" line="14"/>
+ <location filename="../BootSplash.ui" line="14"></location>
<source>Form</source>
<translation>Formulär</translation>
</message>
<message>
- <location filename="../BootSplash.cpp" line="18"/>
+ <location filename="../BootSplash.cpp" line="18"></location>
<source>Initializing Session …</source>
<translation>Initierar session …</translation>
</message>
<message>
- <location filename="../BootSplash.cpp" line="21"/>
+ <location filename="../BootSplash.cpp" line="21"></location>
<source>Loading System Settings …</source>
<translation>Laddar systeminställningar ...</translation>
</message>
<message>
- <location filename="../BootSplash.cpp" line="24"/>
+ <location filename="../BootSplash.cpp" line="24"></location>
<source>Loading User Preferences …</source>
<translation>Laddar användarinställningar …</translation>
</message>
<message>
- <location filename="../BootSplash.cpp" line="27"/>
+ <location filename="../BootSplash.cpp" line="27"></location>
<source>Preparing System Tray …</source>
<translation>Förbereder System bricka…</translation>
</message>
<message>
- <location filename="../BootSplash.cpp" line="30"/>
+ <location filename="../BootSplash.cpp" line="30"></location>
<source>Starting Window Manager …</source>
<translation>Startar fönsterhanterare …</translation>
</message>
<message>
- <location filename="../BootSplash.cpp" line="33"/>
+ <location filename="../BootSplash.cpp" line="33"></location>
<source>Detecting Applications …</source>
<translation>Upptäcker program…</translation>
</message>
<message>
- <location filename="../BootSplash.cpp" line="36"/>
+ <location filename="../BootSplash.cpp" line="36"></location>
<source>Preparing Menus …</source>
<translation>Förbereder menyer…</translation>
</message>
<message>
- <location filename="../BootSplash.cpp" line="39"/>
+ <location filename="../BootSplash.cpp" line="39"></location>
<source>Preparing Workspace …</source>
<translation>Förbereder arbetsytor…</translation>
</message>
<message>
- <location filename="../BootSplash.cpp" line="42"/>
+ <location filename="../BootSplash.cpp" line="42"></location>
<source>Finalizing …</source>
<translation>Slutför…</translation>
</message>
<message>
- <location filename="../BootSplash.cpp" line="45"/>
+ <location filename="../BootSplash.cpp" line="45"></location>
<source>Starting App: %1</source>
<translation>Startar program: %1</translation>
</message>
@@ -197,37 +197,37 @@
<context>
<name>DesktopViewPlugin</name>
<message>
- <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="28"/>
+ <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="28"></location>
<source>Open</source>
<translation>Öppna</translation>
</message>
<message>
- <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="30"/>
+ <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="30"></location>
<source>Cut</source>
<translation>Klipp ut</translation>
</message>
<message>
- <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="31"/>
+ <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="31"></location>
<source>Copy</source>
<translation>Kopiera</translation>
</message>
<message>
- <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="33"/>
+ <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="33"></location>
<source>Increase Icons</source>
<translation>Förstora ikoner</translation>
</message>
<message>
- <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="34"/>
+ <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="34"></location>
<source>Decrease Icons</source>
<translation>Förminska ikoner</translation>
</message>
<message>
- <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="36"/>
+ <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="36"></location>
<source>Delete</source>
<translation>Ta bort</translation>
</message>
<message>
- <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="39"/>
+ <location filename="../desktop-plugins/desktopview/DesktopViewPlugin.cpp" line="39"></location>
<source>Properties</source>
<translation>Egenskaper</translation>
</message>
@@ -235,32 +235,32 @@
<context>
<name>ItemWidget</name>
<message>
- <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="39"/>
+ <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="39"></location>
<source>Go Back</source>
<translation>Gå bakåt</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="161"/>
+ <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="161"></location>
<source>Pin to Desktop</source>
<translation>Fäst på skrivbordet</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="165"/>
+ <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="165"></location>
<source>Remove from Favorites</source>
<translation>Ta bort från favoriter</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="168"/>
+ <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="168"></location>
<source>Add to Favorites</source>
<translation>Lägg till i favoriter</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="172"/>
+ <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="172"></location>
<source>Remove from Quicklaunch</source>
<translation>Ta bort från Snabbstart</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="175"/>
+ <location filename="../panel-plugins/systemstart/ItemWidget.cpp" line="175"></location>
<source>Add to Quicklaunch</source>
<translation>Lägg till i Snabbstart</translation>
</message>
@@ -268,7 +268,7 @@
<context>
<name>JsonMenu</name>
<message>
- <location filename="../JsonMenu.h" line="60"/>
+ <location filename="../JsonMenu.h" line="60"></location>
<source>Error parsing script output: %1</source>
<translation>Fel vid skriptanalysutmatning: %1</translation>
</message>
@@ -276,97 +276,97 @@
<context>
<name>LAppMenuPlugin</name>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="37"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="37"></location>
<source>Quickly launch applications or open files</source>
<translation>Snabbt starta program eller öppna filer</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="38"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="38"></location>
<source>Applications</source>
<translation>Program</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="69"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="69"></location>
<source>Browse Files</source>
<translation>Bläddra bland filer</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="74"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="74"></location>
<source>Install Applications</source>
<translation>Installera program</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="80"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="80"></location>
<source>Control Panel</source>
<translation>Kontrollpanel</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="91"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="91"></location>
<source>Multimedia</source>
<translation>Multimedia</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="92"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="92"></location>
<source>Development</source>
<translation>Utveckling</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="93"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="93"></location>
<source>Education</source>
<translation>Utbildning</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="94"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="94"></location>
<source>Games</source>
<translation>Spel</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="95"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="95"></location>
<source>Graphics</source>
<translation>Grafik</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="96"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="96"></location>
<source>Network</source>
<translation>Nätverk</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="97"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="97"></location>
<source>Office</source>
<translation>Kontorsprogram</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="98"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="98"></location>
<source>Science</source>
<translation>Vetenskap</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="99"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="99"></location>
<source>Settings</source>
<translation>Inställningar</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="100"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="100"></location>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="101"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="101"></location>
<source>Utility</source>
<translation>Verktyg</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="102"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="102"></location>
<source>Wine</source>
<translation>Wine</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="103"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="103"></location>
<source>Unsorted</source>
<translation>Osorterade</translation>
</message>
<message>
- <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="140"/>
+ <location filename="../panel-plugins/appmenu/LAppMenuPlugin.cpp" line="140"></location>
<source>Leave</source>
<translation>Lämna</translation>
</message>
@@ -374,12 +374,12 @@
<context>
<name>LBattery</name>
<message>
- <location filename="../panel-plugins/battery/LBattery.cpp" line="83"/>
+ <location filename="../panel-plugins/battery/LBattery.cpp" line="83"></location>
<source>%1 % (Charging)</source>
<translation>%1 % (Laddar)</translation>
</message>
<message>
- <location filename="../panel-plugins/battery/LBattery.cpp" line="84"/>
+ <location filename="../panel-plugins/battery/LBattery.cpp" line="84"></location>
<source>%1 % (%2 Remaining)</source>
<translation>%1 % (%2 Återstår)</translation>
</message>
@@ -387,12 +387,12 @@
<context>
<name>LClock</name>
<message>
- <location filename="../panel-plugins/clock/LClock.cpp" line="121"/>
+ <location filename="../panel-plugins/clock/LClock.cpp" line="121"></location>
<source>Time Zone (%1)</source>
<translation>Tidszon (%1)</translation>
</message>
<message>
- <location filename="../panel-plugins/clock/LClock.cpp" line="143"/>
+ <location filename="../panel-plugins/clock/LClock.cpp" line="143"></location>
<source>Use System Time</source>
<translation>Använd systemtid</translation>
</message>
@@ -400,27 +400,27 @@
<context>
<name>LDPlugin</name>
<message>
- <location filename="../desktop-plugins/LDPlugin.cpp" line="36"/>
+ <location filename="../desktop-plugins/LDPlugin.cpp" line="36"></location>
<source>Start Moving Item</source>
<translation>Börja flytta objekt</translation>
</message>
<message>
- <location filename="../desktop-plugins/LDPlugin.cpp" line="37"/>
+ <location filename="../desktop-plugins/LDPlugin.cpp" line="37"></location>
<source>Start Resizing Item</source>
<translation>Börja ändra storlek på objekt</translation>
</message>
<message>
- <location filename="../desktop-plugins/LDPlugin.cpp" line="39"/>
+ <location filename="../desktop-plugins/LDPlugin.cpp" line="39"></location>
<source>Increase Item Sizes</source>
<translation>Öka storlek på objekt</translation>
</message>
<message>
- <location filename="../desktop-plugins/LDPlugin.cpp" line="40"/>
+ <location filename="../desktop-plugins/LDPlugin.cpp" line="40"></location>
<source>Decrease Item Sizes</source>
<translation>Minska storlek på objekt</translation>
</message>
<message>
- <location filename="../desktop-plugins/LDPlugin.cpp" line="42"/>
+ <location filename="../desktop-plugins/LDPlugin.cpp" line="42"></location>
<source>Remove Item</source>
<translation>Ta bort objekt</translation>
</message>
@@ -428,42 +428,42 @@
<context>
<name>LDeskBarPlugin</name>
<message>
- <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="194"/>
+ <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="194"></location>
<source>Favorite Applications</source>
<translation>Favoritprogram</translation>
</message>
<message>
- <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="196"/>
+ <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="196"></location>
<source>Favorite Folders</source>
<translation>Favoritmappar</translation>
</message>
<message>
- <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="197"/>
+ <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="197"></location>
<source>Audio</source>
<translation>Ljud</translation>
</message>
<message>
- <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="199"/>
+ <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="199"></location>
<source>Video</source>
<translation>Video</translation>
</message>
<message>
- <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="201"/>
+ <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="201"></location>
<source>Pictures</source>
<translation>Bilder</translation>
</message>
<message>
- <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="203"/>
+ <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="203"></location>
<source>Other Files</source>
<translation>Andra filer</translation>
</message>
<message>
- <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="205"/>
+ <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="205"></location>
<source>Documents</source>
<translation>Dokument</translation>
</message>
<message>
- <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="208"/>
+ <location filename="../panel-plugins/desktopbar/LDeskBar.cpp" line="208"></location>
<source>Favorite Files</source>
<translation>Favoritfiler</translation>
</message>
@@ -471,32 +471,32 @@
<context>
<name>LDesktop</name>
<message>
- <location filename="../LDesktop.cpp" line="198"/>
+ <location filename="../LDesktop.cpp" line="198"></location>
<source>Window List</source>
<translation>Fönsterlista</translation>
</message>
<message>
- <location filename="../LDesktop.cpp" line="263"/>
+ <location filename="../LDesktop.cpp" line="263"></location>
<source>Lumina Desktop</source>
<translation>Lumina Skrivbordet</translation>
</message>
<message>
- <location filename="../LDesktop.cpp" line="264"/>
+ <location filename="../LDesktop.cpp" line="264"></location>
<source>Workspace %1</source>
<translation>Arbetsyta %1</translation>
</message>
<message>
- <location filename="../LDesktop.cpp" line="274"/>
+ <location filename="../LDesktop.cpp" line="274"></location>
<source>Terminal</source>
<translation>Terminal</translation>
</message>
<message>
- <location filename="../LDesktop.cpp" line="275"/>
+ <location filename="../LDesktop.cpp" line="275"></location>
<source>Browse Files</source>
<translation>Bläddra bland filer</translation>
</message>
<message>
- <location filename="../LDesktop.cpp" line="305"/>
+ <location filename="../LDesktop.cpp" line="305"></location>
<source>Leave</source>
<translation>Lämna</translation>
</message>
@@ -504,8 +504,8 @@
<context>
<name>LDesktopSwitcher</name>
<message>
- <location filename="../panel-plugins/desktopswitcher/LDesktopSwitcher.cpp" line="132"/>
- <location filename="../panel-plugins/desktopswitcher/LDesktopSwitcher.cpp" line="140"/>
+ <location filename="../panel-plugins/desktopswitcher/LDesktopSwitcher.cpp" line="132"></location>
+ <location filename="../panel-plugins/desktopswitcher/LDesktopSwitcher.cpp" line="140"></location>
<source>Workspace %1</source>
<translation>Arbetsyta %1</translation>
</message>
@@ -513,7 +513,7 @@
<context>
<name>LQuickLaunchButton</name>
<message>
- <location filename="../panel-plugins/systemstart/LStartButton.h" line="51"/>
+ <location filename="../panel-plugins/systemstart/LStartButton.h" line="51"></location>
<source>Remove from Quicklaunch</source>
<translation>Ta bort från Snabbstart</translation>
</message>
@@ -521,8 +521,8 @@
<context>
<name>LSession</name>
<message>
- <location filename="../LSession.cpp" line="158"/>
- <location filename="../LSession.cpp" line="326"/>
+ <location filename="../LSession.cpp" line="158"></location>
+ <location filename="../LSession.cpp" line="326"></location>
<source>Desktop</source>
<translation>Skrivbord</translation>
</message>
@@ -530,7 +530,7 @@
<context>
<name>LSysDashboard</name>
<message>
- <location filename="../panel-plugins/systemdashboard/LSysDashboard.cpp" line="43"/>
+ <location filename="../panel-plugins/systemdashboard/LSysDashboard.cpp" line="43"></location>
<source>System Dashboard</source>
<translation>Systemets instrumentpanel</translation>
</message>
@@ -538,54 +538,54 @@
<context>
<name>LSysMenuQuick</name>
<message>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="14"/>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="14"></location>
<source>Form</source>
<translation>Formulär</translation>
</message>
<message>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="50"/>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="50"></location>
<source>System Volume</source>
<translation>Systemvolym</translation>
</message>
<message>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="111"/>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="111"></location>
<source>Launch Audio Mixer</source>
<translation>Starta ljudmixer</translation>
</message>
<message>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="156"/>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="156"></location>
<source>Screen Brightness</source>
<translation>Skärmljusstyrka</translation>
</message>
<message>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="231"/>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="231"></location>
<source>Battery Status</source>
<translation>Batteristatus</translation>
</message>
<message>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="296"/>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="296"></location>
<source>Workspace</source>
<translation>Arbetsyta</translation>
</message>
<message>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="344"/>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="344"></location>
<source>Locale</source>
<translation>Språkvariant</translation>
</message>
<message>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="378"/>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.ui" line="378"></location>
<source>Log Out</source>
<translation>Logga ut</translation>
</message>
<message>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.cpp" line="102"/>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.cpp" line="102"></location>
<source>connected</source>
<translation>ansluten</translation>
</message>
<message>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.cpp" line="120"/>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.cpp" line="167"/>
- <location filename="../panel-plugins/systemdashboard/SysMenuQuick.cpp" line="176"/>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.cpp" line="120"></location>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.cpp" line="167"></location>
+ <location filename="../panel-plugins/systemdashboard/SysMenuQuick.cpp" line="176"></location>
<source>%1 of %2</source>
<translation>%1 av %2</translation>
</message>
@@ -593,42 +593,42 @@
<context>
<name>LTaskButton</name>
<message>
- <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="149"/>
+ <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="149"></location>
<source>Activate Window</source>
<translation>Aktivera fönster</translation>
</message>
<message>
- <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="152"/>
+ <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="152"></location>
<source>Minimize Window</source>
<translation>Minimera fönster</translation>
</message>
<message>
- <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="154"/>
+ <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="154"></location>
<source>Restore Window</source>
<translation>Återställ fönster</translation>
</message>
<message>
- <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="156"/>
+ <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="156"></location>
<source>Maximize Window</source>
<translation>Maximera fönster</translation>
</message>
<message>
- <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="159"/>
+ <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="159"></location>
<source>Close Window</source>
<translation>Stäng fönster</translation>
</message>
<message>
- <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="162"/>
+ <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="162"></location>
<source>Show All Windows</source>
<translation>Visa alla fönster</translation>
</message>
<message>
- <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="163"/>
+ <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="163"></location>
<source>Minimize All Windows</source>
<translation>Minimera alla fönster</translation>
</message>
<message>
- <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="164"/>
+ <location filename="../panel-plugins/taskmanager/LTaskButton.cpp" line="164"></location>
<source>Close All Windows</source>
<translation>Stäng alla fönster</translation>
</message>
@@ -636,7 +636,7 @@
<context>
<name>LUserButtonPlugin</name>
<message>
- <location filename="../panel-plugins/userbutton/LUserButton.cpp" line="41"/>
+ <location filename="../panel-plugins/userbutton/LUserButton.cpp" line="41"></location>
<source>Quickly launch applications or open files</source>
<translation>Starta snabbt ett program eller öppna filer</translation>
</message>
@@ -644,32 +644,32 @@
<context>
<name>MonitorWidget</name>
<message>
- <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="14"/>
+ <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="14"></location>
<source>Form</source>
<translation>Formulär</translation>
</message>
<message>
- <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="36"/>
+ <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="36"></location>
<source>Summary</source>
<translation>Sammanfattning</translation>
</message>
<message>
- <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="42"/>
+ <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="42"></location>
<source>CPU Temp:</source>
<translation>CPU Temp:</translation>
</message>
<message>
- <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="56"/>
+ <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="56"></location>
<source>CPU Usage:</source>
<translation>Processoranvändning:</translation>
</message>
<message>
- <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="70"/>
+ <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="70"></location>
<source>Mem Usage:</source>
<translation>Minnesanvändning:</translation>
</message>
<message>
- <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="85"/>
+ <location filename="../desktop-plugins/systemmonitor/MonitorWidget.ui" line="85"></location>
<source>Disk I/O</source>
<translation>Disk-I/O</translation>
</message>
@@ -677,52 +677,52 @@
<context>
<name>NotePadPlugin</name>
<message>
- <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="97"/>
+ <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="97"></location>
<source>Note Files (*.note)</source>
<translation>Anteckningsfiler (*.note)</translation>
</message>
<message>
- <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="97"/>
+ <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="97"></location>
<source>Text Files (*)</source>
<translation>Textfiler (*)</translation>
</message>
<message>
- <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="98"/>
+ <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="98"></location>
<source>Open a note file</source>
<translation>Öppna en anteckningsfil</translation>
</message>
<message>
- <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="135"/>
+ <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="135"></location>
<source>Name:</source>
<translation>Namn:</translation>
</message>
<message>
- <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="137"/>
+ <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="137"></location>
<source>Invalid Note Name: Try Again</source>
<translation>Ogiltigt anteckningsnamn: Försök igen</translation>
</message>
<message>
- <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="138"/>
+ <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="138"></location>
<source>Select a Note Name</source>
<translation>Välj ett anteckningsnamn</translation>
</message>
<message>
- <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="165"/>
+ <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="165"></location>
<source>Open Text File</source>
<translation>Öppna textfil</translation>
</message>
<message>
- <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="166"/>
+ <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="166"></location>
<source>Create a Note</source>
<translation>Skapa en anteckning</translation>
</message>
<message>
- <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="169"/>
+ <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="169"></location>
<source>Rename Note</source>
<translation>Byt namn på anteckning</translation>
</message>
<message>
- <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="170"/>
+ <location filename="../desktop-plugins/notepad/NotepadPlugin.cpp" line="170"></location>
<source>Delete Note</source>
<translation>Ta bort anteckning</translation>
</message>
@@ -730,57 +730,57 @@
<context>
<name>PlayerWidget</name>
<message>
- <location filename="../desktop-plugins/audioplayer/PlayerWidget.ui" line="14"/>
+ <location filename="../desktop-plugins/audioplayer/PlayerWidget.ui" line="14"></location>
<source>Form</source>
<translation>Formulär</translation>
</message>
<message>
- <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="67"/>
+ <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="67"></location>
<source>Clear Playlist</source>
<translation>Rensa spellista</translation>
</message>
<message>
- <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="68"/>
+ <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="68"></location>
<source>Shuffle Playlist</source>
<translation>Blanda spellista</translation>
</message>
<message>
- <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="70"/>
+ <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="70"></location>
<source>Add Files</source>
<translation>Lägg till filer</translation>
</message>
<message>
- <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="71"/>
+ <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="71"></location>
<source>Add Directory</source>
<translation>Lägg till katalog</translation>
</message>
<message>
- <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="72"/>
+ <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="72"></location>
<source>Add URL</source>
<translation>Lägg till URL</translation>
</message>
<message>
- <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="100"/>
+ <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="100"></location>
<source>Multimedia Files</source>
<translation>Multimediafiler</translation>
</message>
<message>
- <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="101"/>
+ <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="101"></location>
<source>Select Multimedia Files</source>
<translation>Välj multimediafiler</translation>
</message>
<message>
- <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="128"/>
+ <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="128"></location>
<source>Select Multimedia Directory</source>
<translation>Välj multimediakatalog</translation>
</message>
<message>
- <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="157"/>
+ <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="157"></location>
<source>Enter a valid URL for a multimedia file or stream:</source>
<translation>Ange en giltig URL för en multimediafil eller ström:</translation>
</message>
<message>
- <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="159"/>
+ <location filename="../desktop-plugins/audioplayer/PlayerWidget.cpp" line="159"></location>
<source>Multimedia URL</source>
<translation>Multimedia URL</translation>
</message>
@@ -788,155 +788,155 @@
<context>
<name>RSSFeedPlugin</name>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="14"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="14"></location>
<source>Form</source>
<translation>Formulär</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="62"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="62"></location>
<source>View Options</source>
<translation>Visa alternativ</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="89"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="89"></location>
<source>Open Website</source>
<translation>Öppna webbsida</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="92"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="92"></location>
<source>More</source>
<translation>Mer</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="154"/>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="245"/>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="391"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="154"></location>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="245"></location>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="391"></location>
<source>Back to Feeds</source>
<translation>Tillbaka till flöden</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="172"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="172"></location>
<source>Feed Information</source>
<translation>Flödets Information</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="212"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="212"></location>
<source>Remove Feed</source>
<translation>Ta bort flöde</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="263"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="263"></location>
<source>New Feed Subscription</source>
<translation>Ny Prenumeration på RSS-flöde</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="287"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="287"></location>
<source>RSS URL</source>
<translation>RSS URL</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="302"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="302"></location>
<source>Load a preset RSS Feed</source>
<translation>Ladda ett förinställt RSS-flöde</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="332"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="332"></location>
<source>Add to Feeds</source>
<translation>Lägg till RSS-flöden</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="409"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="409"></location>
<source>Feed Reader Settings</source>
<translation>RSS-läsarinställningar</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="430"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="430"></location>
<source>Manual Sync Only</source>
<translation>Manuell synkronisering endast</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="437"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="437"></location>
<source>Some RSS feeds may request custom update intervals instead of using this setting</source>
<translation>Vissa RSS-flöden kan begära anpassade uppdateringsintervall istället för att använda den här inställningen</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="440"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="440"></location>
<source>Default Sync Interval</source>
<translation>Standard synkroniseringsintervall</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="471"/>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="483"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="471"></location>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="483"></location>
<source>Hour(s)</source>
<translation>Timma(r)</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="478"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="478"></location>
<source>Minutes</source>
<translation>Minuter</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="522"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.ui" line="522"></location>
<source>Save Settings</source>
<translation>Spara inställningar</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="70"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="70"></location>
<source>Add RSS Feed</source>
<translation>Lägg till RSS-flöde</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="71"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="71"></location>
<source>View Feed Details</source>
<translation>Visa flödes detaljer</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="72"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="72"></location>
<source>Settings</source>
<translation>Inställningar</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="74"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="74"></location>
<source>Update Feeds Now</source>
<translation>Uppdatera flöden nu</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="78"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="78"></location>
<source>Lumina Desktop RSS</source>
<translation>Lumina Skrivbordets RSS läsare </translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="143"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="143"></location>
<source>Feed URL: %1</source>
<translation>RSS-Flödes URL: %1</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="144"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="144"></location>
<source>Title: %1</source>
<translation>Titel: %1</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="145"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="145"></location>
<source>Description: %1</source>
<translation>Beskrivning: %1</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="146"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="146"></location>
<source>Website: %1</source>
<translation>Webbplats: %1</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="147"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="147"></location>
<source>Last Build Date: %1</source>
<translation>Senaste bygg datum: %1</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="148"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="148"></location>
<source>Last Sync: %1</source>
<translation>Senaste synkronisering: %1</translation>
</message>
<message>
- <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="149"/>
+ <location filename="../desktop-plugins/rssreader/RSSFeedPlugin.cpp" line="149"></location>
<source>Next Sync: %1</source>
<translation>Nästa synkronisering: %1</translation>
</message>
@@ -944,32 +944,32 @@
<context>
<name>SettingsMenu</name>
<message>
- <location filename="../SettingsMenu.cpp" line="30"/>
+ <location filename="../SettingsMenu.cpp" line="30"></location>
<source>Screensaver</source>
<translation>Skärmsläckare</translation>
</message>
<message>
- <location filename="../SettingsMenu.cpp" line="33"/>
+ <location filename="../SettingsMenu.cpp" line="33"></location>
<source>Desktop</source>
<translation>Skrivbord</translation>
</message>
<message>
- <location filename="../SettingsMenu.cpp" line="26"/>
+ <location filename="../SettingsMenu.cpp" line="26"></location>
<source>Preferences</source>
<translation>Egenskaper</translation>
</message>
<message>
- <location filename="../SettingsMenu.cpp" line="36"/>
+ <location filename="../SettingsMenu.cpp" line="36"></location>
<source>Display</source>
<translation>Skärm</translation>
</message>
<message>
- <location filename="../SettingsMenu.cpp" line="51"/>
+ <location filename="../SettingsMenu.cpp" line="51"></location>
<source>Control Panel</source>
<translation>Kontrollpanel</translation>
</message>
<message>
- <location filename="../SettingsMenu.cpp" line="57"/>
+ <location filename="../SettingsMenu.cpp" line="57"></location>
<source>About Lumina</source>
<translation>Om Lumina</translation>
</message>
@@ -977,114 +977,114 @@
<context>
<name>StartMenu</name>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="14"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="14"></location>
<source>Form</source>
<translation>Formulär</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="38"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="38"></location>
<source>Type to search</source>
<translation>Skriv för att söka</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="171"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="171"></location>
<source>Browse Files</source>
<translation>Bläddra bland filer</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="199"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="199"></location>
<source>Browse Applications</source>
<translation>Bläddra bland program</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="234"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="234"></location>
<source>Control Panel</source>
<translation>Kontrollpanel</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="305"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="305"></location>
<source>Leave</source>
<translation>Lämna</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="379"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="379"></location>
<source>Manage Applications</source>
<translation>Hantera program</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="408"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="408"></location>
<source>Show Categories</source>
<translation>Visa kategorier</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="488"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="488"></location>
<source>Configure Desktop</source>
<translation>Anpassa skrivbordet</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="1065"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="1065"></location>
<source>Sign Out User</source>
<translation>Logga ut användare</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="989"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="989"></location>
<source>Restart System</source>
<translation>Starta om systemet</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="262"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="262"></location>
<source>Preferences</source>
<translation>Inställningar</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="1017"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="1017"></location>
<source>Power Off System</source>
<translation>Stäng av systemet</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="1036"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="1036"></location>
<source>(System Performing Updates)</source>
<translation>(Systemet utför uppdateringar)</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="924"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="924"></location>
<source>Suspend System</source>
<translation>Vänteläge</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.ui" line="1125"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.ui" line="1125"></location>
<source>Back</source>
<translation>Bakåt</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="267"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="267"></location>
<source>Apply Updates?</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="267"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="267"></location>
<source>You have system updates waiting to be applied! Do you wish to install them now?</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="475"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="475"></location>
<source>%1% (Plugged In)</source>
<translation>%1% (Inkopplad)</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="479"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="479"></location>
<source>%1% (%2 Estimated)</source>
<translation>%1% (%2 Beräknad)</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="480"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="480"></location>
<source>%1% Remaining</source>
<translation>%1% återstår</translation>
</message>
<message>
- <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="496"/>
- <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="655"/>
- <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="666"/>
+ <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="496"></location>
+ <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="655"></location>
+ <location filename="../panel-plugins/systemstart/StartMenu.cpp" line="666"></location>
<source>Workspace %1/%2</source>
<translation>Arbetsyta %1/%2</translation>
</message>
@@ -1092,47 +1092,47 @@
<context>
<name>SystemWindow</name>
<message>
- <location filename="../SystemWindow.ui" line="14"/>
+ <location filename="../SystemWindow.ui" line="14"></location>
<source>System Options</source>
<translation>Systemalternativ</translation>
</message>
<message>
- <location filename="../SystemWindow.ui" line="55"/>
+ <location filename="../SystemWindow.ui" line="55"></location>
<source>Log Out</source>
<translation>Logga ut</translation>
</message>
<message>
- <location filename="../SystemWindow.ui" line="71"/>
+ <location filename="../SystemWindow.ui" line="71"></location>
<source>Restart</source>
<translation>Starta om</translation>
</message>
<message>
- <location filename="../SystemWindow.ui" line="87"/>
+ <location filename="../SystemWindow.ui" line="87"></location>
<source>Shutdown</source>
<translation>Stäng av</translation>
</message>
<message>
- <location filename="../SystemWindow.ui" line="127"/>
+ <location filename="../SystemWindow.ui" line="127"></location>
<source>Cancel</source>
<translation>Avbryt</translation>
</message>
<message>
- <location filename="../SystemWindow.ui" line="156"/>
+ <location filename="../SystemWindow.ui" line="156"></location>
<source>Lock</source>
<translation>Lås</translation>
</message>
<message>
- <location filename="../SystemWindow.ui" line="172"/>
+ <location filename="../SystemWindow.ui" line="172"></location>
<source>Suspend</source>
<translation>Vänteläge</translation>
</message>
<message>
- <location filename="../SystemWindow.cpp" line="57"/>
+ <location filename="../SystemWindow.cpp" line="57"></location>
<source>Apply Updates?</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../SystemWindow.cpp" line="57"/>
+ <location filename="../SystemWindow.cpp" line="57"></location>
<source>You have system updates waiting to be applied! Do you wish to install them now?</source>
<translation type="unfinished"></translation>
</message>
@@ -1140,22 +1140,22 @@
<context>
<name>UserItemWidget</name>
<message>
- <location filename="../panel-plugins/userbutton/UserItemWidget.cpp" line="33"/>
+ <location filename="../panel-plugins/userbutton/UserItemWidget.cpp" line="33"></location>
<source>Go Back</source>
<translation>Gå tillbaka</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserItemWidget.cpp" line="133"/>
+ <location filename="../panel-plugins/userbutton/UserItemWidget.cpp" line="133"></location>
<source>Remove Shortcut</source>
<translation>Ta bort genväg</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserItemWidget.cpp" line="138"/>
+ <location filename="../panel-plugins/userbutton/UserItemWidget.cpp" line="138"></location>
<source>Delete File</source>
<translation>Ta bort fil</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserItemWidget.cpp" line="144"/>
+ <location filename="../panel-plugins/userbutton/UserItemWidget.cpp" line="144"></location>
<source>Create Shortcut</source>
<translation>Skapa genväg</translation>
</message>
@@ -1163,180 +1163,180 @@
<context>
<name>UserWidget</name>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="14"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="14"></location>
<source>UserWidget</source>
<translation>AnvändarWidget</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="24"/>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="27"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="24"></location>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="27"></location>
<source>Favorites</source>
<translation>Favoriter</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="65"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="65"></location>
<source>Favorite Applications</source>
<translation>Favoritprogram</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="68"/>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="187"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="68"></location>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="187"></location>
<source>Applications</source>
<translation>Program</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="102"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="102"></location>
<source>Favorite Directories</source>
<translation>Favoritkataloger</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="105"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="105"></location>
<source>Places</source>
<translation>Platser</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="139"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="139"></location>
<source>Favorite FIles</source>
<translation>Favoritfiler</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="142"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="142"></location>
<source>Files</source>
<translation>Filer</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="184"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="184"></location>
<source>Apps</source>
<translation>Program</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="290"/>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="330"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="290"></location>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="330"></location>
<source>Home</source>
<translation>Hem</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="293"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="293"></location>
<source>Home Directory</source>
<translation>Hemkatalog</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="322"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="322"></location>
<source>Search this Directory</source>
<translation>Sök i denna katalog</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="375"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="375"></location>
<source>Go back to home directory</source>
<translation>Gå tillbaka till hemkatalogen</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="350"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="350"></location>
<source>Open Directory</source>
<translation>Öppna katalog</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="458"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="458"></location>
<source>Config</source>
<translation>Inställning</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="461"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="461"></location>
<source>Desktop Preferences</source>
<translation>Skrivbordsinställningar</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="473"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="473"></location>
<source>Control Panel</source>
<translation>Kontrollpanel</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="495"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="495"></location>
<source>Desktop Appearance/Plugins</source>
<translation>Skrivbordsutseende/insticksmoduler</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="517"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="517"></location>
<source>Screen Configuration</source>
<translation>Skärminställningar</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="539"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="539"></location>
<source>Screensaver Settings</source>
<translation>Inställningar för skärmsläckare</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.ui" line="581"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.ui" line="581"></location>
<source>About the Lumina Desktop</source>
<translation>Om Lumina Skrivbordsmiljön</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="289"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="289"></location>
<source>All</source>
<translation>Alla</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="290"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="290"></location>
<source>Multimedia</source>
<translation>Multimedia</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="291"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="291"></location>
<source>Development</source>
<translation>Utveckling</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="292"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="292"></location>
<source>Education</source>
<translation>Utbildning</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="293"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="293"></location>
<source>Games</source>
<translation>Spel</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="294"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="294"></location>
<source>Graphics</source>
<translation>Grafik</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="295"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="295"></location>
<source>Network</source>
<translation>Nätverk</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="296"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="296"></location>
<source>Office</source>
<translation>Kontorsprogram</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="297"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="297"></location>
<source>Science</source>
<translation>Vetenskap</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="298"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="298"></location>
<source>Settings</source>
<translation>Inställningar</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="299"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="299"></location>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="300"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="300"></location>
<source>Utilities</source>
<translation>Verktyg</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="301"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="301"></location>
<source>Wine</source>
<translation>Wine</translation>
</message>
<message>
- <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="302"/>
+ <location filename="../panel-plugins/userbutton/UserWidget.cpp" line="302"></location>
<source>Unsorted</source>
<translation>Osorterade</translation>
</message>
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/applauncher/AppLaunchButton.cpp b/src-qt5/core/lumina-desktop/panel-plugins/applauncher/AppLaunchButton.cpp
index 321970ed..05b7981f 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/applauncher/AppLaunchButton.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/applauncher/AppLaunchButton.cpp
@@ -31,9 +31,8 @@ void AppLaunchButtonPlugin::updateButtonVisuals(){
QIcon icon;
QString tooltip = tr("Click to assign an application");
if(appfile.endsWith(".desktop")){
- bool ok = false;
- XDGDesktop desk = LXDG::loadDesktopFile(appfile,ok);
- if(ok){
+ XDGDesktop desk(appfile);
+ if(desk.isValid()){
icon = LXDG::findIcon(desk.icon, "unknown");
tooltip = QString(tr("Launch %1")).arg(desk.name);
}else{
@@ -56,13 +55,13 @@ void AppLaunchButtonPlugin::updateButtonVisuals(){
void AppLaunchButtonPlugin::AppClicked(){
if(appfile.isEmpty()){
//No App File selected
- QList<XDGDesktop> apps = LSession::handle()->applicationMenu()->currentAppHash()->value("All");
+ QList<XDGDesktop*> apps = LSession::handle()->applicationMenu()->currentAppHash()->value("All");
QStringList names;
- for(int i=0; i<apps.length(); i++){ names << apps[i].name; }
+ for(int i=0; i<apps.length(); i++){ names << apps[i]->name; }
bool ok = false;
QString app = QInputDialog::getItem(this, tr("Select Application"), tr("Name:"), names, 0, false, &ok);
if(!ok || names.indexOf(app)<0){ return; } //cancelled
- appfile = apps[ names.indexOf(app) ].filePath;
+ appfile = apps[ names.indexOf(app) ]->filePath;
//Still need to find a way to set this value persistently
// --- perhaps replace the plugin in the desktop settings file with the new path?
// --- "applauncher::broken---<something>" -> "applauncher::fixed---<something>" ?
@@ -71,4 +70,3 @@ void AppLaunchButtonPlugin::AppClicked(){
LSession::LaunchApplication("lumina-open \""+appfile+"\"");
}
}
-
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/appmenu/LAppMenuPlugin.cpp b/src-qt5/core/lumina-desktop/panel-plugins/appmenu/LAppMenuPlugin.cpp
index 5d20e3ec..e3be55c2 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/appmenu/LAppMenuPlugin.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/appmenu/LAppMenuPlugin.cpp
@@ -62,23 +62,22 @@ void LAppMenuPlugin::LaunchItem(QAction* item){
void LAppMenuPlugin::UpdateMenu(){
mainmenu->clear();
- QHash<QString, QList<XDGDesktop> > *HASH = LSession::handle()->applicationMenu()->currentAppHash();
+ QHash<QString, QList<XDGDesktop*> > *HASH = LSession::handle()->applicationMenu()->currentAppHash();
//Now Re-create the menu (orignally copied from the AppMenu class)
- bool ok; //for checking inputs
//Add link to the file manager
QAction *tmpact = mainmenu->addAction( LXDG::findIcon("user-home", ""), tr("Browse Files") );
tmpact->setWhatsThis("\""+QDir::homePath()+"\"");
//--Look for the app store
- XDGDesktop store = LXDG::loadDesktopFile(LOS::AppStoreShortcut(), ok);
- if(ok){
+ XDGDesktop store(LOS::AppStoreShortcut());
+ if(store.isValid()){
tmpact = mainmenu->addAction( LXDG::findIcon(store.icon, ""), tr("Install Applications") );
tmpact->setWhatsThis("\""+store.filePath+"\"");
}
//--Look for the control panel
- store = LXDG::loadDesktopFile(LOS::ControlPanelShortcut(), ok);
- if(ok){
- tmpact = mainmenu->addAction( LXDG::findIcon(store.icon, ""), tr("Control Panel") );
- tmpact->setWhatsThis("\""+store.filePath+"\"");
+ XDGDesktop controlp(LOS::ControlPanelShortcut());
+ if(controlp.isValid()){
+ tmpact = mainmenu->addAction( LXDG::findIcon(controlp.icon, ""), tr("Control Panel") );
+ tmpact->setWhatsThis("\""+controlp.filePath+"\"");
}
mainmenu->addSeparator();
//--Now create the sub-menus
@@ -104,29 +103,29 @@ void LAppMenuPlugin::UpdateMenu(){
QMenu *menu = new QMenu(name, this);
menu->setIcon(LXDG::findIcon(icon,""));
- QList<XDGDesktop> appL = HASH->value(cats[i]);
+ QList<XDGDesktop*> appL = HASH->value(cats[i]);
for( int a=0; a<appL.length(); a++){
- if(appL[a].actions.isEmpty()){
+ if(appL[a]->actions.isEmpty()){
//Just a single entry point - no extra actions
- QAction *act = new QAction(LXDG::findIcon(appL[a].icon, ""), appL[a].name, menu);
- act->setToolTip(appL[a].comment);
- act->setWhatsThis("\""+appL[a].filePath+"\"");
+ QAction *act = new QAction(LXDG::findIcon(appL[a]->icon, ""), appL[a]->name, menu);
+ act->setToolTip(appL[a]->comment);
+ act->setWhatsThis("\""+appL[a]->filePath+"\"");
menu->addAction(act);
}else{
//This app has additional actions - make this a sub menu
// - first the main menu/action
- QMenu *submenu = new QMenu(appL[a].name, menu);
- submenu->setIcon( LXDG::findIcon(appL[a].icon,"") );
+ QMenu *submenu = new QMenu(appL[a]->name, menu);
+ submenu->setIcon( LXDG::findIcon(appL[a]->icon,"") );
//This is the normal behavior - not a special sub-action (although it needs to be at the top of the new menu)
- QAction *act = new QAction(LXDG::findIcon(appL[a].icon, ""), appL[a].name, submenu);
- act->setToolTip(appL[a].comment);
- act->setWhatsThis(appL[a].filePath);
+ QAction *act = new QAction(LXDG::findIcon(appL[a]->icon, ""), appL[a]->name, submenu);
+ act->setToolTip(appL[a]->comment);
+ act->setWhatsThis(appL[a]->filePath);
submenu->addAction(act);
//Now add entries for every sub-action listed
- for(int sa=0; sa<appL[a].actions.length(); sa++){
- QAction *sact = new QAction(LXDG::findIcon(appL[a].actions[sa].icon, appL[a].icon), appL[a].actions[sa].name, this);
- sact->setToolTip(appL[a].comment);
- sact->setWhatsThis("-action \""+appL[a].actions[sa].ID+"\" \""+appL[a].filePath+"\"");
+ for(int sa=0; sa<appL[a]->actions.length(); sa++){
+ QAction *sact = new QAction(LXDG::findIcon(appL[a]->actions[sa].icon, appL[a]->icon), appL[a]->actions[sa].name, this);
+ sact->setToolTip(appL[a]->comment);
+ sact->setWhatsThis("-action \""+appL[a]->actions[sa].ID+"\" \""+appL[a]->filePath+"\"");
submenu->addAction(sact);
}
menu->addMenu(submenu);
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 48bbface..9903d4fd 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp
@@ -130,11 +130,9 @@ void LDeskBarPlugin::updateFiles(){
if(type=="app"){
//Add it to appM
bool ok = false;
- XDGDesktop df = LXDG::loadDesktopFile(path, ok);
- if(ok){
- if( LXDG::checkValidity(df) && !df.isHidden ){
+ XDGDesktop df(path);
+ if(df.isValid() && !df.isHidden){
appM->addAction( newAction(df.filePath, df.name, LXDG::findIcon(df.icon, ":/images/default-application.png")) );
- }
}
}else if(type=="dir"){
//Add it to dirM
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 3a0493a3..48d9623a 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.cpp
@@ -16,8 +16,8 @@ ItemWidget::ItemWidget(QWidget *parent, QString itemPath, QString type, bool gob
bool inHome = type.endsWith("-home"); //internal code
if(inHome){ type = type.remove("-home"); }
if(itemPath.endsWith(".desktop") || type=="app"){
- XDGDesktop item = LXDG::loadDesktopFile(itemPath, gooditem);
- if(gooditem){ gooditem = LXDG::checkValidity(item); }
+ XDGDesktop item(itemPath, this);
+ gooditem = item.isValid();
//qDebug() << "Good Item:" << gooditem << itemPath;
if(gooditem){
icon->setPixmap( LXDG::findIcon(item.icon, "preferences-system-windows-actions").pixmap(32,32) );
@@ -26,7 +26,7 @@ ItemWidget::ItemWidget(QWidget *parent, QString itemPath, QString type, bool gob
if(!item.genericName.isEmpty() && item.name!=item.genericName){ text.append("<br><i> -- "+item.genericName+"</i>"); }
name->setText(text);
name->setToolTip(item.comment);
- setupActions(item);
+ setupActions(&item);
}else{
return;
}
@@ -89,13 +89,14 @@ ItemWidget::ItemWidget(QWidget *parent, QString itemPath, QString type, bool gob
}
// - Application constructor
-ItemWidget::ItemWidget(QWidget *parent, XDGDesktop item) : QFrame(parent){
+ItemWidget::ItemWidget(QWidget *parent, XDGDesktop *item) : QFrame(parent){
+ if(item==0){ return; }
createWidget();
isDirectory = false;
- if(LUtils::isFavorite(item.filePath)){
- linkPath = item.filePath;
+ if(LUtils::isFavorite(item->filePath)){
+ linkPath = item->filePath;
isShortcut=true;
- }else if( item.filePath.section("/",0,-2)==QDir::homePath()+"/Desktop" ){
+ }else if( item->filePath.section("/",0,-2)==QDir::homePath()+"/Desktop" ){
isShortcut = true;
}else{
isShortcut = false;
@@ -104,14 +105,14 @@ ItemWidget::ItemWidget(QWidget *parent, XDGDesktop item) : QFrame(parent){
name->setToolTip(icon->whatsThis()); //also allow the user to see the full shortcut path
}
//Now fill it appropriately
- icon->setPixmap( LXDG::findIcon(item.icon,"preferences-system-windows-actions").pixmap(64,64) );
- text = item.name;
- if(!item.genericName.isEmpty() && item.name!=item.genericName){ text.append("<br><i> -- "+item.genericName+"</i>"); }
+ icon->setPixmap( LXDG::findIcon(item->icon,"preferences-system-windows-actions").pixmap(64,64) );
+ text = item->name;
+ if(!item->genericName.isEmpty() && item->name!=item->genericName){ text.append("<br><i> -- "+item->genericName+"</i>"); }
name->setText(text);
- name->setToolTip(item.comment);
- this->setWhatsThis(item.name);
- icon->setWhatsThis(item.filePath);
- iconPath = item.icon;
+ name->setToolTip(item->comment);
+ this->setWhatsThis(item->name);
+ icon->setWhatsThis(item->filePath);
+ iconPath = item->icon;
//Now setup the buttons appropriately
setupContextMenu();
setupActions(item);
@@ -176,14 +177,14 @@ void ItemWidget::setupContextMenu(){
}
}
-void ItemWidget::setupActions(XDGDesktop app){
- if(app.actions.isEmpty()){ actButton->setVisible(false); return; }
+void ItemWidget::setupActions(XDGDesktop *app){
+ if(app==0 || app->actions.isEmpty()){ actButton->setVisible(false); return; }
//Actions Available - go ahead and list them all
actButton->setMenu( new QMenu(this) );
- for(int i=0; i<app.actions.length(); i++){
- QAction *act = new QAction(LXDG::findIcon(app.actions[i].icon, app.icon), app.actions[i].name, this);
- act->setToolTip(app.actions[i].ID);
- act->setWhatsThis(app.actions[i].ID);
+ for(int i=0; i<app->actions.length(); i++){
+ QAction *act = new QAction(LXDG::findIcon(app->actions[i].icon, app->icon), app->actions[i].name, this);
+ act->setToolTip(app->actions[i].ID);
+ act->setWhatsThis(app->actions[i].ID);
actButton->menu()->addAction(act);
}
connect(actButton->menu(), SIGNAL(triggered(QAction*)), this, SLOT(actionClicked(QAction*)) );
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.h b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.h
index 8190de43..365b434f 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.h
+++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/ItemWidget.h
@@ -32,7 +32,7 @@ public:
// - Favorites (path/type)
ItemWidget(QWidget *parent=0, QString itemPath="", QString type="unknown", bool goback=false);
// - Generic Apps
- ItemWidget(QWidget *parent=0, XDGDesktop item= XDGDesktop());
+ ItemWidget(QWidget *parent=0, XDGDesktop *item= 0);
// - Categories
//ItemWidget(QWidget *parent=0, QString cat="");
@@ -53,7 +53,7 @@ private:
void createWidget();
//void setupButton(bool disable = false);
void setupContextMenu();
- void setupActions(XDGDesktop);
+ void setupActions(XDGDesktop*);
void updateItems(); //update the text/icon to match sizes
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 60a313e8..ae61760b 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
@@ -23,7 +23,6 @@ StartMenu::StartMenu(QWidget *parent) : QWidget(parent), ui(new Ui::StartMenu){
searchTimer->setInterval(300); //~1/3 second
searchTimer->setSingleShot(true);
connect(searchTimer, SIGNAL(timeout()), this, SLOT(startSearch()) );
- sysapps = LSession::handle()->applicationMenu()->currentAppHash();
connect(LSession::handle()->applicationMenu(), SIGNAL(AppMenuUpdated()), this, SLOT(UpdateApps()) );
//Need to load the last used setting of the application list
QString state = LSession::handle()->DesktopPluginSettings()->value("panelPlugs/systemstart/showcategories", "partial").toString();
@@ -72,9 +71,8 @@ void StartMenu::UpdateAll(){
if(QFile::exists(tmp)){
ui->tool_launch_controlpanel->setWhatsThis(tmp);
//Now read the file to see which icon to use
- bool ok = false;
- XDGDesktop desk = LXDG::loadDesktopFile(tmp, ok);
- if(ok && LXDG::checkValidity(desk)){
+ XDGDesktop desk(tmp);
+ if(desk.isValid()){
ui->tool_launch_controlpanel->setIcon(LXDG::findIcon(desk.icon,"preferences-other"));
}else{ ui->tool_launch_controlpanel->setVisible(false); }
}else{ ui->tool_launch_controlpanel->setVisible(false); }
@@ -83,9 +81,8 @@ void StartMenu::UpdateAll(){
if(QFile::exists(tmp)){
ui->tool_launch_store->setWhatsThis(tmp);
//Now read the file to see which icon to use
- bool ok = false;
- XDGDesktop desk = LXDG::loadDesktopFile(tmp, ok);
- if(ok && LXDG::checkValidity(desk)){
+ XDGDesktop desk(tmp);
+ if(desk.isValid()){
ui->tool_launch_store->setIcon(LXDG::findIcon(desk.icon,"utilities-file-archiver"));
}else{ ui->tool_launch_store->setVisible(false); }
}else{ ui->tool_launch_store->setVisible(false); }
@@ -158,8 +155,14 @@ void StartMenu::UpdateQuickLaunch(QString path, bool keep){
// ==========================
// PRIVATE FUNCTIONS
// ==========================
+void StartMenu::deleteChildren(QObject *obj){
+for(int i=0; i<obj->children().count(); i++){ obj->children().at(i)->deleteLater(); }
+}
+
void StartMenu::ClearScrollArea(QScrollArea *area){
- area->takeWidget()->deleteLater();
+ QWidget *old = area->takeWidget();
+ deleteChildren(old); //make sure we *fully* delete these items to save memory
+ old->deleteLater();
area->setWidget( new QWidget() ); //create a new widget in the scroll area
area->widget()->setContentsMargins(0,0,0,0);
QVBoxLayout *layout = new QVBoxLayout;
@@ -216,18 +219,18 @@ void StartMenu::do_search(QString search, bool force){
QStringList found; //syntax: [<sorter>::::<mimetype>::::<filepath>]
QString tmp = search;
if(LUtils::isValidBinary(tmp)){ found << "0::::application/x-executable::::"+tmp; }
- QList<XDGDesktop> apps = sysapps->value("All");
+ QList<XDGDesktop*> apps = LSession::handle()->applicationMenu()->currentAppHash()->value("All");
for(int i=0; i<apps.length(); i++){
int priority = -1;
- if(apps[i].name.toLower()==search.toLower()){ priority = 10; }
- else if(apps[i].name.startsWith(search, Qt::CaseInsensitive)){ priority = 15; }
- else if(apps[i].name.contains(search, Qt::CaseInsensitive)){ priority = 19; }
- else if(apps[i].genericName.contains(search, Qt::CaseInsensitive)){ priority = 20; }
- else if(apps[i].comment.contains(search, Qt::CaseInsensitive)){ priority = 30; }
+ if(apps[i]->name.toLower()==search.toLower()){ priority = 10; }
+ else if(apps[i]->name.startsWith(search, Qt::CaseInsensitive)){ priority = 15; }
+ else if(apps[i]->name.contains(search, Qt::CaseInsensitive)){ priority = 19; }
+ else if(apps[i]->genericName.contains(search, Qt::CaseInsensitive)){ priority = 20; }
+ else if(apps[i]->comment.contains(search, Qt::CaseInsensitive)){ priority = 30; }
//Can add other filters here later
if(priority>0){
- found << QString::number(priority)+"::::app::::"+apps[i].filePath;
+ found << QString::number(priority)+"::::app::::"+apps[i]->filePath;
}
}
found.sort(Qt::CaseInsensitive); //sort by priority/type (lower numbers are higher on list)
@@ -238,10 +241,8 @@ void StartMenu::do_search(QString search, bool force){
if(topsearch.isEmpty()){ topsearch = found[i].section("::::",2,-1); }
ItemWidget *it = 0;
if( found[i].section("::::",2,-1).endsWith(".desktop")){
- bool ok = false;
- XDGDesktop item = LXDG::loadDesktopFile(found[i].section("::::",2,-1), ok);
- if(ok){ ok = LXDG::checkValidity(item); }
- if(ok){ it = new ItemWidget(ui->scroll_favs->widget(), item); }
+ XDGDesktop item(found[i].section("::::",2,-1));
+ if(item.isValid()){ it = new ItemWidget(ui->scroll_favs->widget(), &item); }
}else{
it = new ItemWidget(ui->scroll_favs->widget(), found[i].section("::::",2,-1), found[i].section("::::",1,1) );
}
@@ -308,11 +309,11 @@ void StartMenu::UpdateApps(){
//qDebug() << " - Partially Checked";
//Show a single page of apps, but still divided up by categories
CCat.clear();
- QStringList cats = sysapps->keys();
+ QStringList cats = LSession::handle()->applicationMenu()->currentAppHash()->keys();
cats.sort();
cats.removeAll("All");
for(int c=0; c<cats.length(); c++){
- QList<XDGDesktop> apps = sysapps->value(cats[c]);
+ QList<XDGDesktop*> apps = LSession::handle()->applicationMenu()->currentAppHash()->value(cats[c]);
if(apps.isEmpty()){ continue; }
//Add the category label to the scroll
QLabel *catlabel = new QLabel("<b>"+cats[c]+"</b>",ui->scroll_apps->widget());
@@ -335,7 +336,7 @@ void StartMenu::UpdateApps(){
//Only show categories to start with - and have the user click-into a cat to see apps
if(CCat.isEmpty()){
//No cat selected yet - show cats only
- QStringList cats = sysapps->keys();
+ QStringList cats = LSession::handle()->applicationMenu()->currentAppHash()->keys();
cats.sort();
cats.removeAll("All"); //This is not a "real" category
for(int c=0; c<cats.length(); c++){
@@ -352,7 +353,7 @@ void StartMenu::UpdateApps(){
ui->scroll_apps->widget()->layout()->addWidget(it);
connect(it, SIGNAL(RunItem(QString)), this, SLOT(LaunchItem(QString)) );
//Show apps for this cat
- QList<XDGDesktop> apps = sysapps->value(CCat);
+ QList<XDGDesktop*> apps = LSession::handle()->applicationMenu()->currentAppHash()->value(CCat);
for(int i=0; i<apps.length(); i++){
//qDebug() << " - App:" << apps[i].name;
ItemWidget *it = new ItemWidget(ui->scroll_apps->widget(), apps[i] );
@@ -368,7 +369,7 @@ void StartMenu::UpdateApps(){
}else{
//qDebug() << " - Not Checked";
//No categories at all - just alphabetize all the apps
- QList<XDGDesktop> apps = sysapps->value("All");
+ QList<XDGDesktop*> apps = LSession::handle()->applicationMenu()->currentAppHash()->value("All");
CCat.clear();
//Now add all the apps for this category
for(int i=0; i<apps.length(); i++){
@@ -431,10 +432,8 @@ void StartMenu::UpdateFavs(){
if( !QFile::exists(tmp[i].section("::::",2,-1)) ){ continue; } //invalid favorite - skip it
ItemWidget *it = 0;
if( tmp[i].section("::::",2,-1).endsWith(".desktop")){
- bool ok = false;
- XDGDesktop item = LXDG::loadDesktopFile(tmp[i].section("::::",2,-1), ok);
- if(ok){ ok = LXDG::checkValidity(item); }
- if(ok){ it = new ItemWidget(ui->scroll_favs->widget(), item); }
+ XDGDesktop item(tmp[i].section("::::",2,-1));
+ if(item.isValid()){ it = new ItemWidget(ui->scroll_favs->widget(), &item); }
}else{
it = new ItemWidget(ui->scroll_favs->widget(), tmp[i].section("::::",2,-1), tmp[i].section("::::",1,1) );
}
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.h b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.h
index 9a629cc2..af7bd136 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.h
+++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.h
@@ -32,12 +32,12 @@ public slots:
private:
Ui::StartMenu *ui;
- QHash<QString, QList<XDGDesktop> > *sysapps;
QStringList favs;
QString CCat, CSearch, topsearch; //current category/search
QTimer *searchTimer;
//Simple utility functions
+ void deleteChildren(QObject *obj); //recursive function
void ClearScrollArea(QScrollArea *area);
void SortScrollArea(QScrollArea *area);
void do_search(QString search, bool force);
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 1d32440a..a1dfe956 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
@@ -15,12 +15,11 @@ UserItemWidget::UserItemWidget(QWidget *parent, QString itemPath, QString type,
bool inHome = type.endsWith("-home"); //internal code
if(inHome){ type = type.remove("-home"); }
if(itemPath.endsWith(".desktop") || type=="app"){
- bool ok = false;
- XDGDesktop item = LXDG::loadDesktopFile(itemPath, ok);
- if(ok && LXDG::checkValidity(item) ){
+ XDGDesktop item(itemPath);
+ if( item.isValid() ){
icon->setPixmap( LXDG::findIcon(item.icon, "preferences-system-windows-actions").pixmap(32,32) );
name->setText( this->fontMetrics().elidedText(item.name, Qt::ElideRight, TEXTCUTOFF) );
- setupActions(item);
+ setupActions(&item);
}else{
gooditem = false;
return;
@@ -63,22 +62,23 @@ UserItemWidget::UserItemWidget(QWidget *parent, QString itemPath, QString type,
setupButton(goback);
}
-UserItemWidget::UserItemWidget(QWidget *parent, XDGDesktop item) : QFrame(parent){
+UserItemWidget::UserItemWidget(QWidget *parent, XDGDesktop *item) : QFrame(parent){
+ if(item==0){ return; }
createWidget();
isDirectory = false;
- if(LUtils::isFavorite(item.filePath)){
- linkPath = item.filePath;
+ if(LUtils::isFavorite(item->filePath)){
+ linkPath = item->filePath;
isShortcut=true;
- }else if( item.filePath.section("/",0,-2)==QDir::homePath()+"/Desktop" ){
+ }else if( item->filePath.section("/",0,-2)==QDir::homePath()+"/Desktop" ){
isShortcut = true;
}else{
isShortcut = false;
}
//Now fill it appropriately
- icon->setPixmap( LXDG::findIcon(item.icon,"preferences-system-windows-actions").pixmap(32,32) );
- name->setText( this->fontMetrics().elidedText(item.name, Qt::ElideRight, TEXTCUTOFF) );
+ icon->setPixmap( LXDG::findIcon(item->icon,"preferences-system-windows-actions").pixmap(32,32) );
+ name->setText( this->fontMetrics().elidedText(item->name, Qt::ElideRight, TEXTCUTOFF) );
this->setWhatsThis(name->text());
- icon->setWhatsThis(item.filePath);
+ icon->setWhatsThis(item->filePath);
//Now setup the buttons appropriately
setupButton();
setupActions(item);
@@ -152,14 +152,14 @@ void UserItemWidget::setupButton(bool disable){
}
}
-void UserItemWidget::setupActions(XDGDesktop app){
- if(app.actions.isEmpty()){ actButton->setVisible(false); return; }
+void UserItemWidget::setupActions(XDGDesktop *app){
+ if(app==0 || app->actions.isEmpty()){ actButton->setVisible(false); return; }
//Actions Available - go ahead and list them all
actButton->setMenu( new QMenu(this) );
- for(int i=0; i<app.actions.length(); i++){
- QAction *act = new QAction(LXDG::findIcon(app.actions[i].icon, app.icon), app.actions[i].name, this);
- act->setToolTip(app.actions[i].ID);
- act->setWhatsThis(app.actions[i].ID);
+ for(int i=0; i<app->actions.length(); i++){
+ QAction *act = new QAction(LXDG::findIcon(app->actions[i].icon, app->icon), app->actions[i].name, this);
+ act->setToolTip(app->actions[i].ID);
+ act->setWhatsThis(app->actions[i].ID);
actButton->menu()->addAction(act);
}
connect(actButton->menu(), SIGNAL(triggered(QAction*)), this, SLOT(actionClicked(QAction*)) );
@@ -201,4 +201,4 @@ void UserItemWidget::actionClicked(QAction *act){
if(!linkPath.isEmpty()){ cmd = cmd.arg(linkPath); }
else{ cmd = cmd.arg(icon->whatsThis()); }
emit RunItem(cmd);
-} \ No newline at end of file
+}
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.h b/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.h
index 2251344c..0b212f10 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.h
+++ b/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserItemWidget.h
@@ -28,7 +28,7 @@ class UserItemWidget : public QFrame{
Q_OBJECT
public:
UserItemWidget(QWidget *parent=0, QString itemPath="", QString type="unknown", bool goback=false);
- UserItemWidget(QWidget *parent=0, XDGDesktop item= XDGDesktop());
+ UserItemWidget(QWidget *parent=0, XDGDesktop *item= 0);
~UserItemWidget();
bool gooditem;
@@ -41,7 +41,7 @@ private:
void createWidget();
void setupButton(bool disable = false);
- void setupActions(XDGDesktop);
+ void setupActions(XDGDesktop*);
private slots:
void buttonClicked();
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 c7d8109c..fb58c7f6 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp
@@ -130,8 +130,8 @@ void UserWidget::UpdateAll(){
QString APPSTORE = LOS::AppStoreShortcut();
if(QFile::exists(APPSTORE) && !APPSTORE.isEmpty()){
//Now load the info
- bool ok = false;
- XDGDesktop store = LXDG::loadDesktopFile(APPSTORE, ok);
+ XDGDesktop store(APPSTORE);
+ bool ok = store.isValid();
if(ok){
ui->tool_app_store->setIcon( LXDG::findIcon(store.icon, "") );
ui->tool_app_store->setText( store.name );
@@ -143,8 +143,8 @@ void UserWidget::UpdateAll(){
QString CONTROLPANEL = LOS::ControlPanelShortcut();
if(QFile::exists(CONTROLPANEL) && !CONTROLPANEL.isEmpty()){
//Now load the info
- bool ok = false;
- XDGDesktop cpan = LXDG::loadDesktopFile(CONTROLPANEL, ok);
+ XDGDesktop cpan(CONTROLPANEL);
+ bool ok = cpan.isValid();
if(ok){
ui->tool_controlpanel->setIcon( LXDG::findIcon(cpan.icon, "") );
}
@@ -307,7 +307,7 @@ void UserWidget::updateAppCategories(){
void UserWidget::updateApps(){
if(ui->combo_app_cats->currentIndex() < 0){ return; } //no cat
QString cat = ui->combo_app_cats->itemData( ui->combo_app_cats->currentIndex() ).toString();
- QList<XDGDesktop> items = sysapps->value(cat);
+ QList<XDGDesktop*> items = sysapps->value(cat);
ClearScrollArea(ui->scroll_apps);
for(int i=0; i<items.length(); i++){
UserItemWidget *it = new UserItemWidget(ui->scroll_apps->widget(), items[i]);
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.h b/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.h
index af9408dd..8b03c489 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.h
+++ b/src-qt5/core/lumina-desktop/panel-plugins/userbutton/UserWidget.h
@@ -42,7 +42,7 @@ public slots:
private:
Ui::UserWidget *ui;
- QHash<QString, QList<XDGDesktop> > *sysapps;
+ QHash<QString, QList<XDGDesktop*> > *sysapps;
QDateTime lastUpdate, lastHomeUpdate;
QStringList favs;
QFileInfoList homefiles;
bgstack15