aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/userbutton/UserWidget.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-09-29 11:38:12 -0400
committerKen Moore <ken@pcbsd.org>2014-09-29 11:38:12 -0400
commitf4d01cd9e972c96dc068eac2750ed9aa2d02cf3d (patch)
treefbb9e2f8ea5a0b57d1fad4a83f7580155b432893 /lumina-desktop/panel-plugins/userbutton/UserWidget.h
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-f4d01cd9e972c96dc068eac2750ed9aa2d02cf3d.tar.gz
lumina-f4d01cd9e972c96dc068eac2750ed9aa2d02cf3d.tar.bz2
lumina-f4d01cd9e972c96dc068eac2750ed9aa2d02cf3d.zip
Update the user buttons some more:
1) Add the ability to browse through the directory tree for the user's home directory, with the ability to "favorite" any of them.
Diffstat (limited to 'lumina-desktop/panel-plugins/userbutton/UserWidget.h')
-rw-r--r--lumina-desktop/panel-plugins/userbutton/UserWidget.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.h b/lumina-desktop/panel-plugins/userbutton/UserWidget.h
index a2cedb03..232b5e8b 100644
--- a/lumina-desktop/panel-plugins/userbutton/UserWidget.h
+++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.h
@@ -51,7 +51,7 @@ private:
QIcon rotateIcon(QIcon);
private slots:
- void LaunchItem(QString cmd);
+ void LaunchItem(QString path, bool fix = true);
//Favorites Tab
void FavChanged(); //for ensuring radio-button-like behaviour
@@ -63,22 +63,26 @@ private slots:
//Home Tab
void updateHome();
+ void slotGoToDir(QString dir);
+ void slotGoHome();
+ void slotGoUp();
+ void slotOpenDir();
//Slots for the special buttons
void openStore(){
- LaunchItem("lumina-open \""+LOS::AppStoreShortcut()+"\"");
+ LaunchItem(LOS::AppStoreShortcut());
}
void openControlPanel(){
- LaunchItem("lumina-open \""+LOS::ControlPanelShortcut()+"\"");
+ LaunchItem(LOS::ControlPanelShortcut());
}
void openDeskSettings(){
- LaunchItem("lumina-config");
+ LaunchItem("lumina-config", false);
}
void openQtConfig(){
- LaunchItem( LOS::QtConfigShortcut() );
+ LaunchItem( LOS::QtConfigShortcut(), false);
}
void openScreenSaverConfig(){
- LaunchItem(SSAVER);
+ LaunchItem(SSAVER, false);
}
protected:
bgstack15