From d4e8655189001e0d3ae68525d87eb09421b143d1 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 5 Feb 2015 13:11:49 -0500 Subject: Another bit of cleanup/rearranging in lumina-config. --- lumina-config/mainUI.cpp | 10 +- lumina-config/mainUI.ui | 592 +++++++++++++++++++++++++---------------------- 2 files changed, 326 insertions(+), 276 deletions(-) diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp index 8b5877f7..204a9feb 100644 --- a/lumina-config/mainUI.cpp +++ b/lumina-config/mainUI.cpp @@ -34,9 +34,13 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI()){ setupMenus(); setupConnections(); - //Start on the Desktop page + //Start on the Desktop page (and first tab for all tab widgets) ui->stackedWidget->setCurrentWidget(ui->page_desktop); ui->tabWidget_desktop->setCurrentWidget(ui->tab_wallpaper); + ui->tabWidget_session->setCurrentIndex(0); + ui->tabWidget_apps->setCurrentIndex(0); + ui->tabWidget_panels->setCurrentIndex(0); + slotChangePage(false); QTimer::singleShot(10, this, SLOT(loadCurrentSettings()) ); @@ -66,7 +70,7 @@ void MainUI::setupIcons(){ ui->actionPanels->setIcon( LXDG::findIcon("preferences-desktop-icons","") ); //ui->actionMenu->setIcon( LXDG::findIcon("preferences-desktop-icons","") ); ui->actionShortcuts->setIcon( LXDG::findIcon("configure-shortcuts","") ); - ui->actionDefaults->setIcon( LXDG::findIcon("preferences-desktop-filetype-association","") ); + ui->actionDefaults->setIcon( LXDG::findIcon("preferences-system-windows","") ); ui->actionSession->setIcon( LXDG::findIcon("preferences-system-session-services","") ); ui->push_save->setIcon( LXDG::findIcon("document-save","") ); @@ -116,6 +120,8 @@ void MainUI::setupIcons(){ ui->tool_defaults_clear->setIcon( LXDG::findIcon("edit-clear","") ); ui->tool_defaults_set->setIcon( LXDG::findIcon("system-run","") ); ui->tool_defaults_setbin->setIcon( LXDG::findIcon("application-x-executable","") ); + ui->tabWidget_apps->setTabIcon( ui->tabWidget_apps->indexOf(ui->tab_auto), LXDG::findIcon("system-run", "") ); + ui->tabWidget_apps->setTabIcon( ui->tabWidget_apps->indexOf(ui->tab_defaults), LXDG::findIcon("preferences-desktop-filetype-association", "") ); //Session Page ui->tool_session_rmapp->setIcon( LXDG::findIcon("list-remove","") ); diff --git a/lumina-config/mainUI.ui b/lumina-config/mainUI.ui index 99888a26..200a75ef 100644 --- a/lumina-config/mainUI.ui +++ b/lumina-config/mainUI.ui @@ -109,7 +109,7 @@ QFrame::StyledPanel - 1 + 3 @@ -520,6 +520,12 @@ true + + 0 + + + 10 + @@ -596,8 +602,8 @@ 0 0 - 255 - 160 + 233 + 150 @@ -695,8 +701,8 @@ 0 0 - 274 - 160 + 197 + 117 @@ -793,8 +799,8 @@ 0 0 - 254 - 160 + 233 + 150 @@ -892,8 +898,8 @@ 0 0 - 274 - 160 + 197 + 117 @@ -1122,6 +1128,9 @@ Qt::AlignCenter + + true + @@ -1129,222 +1138,316 @@ - - - - - QFormLayout::ExpandingFieldsGrow - - - - - - 75 - true - - - - Web Browser: - - - - - - - ... - - - Qt::ToolButtonTextBesideIcon - - - - - - - - 75 - true - - - - E-Mail Client: - - + + + 0 + + + + Auto-Started + + + + + + + + rem + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Application + + + Qt::ToolButtonTextBesideIcon + + + + + + + Binary + + + Qt::ToolButtonTextBesideIcon + + + + + + + File + + + Qt::ToolButtonTextBesideIcon + + + + - - - - ... - - - Qt::ToolButtonTextBesideIcon + + + + true - - - - - - - - 75 - true - - - - File Manager: - - + + + + File Defaults + + + + 3 + + + 3 + + + 3 + + + 3 + + + + + + + QFormLayout::ExpandingFieldsGrow + + + + + + 75 + true + + + + Web Browser: + + + + + + + ... + + + Qt::ToolButtonTextBesideIcon + + + + + + + + 75 + true + + + + E-Mail Client: + + + + + + + ... + + + Qt::ToolButtonTextBesideIcon + + + + + + + + + + + + 75 + true + + + + File Manager: + + + + + + + + 75 + true + + + + Virtual Terminal: + + + + + + + ... + + + Qt::ToolButtonTextBesideIcon + + + + + + + ... + + + Qt::ToolButtonTextBesideIcon + + + + + + - - + + - 75 - true + false - - Virtual Terminal: - - - - - - - ... - - - Qt::ToolButtonTextBesideIcon - - - - - - - ... - - - Qt::ToolButtonTextBesideIcon + + Specific File Types + + + 2 + + + 2 + + + + + + 20 + 20 + + + + 20 + + + true + + + true + + + true + + + 200 + + + 150 + + + + Type/Group + + + + + Default Application + + + + + Description + + + + + + + + + + Clear + + + Qt::ToolButtonTextBesideIcon + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Set App + + + Qt::ToolButtonTextBesideIcon + + + + + + + Set Binary + + + Qt::ToolButtonTextBesideIcon + + + + + + + tree_defaults + - - - - - - - - false - - - - Specific File Types - - - - 2 - - - 2 - - - - - - 20 - 20 - - - - 20 - - - true - - - true - - - true - - - 200 - - - 150 - - - - Group/Extension - - - - - Default Application - - - - - Description - - - - - - - - - - Clear - - - Qt::ToolButtonTextBesideIcon - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Set App - - - Qt::ToolButtonTextBesideIcon - - - - - - - Set Binary - - - Qt::ToolButtonTextBesideIcon - - - - - - - tree_defaults - + @@ -1352,7 +1455,7 @@ - + @@ -1485,65 +1588,6 @@ - - - Startup Routine - - - - - - true - - - - - - - - - rem - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - add - - - - - - - bin - - - - - - - file - - - - - - - Window System @@ -1770,8 +1814,8 @@ - + @@ -1812,10 +1856,10 @@ true - Defaults + Applications - Default Applications + Application Management -- cgit