From fab6d290cc1a94a351a12418373c3690cc8f0e43 Mon Sep 17 00:00:00 2001 From: JT Pennington Date: Sat, 31 Dec 2016 15:34:09 -0800 Subject: Add basic keyboard shortcuts --- src-qt5/desktop-utils/lumina-archiver/MainUI.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src-qt5/desktop-utils') diff --git a/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp b/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp index c98b64fb..e465cdf8 100644 --- a/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-archiver/MainUI.cpp @@ -43,6 +43,12 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ connect(ui->tree_contents, SIGNAL(itemDoubleClicked(QTreeWidgetItem*, int)), this, SLOT(ViewFile(QTreeWidgetItem*)) ); connect(ui->actionUSB_Image, SIGNAL(triggered()), this, SLOT(BurnImgToUSB()) ); + //Set Keyboard Shortcuts + ui->action_New->setShortcut(tr("CTRL+N")); + ui->action_Open->setShortcut(tr("CTRL+O")); + ui->action_Quit->setShortcut(tr("CTRL+Q")); + ui->actionExtract_All->setShortcut(tr("CTRL+E")); + ui->progressBar->setVisible(false); ui->label_progress->setVisible(false); ui->label_progress_icon->setVisible(false); -- cgit From a88ebd742a17f3f0e45de06aa77ff52cabc437b0 Mon Sep 17 00:00:00 2001 From: JT Pennington Date: Mon, 2 Jan 2017 13:53:01 -0500 Subject: add two quick shortcuts add shortcut for bookmark manager and to refresh external devices --- src-qt5/desktop-utils/lumina-fm/MainUI.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src-qt5/desktop-utils') diff --git a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp index c302c869..905fc9e1 100644 --- a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp @@ -219,6 +219,7 @@ void MainUI::setupIcons(){ // Bookmarks menu ui->actionManage_Bookmarks->setIcon( LXDG::findIcon("bookmarks-organize","") ); + ui->actionManage_Bookmarks->setShortcut(tr("CTRL+B")); ui->actionAdd_Bookmark->setIcon( LXDG::findIcon("bookmark-new","") ); //GIT menu @@ -226,7 +227,8 @@ void MainUI::setupIcons(){ ui->actionClone_Repository->setIcon( LXDG::findIcon("git","download") ); // External Devices menu - ui->actionScan->setIcon( LXDG::findIcon("system-search","") ); + ui->actionScan->setIcon( LXDG::findIcon("system-search","") ) + ui->actionScan->setShortcut(tr("CTRL+E")); } //========== -- cgit From f136cc64fad81f2979c74c209b7700bf32001a84 Mon Sep 17 00:00:00 2001 From: JT Pennington Date: Mon, 2 Jan 2017 13:58:13 -0500 Subject: condense lumina screenshot and remove tabs --- src-qt5/desktop-utils/lumina-screenshot/MainUI.ui | 547 ++++++++++++---------- 1 file changed, 289 insertions(+), 258 deletions(-) (limited to 'src-qt5/desktop-utils') diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui b/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui index 22b99b72..cf3a2aec 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui +++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui @@ -6,323 +6,354 @@ 0 0 - 349 - 283 + 357 + 414 + + + 0 + 0 + + Lumina Screenshot - - - 0 - - - 0 - - - 0 - - - 0 - + - - - 1 + + + 3 - - - New Screenshot - - + + QLayout::SetMinimumSize + + + + + 1 + + + QLayout::SetMinimumSize + - - - Settings + + + 0 - - - 3 - - - 3 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - Entire Session - - - - - - - Single Screen - - - - - - - Single Window - - - - - - - 0 - - - - - - 0 - 0 - - - - # - - - 1 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - Include Borders - - - - - - - - - - Qt::Vertical + + QLayout::SetMinimumSize - - - 20 - 40 - - - - - - + + + + + 0 + 0 + + + + Entire Session + + + + + + 0 + 0 + + - Seconds + Sec Delay - Delay + 20 - - - - Take Screenshot - - - - - - - - - - View/Edit - - - - 3 - - - 1 - - - 1 - - - 1 - - - 1 - - - - - - - - - - 0 - 0 - - - - - - - Qt::AlignCenter - - - - - - - 5 - - - 200 - - - 5 - - - 100 - - - Qt::Vertical - - - QSlider::TicksBothSides - - - 20 - - - - - - - - - true - - - - - 0 - 0 - 306 - 173 - - - - - + + 0 + + + QLayout::SetMinimumSize + - - - Save As + + + + 0 + 0 + - - Qt::ToolButtonTextUnderIcon + + Single Screen - - - Launch Editor + + + + 0 + 0 + - - Qt::ToolButtonTextUnderIcon + + # + + + 1 + + + + + + 0 + + + QLayout::SetMinimumSize + - - - Qt::Horizontal + + + + 0 + 0 + - - - 40 - 20 - - - - - - - Crop - - - Qt::ToolButtonTextUnderIcon + Single Window - - - Resize + + + + 0 + 0 + - - Qt::ToolButtonTextUnderIcon + + Include Borders - + + + + + + 0 + 0 + + + + Qt::Vertical + + + + + + + 3 + + + QLayout::SetMinimumSize + + + + + Capture + + + + + + + + 0 + 0 + + + + Save As + + + Qt::ToolButtonTextBesideIcon + + + + + + + + 0 + 0 + + + + Edit + + + Qt::ToolButtonTextBesideIcon + + + + + + + + 0 + 0 + + + + Resize + + + Qt::ToolButtonTextBesideIcon + + + + + + + + 0 + 0 + + + + Crop + + + Qt::ToolButtonTextBesideIcon + + + + + + + + + + + Qt::Horizontal + + + + + 3 + + + + + + + + 0 + 0 + + + + + + + Qt::AlignCenter + + + + + + + 5 + + + 200 + + + 5 + + + 100 + + + Qt::Vertical + + + QSlider::TicksBothSides + + + 20 + + + + + + + + + true + + + + + 0 + 0 + 305 + 218 + + + tabWidget + + + + + + + + group_settings + scrollArea + line + push_snap + + push_snap + line + spin_delay + radio_all + radio_monitor + spin_monitor + horizontalSpacer + check_frame + radio_window + line_2 - 0 0 - 349 + 357 22 -- cgit From e0e857678eddfb64a980e1bd859d773fd4ff991f Mon Sep 17 00:00:00 2001 From: JT Pennington Date: Mon, 2 Jan 2017 13:58:18 -0500 Subject: condense lumina screenshot and remove tabs --- src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src-qt5/desktop-utils') diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp index ac17ee3e..96bc40d2 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp @@ -17,7 +17,6 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ XCB = new LXCB(); IMG = new ImageEditor(this); ui->scrollArea->setWidget(IMG); - ui->tabWidget->setCurrentWidget(ui->tab_view); ppath = QDir::homePath(); ui->label_zoom_percent->setMinimumWidth( ui->label_zoom_percent->fontMetrics().width("200%") ); setupIcons(); @@ -64,8 +63,6 @@ MainUI::~MainUI(){} void MainUI::setupIcons(){ //Setup the icons - ui->tabWidget->setTabIcon(0, LXDG::findIcon("camera-web","") ); - ui->tabWidget->setTabIcon(1, LXDG::findIcon("view-preview","") ); ui->tool_save->setIcon( LXDG::findIcon("document-save","") ); ui->tool_quicksave->setIcon( LXDG::findIcon("document-edit","") ); ui->actionSave_As->setIcon( LXDG::findIcon("document-save-as","") ); @@ -179,7 +176,6 @@ void MainUI::getPixmap(){ } this->show(); this->setGeometry(lastgeom); - ui->tabWidget->setCurrentWidget(ui->tab_view); //view it right now lastScreenShot = QDateTime::currentDateTime(); //Now display the pixmap on the label as well IMG->LoadImage( cpic.toImage() ); -- cgit From 7e055f2ba573e996f8cecc0c7f9e30051962eef7 Mon Sep 17 00:00:00 2001 From: JT Pennington Date: Mon, 2 Jan 2017 11:04:38 -0800 Subject: fix missing ; --- src-qt5/desktop-utils/lumina-fm/MainUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-qt5/desktop-utils') diff --git a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp index 905fc9e1..f2411754 100644 --- a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp @@ -227,7 +227,7 @@ void MainUI::setupIcons(){ ui->actionClone_Repository->setIcon( LXDG::findIcon("git","download") ); // External Devices menu - ui->actionScan->setIcon( LXDG::findIcon("system-search","") ) + ui->actionScan->setIcon( LXDG::findIcon("system-search","") ); ui->actionScan->setShortcut(tr("CTRL+E")); } -- cgit