From 09ffe0e5e565f3fd8a8d98502508bebb94e1a63e Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 28 Jan 2015 12:35:48 -0500 Subject: Add knowledge of the lumina-info utility to the Lumina desktop (userbutton, config menu). Also make sure that there is a *.desktop shortcut for the application (and update the pkg-plist) Also allow for "-" to be put in the version number without messing up the version checking routine, and tag the current version on the master branch as 0.8.2-devel (once the stable/official release is branched, the "-devel" tag will get either dropped or changed to "-release" in that branch, with the master branch moving on to the next -devel) --- .../panel-plugins/userbutton/UserWidget.cpp | 3 +- .../panel-plugins/userbutton/UserWidget.h | 5 +- .../panel-plugins/userbutton/UserWidget.ui | 70 ++++++++++++++++++---- 3 files changed, 66 insertions(+), 12 deletions(-) (limited to 'lumina-desktop/panel-plugins/userbutton') diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp index 5f50e707..d5f8cd2e 100644 --- a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp +++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp @@ -34,7 +34,7 @@ UserWidget::UserWidget(QWidget* parent) : QTabWidget(parent), ui(new Ui::UserWid ui->tool_config_screensaver->setIcon( LXDG::findIcon("preferences-desktop-screensaver","") ); ui->tool_home_gohome->setIcon( LXDG::findIcon("go-home","") ); ui->tool_home_browse->setIcon( LXDG::findIcon("document-open","") ); - + ui->tool_config_about->setIcon( LXDG::findIcon("lumina","") ); //Connect the signals/slots connect(ui->tool_desktopsettings, SIGNAL(clicked()), this, SLOT(openDeskSettings()) ); connect(ui->tool_config_screensaver, SIGNAL(clicked()), this, SLOT(openScreenSaverConfig()) ); @@ -44,6 +44,7 @@ UserWidget::UserWidget(QWidget* parent) : QTabWidget(parent), ui(new Ui::UserWid connect(ui->combo_app_cats, SIGNAL(currentIndexChanged(int)), this, SLOT(updateApps()) ); connect(ui->tool_home_gohome, SIGNAL(clicked()), this, SLOT(slotGoHome()) ); connect(ui->tool_home_browse, SIGNAL(clicked()), this, SLOT(slotOpenDir()) ); + connect(ui->tool_config_about, SIGNAL(clicked()), this, SLOT(openLuminaInfo()) ); //Setup the special buttons QString APPSTORE = LOS::AppStoreShortcut(); diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.h b/lumina-desktop/panel-plugins/userbutton/UserWidget.h index 06ad22e8..108f540f 100644 --- a/lumina-desktop/panel-plugins/userbutton/UserWidget.h +++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.h @@ -80,7 +80,10 @@ private slots: void openScreenSaverConfig(){ LaunchItem(SSAVER, false); } - + void openLuminaInfo(){ + LaunchItem("lumina-info",false); + } + protected: void mouseMoveEvent( QMouseEvent *event); diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.ui b/lumina-desktop/panel-plugins/userbutton/UserWidget.ui index 764feddf..9a307cb6 100644 --- a/lumina-desktop/panel-plugins/userbutton/UserWidget.ui +++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.ui @@ -17,7 +17,7 @@ QTabWidget::West - 2 + 3 @@ -30,7 +30,16 @@ 2 - + + 1 + + + 1 + + + 1 + + 1 @@ -161,8 +170,8 @@ 0 0 - 262 - 245 + 98 + 28 @@ -181,7 +190,16 @@ 2 - + + 1 + + + 1 + + + 1 + + 1 @@ -258,8 +276,8 @@ 0 0 - 262 - 245 + 98 + 28 @@ -278,7 +296,16 @@ 2 - + + 1 + + + 1 + + + 1 + + 1 @@ -392,8 +419,8 @@ 0 0 - 262 - 245 + 98 + 28 @@ -510,6 +537,29 @@ + + + + Qt::Horizontal + + + + + + + + 0 + 0 + + + + About the Lumina Desktop + + + Qt::ToolButtonTextBesideIcon + + + -- cgit