From f4d01cd9e972c96dc068eac2750ed9aa2d02cf3d Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 29 Sep 2014 11:38:12 -0400 Subject: 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. --- lumina-desktop/panel-plugins/userbutton/UserWidget.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'lumina-desktop/panel-plugins/userbutton/UserWidget.h') 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: -- cgit