From 49065b25b2e41e3cfc7037e1459c9c33ab94d6d4 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 22 Jun 2016 15:28:49 -0400 Subject: Continue splitting up all the various pages/tabs into distinct pages for lumina-config. All the UI files are now split up - starting to add in the cpp/h files now. (Still not tied into build yet) --- src-qt5/core-utils/lumina-config/globals.h | 22 ++ src-qt5/core-utils/lumina-config/mainWindow.ui | 69 ++++++ .../core-utils/lumina-config/pages/PageWidget.h | 54 +++++ src-qt5/core-utils/lumina-config/pages/getPage.h | 43 ++++ .../lumina-config/pages/page_fluxbox_settings.ui | 152 ++++++++++++ .../lumina-config/pages/page_interface_desktop.ui | 85 +++++++ .../lumina-config/pages/page_interface_menu.ui | 97 ++++++++ .../lumina-config/pages/page_interface_panels.ui | 80 ++++++ .../core-utils/lumina-config/pages/page_main.cpp | 41 ++++ src-qt5/core-utils/lumina-config/pages/page_main.h | 32 +++ .../core-utils/lumina-config/pages/page_main.ui | 51 ++++ .../lumina-config/pages/page_session_locale.ui | 110 +++++++++ .../lumina-config/pages/page_session_options.ui | 267 +++++++++++++++++++++ src-qt5/core-utils/lumina-config/pages/pages.pri | 41 ++++ 14 files changed, 1144 insertions(+) create mode 100644 src-qt5/core-utils/lumina-config/globals.h create mode 100644 src-qt5/core-utils/lumina-config/mainWindow.ui create mode 100644 src-qt5/core-utils/lumina-config/pages/PageWidget.h create mode 100644 src-qt5/core-utils/lumina-config/pages/getPage.h create mode 100644 src-qt5/core-utils/lumina-config/pages/page_fluxbox_settings.ui create mode 100644 src-qt5/core-utils/lumina-config/pages/page_interface_desktop.ui create mode 100644 src-qt5/core-utils/lumina-config/pages/page_interface_menu.ui create mode 100644 src-qt5/core-utils/lumina-config/pages/page_interface_panels.ui create mode 100644 src-qt5/core-utils/lumina-config/pages/page_main.cpp create mode 100644 src-qt5/core-utils/lumina-config/pages/page_main.h create mode 100644 src-qt5/core-utils/lumina-config/pages/page_main.ui create mode 100644 src-qt5/core-utils/lumina-config/pages/page_session_locale.ui create mode 100644 src-qt5/core-utils/lumina-config/pages/page_session_options.ui create mode 100644 src-qt5/core-utils/lumina-config/pages/pages.pri diff --git a/src-qt5/core-utils/lumina-config/globals.h b/src-qt5/core-utils/lumina-config/globals.h new file mode 100644 index 00000000..18302125 --- /dev/null +++ b/src-qt5/core-utils/lumina-config/globals.h @@ -0,0 +1,22 @@ +//=========================================== +// Lumina Desktop Source Code +// Copyright (c) 2016, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#ifndef _LUMINA_CONFIG_GLOBALS_H +#define _LUMINA_CONFIG_GLOBALS_H + +#include +#include +#include +#include +#include + +//Now the Lumina Library classes +#include +#include +#include +#include + +#endif diff --git a/src-qt5/core-utils/lumina-config/mainWindow.ui b/src-qt5/core-utils/lumina-config/mainWindow.ui new file mode 100644 index 00000000..55e39233 --- /dev/null +++ b/src-qt5/core-utils/lumina-config/mainWindow.ui @@ -0,0 +1,69 @@ + + + mainWindow + + + + 0 + 0 + 486 + 388 + + + + MainWindow + + + + + + Qt::CustomContextMenu + + + toolBar + + + false + + + Qt::TopToolBarArea + + + TopToolBarArea + + + false + + + + + + + + Save + + + Save current changes + + + Ctrl+S + + + + + Back to settings + + + Back to overall settings + + + Back to overall settings + + + Esc + + + + + + diff --git a/src-qt5/core-utils/lumina-config/pages/PageWidget.h b/src-qt5/core-utils/lumina-config/pages/PageWidget.h new file mode 100644 index 00000000..9eb7d847 --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/PageWidget.h @@ -0,0 +1,54 @@ +//=========================================== +// Lumina Desktop Source Code +// Copyright (c) 2016, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#ifndef _LUMINA_CONFIG_PAGE_WIDGET_UI_H +#define _LUMINA_CONFIG_PAGE_WIDGET_UI_H +#include "../globals.h" +//=============================== +// NOTES FOR CREATING SUBPAGES +//=============================== +// 1) Subclass this PageWidget for any client page +// 2) Init any internal widgets/classes in the constructor +// 3) Make sure you handle the [Save/Load]Settings functions (LoadSettings() will be called automatially after widget creation) +// 4) Make sure to emit the signals as needed for interactivity with the main container +//=============================== + +//Structure of all information needed for a page +struct PAGEINFO{ + QString name, title, icon, comment, category, id; + QStringList req_systems, search_tags; +}; + +//Main widget class needed to show a configuration page +class PageWidget : public QWidget{ + Q_OBJECT +public: + + //Main constructor/destructor (create/destroy any interface items) + PageWidget(QWidget *parent) : QWidget(parent){} + ~PageWidget(){} + +signals: + //emit this when the page has changes which are waiting to be saved + void HasPendingChanges(bool); + //emit this when the page title changes (will updates main UI as needed) + void ChangePageTitle(QString); + //emit this when we need to change to another client/page (if needed - generally only used for the base/group pages) + void ChangePage(QString); //ID of new page to open + +public slots: + //User requested to save any pending changes + virtual void SaveSettings(){} + virtual void LoadSettings(int){} //INPUT: Screen number (0+) + virtual void updateIcons(); + + //Simplification function for widget connections + void settingChanged(){ + emit HasPendingChanged(true); + } +}; + +#endif diff --git a/src-qt5/core-utils/lumina-config/pages/getPage.h b/src-qt5/core-utils/lumina-config/pages/getPage.h new file mode 100644 index 00000000..96e22985 --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/getPage.h @@ -0,0 +1,43 @@ +//=========================================== +// Lumina Desktop Source Code +// Copyright (c) 2016, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#ifndef _LUMINA_CONFIG_PAGE_WIDGET_FETCH_H +#define _LUMINA_CONFIG_PAGE_WIDGET_FETCH_H + +#include "../globals.h" +#include "PageWidget.h" + + +//Simplification function for creating a PAGEINFO structure +static PAGEINFO PageInfo(QString ID, QString i_name, QString i_title, QString i_icon, QString i_comment, QString i_cat, QStringList i_sys, QStringList i_tags){ + PAGEINFO page; + page.id = ID; page.name = i_name; page.title = i_title; page.icon = i_icon; + page.comment = i_comment; page.category = i_cat; page.req_systems = i_sys; + page.search_tags = i_tags; + return page; +} + +//List all the known pages +// **** Add new page entries here **** +static QList KnownPages(){ + // Valid Groups: ["appearance", "interface", "session", "apps"] + QList list; + //Reminder: , , , <icon>, <comment>, <category>, <server subsytem list>, <search tags> + + return list; +} + +//Add any sub-pages here +#include "page_main.h" + +static PageWidget* GetNewPage(QString id, QWidget *parent){ + //Find the page that matches this "id" + //if(id=="page_beadm"){ return new beadm_page(parent, core); } + //Return the main control_panel page as the fallback/default + return new page_main(parent); +} + +#endif diff --git a/src-qt5/core-utils/lumina-config/pages/page_fluxbox_settings.ui b/src-qt5/core-utils/lumina-config/pages/page_fluxbox_settings.ui new file mode 100644 index 00000000..e15f1dd9 --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/page_fluxbox_settings.ui @@ -0,0 +1,152 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>page_fluxbox_settings</class> + <widget class="QWidget" name="page_fluxbox_settings"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <layout class="QFormLayout" name="formLayout_4"> + <item row="0" column="0"> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>Number of Workspaces</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QSpinBox" name="spin_session_wkspaces"> + <property name="minimum"> + <number>1</number> + </property> + <property name="maximum"> + <number>10</number> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="label"> + <property name="text"> + <string>New Window Placement</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QComboBox" name="combo_session_wloc"/> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label_6"> + <property name="text"> + <string>Focus Policy</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QComboBox" name="combo_session_wfocus"/> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="label_13"> + <property name="text"> + <string>Window Theme</string> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QComboBox" name="combo_session_wtheme"/> + </item> + </layout> + </item> + <item> + <widget class="QGroupBox" name="group_session_preview"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Window Theme Preview</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_12"> + <item> + <widget class="QScrollArea" name="scrollArea"> + <property name="widgetResizable"> + <bool>true</bool> + </property> + <widget class="QWidget" name="scrollAreaWidgetContents"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>356</width> + <height>109</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <layout class="QVBoxLayout" name="verticalLayout_13"> + <property name="leftMargin"> + <number>1</number> + </property> + <property name="topMargin"> + <number>1</number> + </property> + <property name="rightMargin"> + <number>1</number> + </property> + <property name="bottomMargin"> + <number>1</number> + </property> + <item> + <widget class="QLabel" name="label_session_wpreview"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Sunken</enum> + </property> + <property name="text"> + <string>No Preview Available</string> + </property> + <property name="scaledContents"> + <bool>false</bool> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + </widget> + </item> + </layout> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/src-qt5/core-utils/lumina-config/pages/page_interface_desktop.ui b/src-qt5/core-utils/lumina-config/pages/page_interface_desktop.ui new file mode 100644 index 00000000..bd209fc4 --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/page_interface_desktop.ui @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>page_interface_desktop</class> + <widget class="QWidget" name="page_interface_desktop"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QLabel" name="label_15"> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Embedded Utilities</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <widget class="QListWidget" name="list_desktop_plugins"> + <property name="selectionMode"> + <enum>QAbstractItemView::ExtendedSelection</enum> + </property> + <property name="sortingEnabled"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_6"> + <item> + <widget class="QToolButton" name="tool_desktop_addplugin"> + <property name="text"> + <string notr="true">add</string> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_desktop_rmplugin"> + <property name="text"> + <string notr="true">rem</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_5"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>10</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <widget class="QCheckBox" name="check_desktop_autolaunchers"> + <property name="text"> + <string>Display Desktop Folder Contents</string> + </property> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/src-qt5/core-utils/lumina-config/pages/page_interface_menu.ui b/src-qt5/core-utils/lumina-config/pages/page_interface_menu.ui new file mode 100644 index 00000000..1d230494 --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/page_interface_menu.ui @@ -0,0 +1,97 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>page_interface_menu</class> + <widget class="QWidget" name="page_interface_menu"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="label_10"> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Quick-Access Menu</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <widget class="QListWidget" name="list_menu"/> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_13"> + <item> + <widget class="QToolButton" name="tool_menu_add"> + <property name="text"> + <string notr="true">add</string> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_menu_rm"> + <property name="text"> + <string notr="true">rem</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_9"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QToolButton" name="tool_menu_up"> + <property name="text"> + <string notr="true">up</string> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="tool_menu_dn"> + <property name="text"> + <string notr="true">dn</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/src-qt5/core-utils/lumina-config/pages/page_interface_panels.ui b/src-qt5/core-utils/lumina-config/pages/page_interface_panels.ui new file mode 100644 index 00000000..a541a322 --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/page_interface_panels.ui @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>page_interface_panels</class> + <widget class="QWidget" name="page_interface_panels"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <layout class="QVBoxLayout" name="verticalLayout_5"> + <item> + <widget class="QToolButton" name="tool_panels_add"> + <property name="text"> + <string notr="true">add</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_3"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <widget class="QScrollArea" name="scroll_panels"> + <property name="sizeAdjustPolicy"> + <enum>QAbstractScrollArea::AdjustToContents</enum> + </property> + <property name="widgetResizable"> + <bool>true</bool> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> + </property> + <widget class="QWidget" name="scrollAreaWidgetContents_2"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>353</width> + <height>298</height> + </rect> + </property> + </widget> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/src-qt5/core-utils/lumina-config/pages/page_main.cpp b/src-qt5/core-utils/lumina-config/pages/page_main.cpp new file mode 100644 index 00000000..a45c0477 --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/page_main.cpp @@ -0,0 +1,41 @@ +//=========================================== +// Lumina Desktop Source Code +// Copyright (c) 2016, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#include "page_main.h" +#include "ui_page_main.h" + +//========== +// PUBLIC +//========== +page_main::page_main(QWidget *parent) : PageWidget(parent), ui(new Ui::page_main()){ + ui->setupUi(this); + +} + +page_main::~page_main(){ + +} + + + +//================ +// PUBLIC SLOTS +//================ +void page_main::SaveSettings(){ + +} + +void page_main::LoadSettings(int screennum){ + +} + +void page_main::updateIcons(){ + +} + +//=========== +// PRIVATE +//=========== diff --git a/src-qt5/core-utils/lumina-config/pages/page_main.h b/src-qt5/core-utils/lumina-config/pages/page_main.h new file mode 100644 index 00000000..cbdf1cbd --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/page_main.h @@ -0,0 +1,32 @@ +//=========================================== +// Lumina Desktop Source Code +// Copyright (c) 2016, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#ifndef _LUMINA_CONFIG_PAGE_MAIN_H +#define _LUMINA_CONFIG_PAGE_MAIN_H +#include "../globals.h" + +namespace Ui{ + class page_main; +}; + +class page_main : public PageWidget{ + Q_OBJECT +public: + page_main(QWidget *parent); + ~page_main(); + +public slots: + void SaveSettings(); + void LoadSettings(int screennum); + void updateIcons(); + +private: + Ui::page_main *ui; + +private slots: + +}; +#endif diff --git a/src-qt5/core-utils/lumina-config/pages/page_main.ui b/src-qt5/core-utils/lumina-config/pages/page_main.ui new file mode 100644 index 00000000..31cb372f --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/page_main.ui @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>page_main</class> + <widget class="QWidget" name="page_main"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QTreeWidget" name="treeWidget"> + <property name="styleSheet"> + <string notr="true">QTreeWidget{background: transparent; }</string> + </property> + <property name="sortingEnabled"> + <bool>true</bool> + </property> + <attribute name="headerVisible"> + <bool>false</bool> + </attribute> + <column> + <property name="text"> + <string notr="true">1</string> + </property> + </column> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/src-qt5/core-utils/lumina-config/pages/page_session_locale.ui b/src-qt5/core-utils/lumina-config/pages/page_session_locale.ui new file mode 100644 index 00000000..90cd4ca1 --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/page_session_locale.ui @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>page_session_locale</class> + <widget class="QWidget" name="page_session_locale"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <layout class="QFormLayout" name="formLayout"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item row="0" column="0" colspan="2"> + <widget class="QLabel" name="label_30"> + <property name="text"> + <string>System localization settings (restart required)</string> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="label_3"> + <property name="text"> + <string>Language</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QComboBox" name="combo_locale_lang"/> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label_4"> + <property name="text"> + <string>Messages</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QComboBox" name="combo_locale_message"/> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="label_5"> + <property name="text"> + <string>Time</string> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QComboBox" name="combo_locale_time"/> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="label_7"> + <property name="text"> + <string>Numeric</string> + </property> + </widget> + </item> + <item row="4" column="1"> + <widget class="QComboBox" name="combo_locale_numeric"/> + </item> + <item row="5" column="0"> + <widget class="QLabel" name="label_8"> + <property name="text"> + <string>Monetary</string> + </property> + </widget> + </item> + <item row="5" column="1"> + <widget class="QComboBox" name="combo_locale_monetary"/> + </item> + <item row="6" column="0"> + <widget class="QLabel" name="label_9"> + <property name="text"> + <string>Collate</string> + </property> + </widget> + </item> + <item row="6" column="1"> + <widget class="QComboBox" name="combo_locale_collate"/> + </item> + <item row="7" column="0"> + <widget class="QLabel" name="label_23"> + <property name="text"> + <string>CType</string> + </property> + </widget> + </item> + <item row="7" column="1"> + <widget class="QComboBox" name="combo_locale_ctype"/> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/src-qt5/core-utils/lumina-config/pages/page_session_options.ui b/src-qt5/core-utils/lumina-config/pages/page_session_options.ui new file mode 100644 index 00000000..03453d6d --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/page_session_options.ui @@ -0,0 +1,267 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>page_session_options</class> + <widget class="QWidget" name="page_session_options"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <layout class="QGridLayout" name="gridLayout"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item row="0" column="0"> + <layout class="QVBoxLayout" name="verticalLayout_4"> + <item> + <widget class="QCheckBox" name="check_session_numlock"> + <property name="text"> + <string>Enable numlock on startup</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="check_session_playloginaudio"> + <property name="text"> + <string>Play chimes on startup</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="check_session_playlogoutaudio"> + <property name="text"> + <string>Play chimes on exit</string> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_14"> + <item> + <widget class="QPushButton" name="push_session_setUserIcon"> + <property name="text"> + <string>Change User Icon</string> + </property> + <property name="iconSize"> + <size> + <width>32</width> + <height>32</height> + </size> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_16"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </item> + <item row="0" column="1" rowspan="2"> + <layout class="QFormLayout" name="formLayout_3"> + <property name="fieldGrowthPolicy"> + <enum>QFormLayout::AllNonFixedFieldsGrow</enum> + </property> + <property name="labelAlignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + <item row="0" column="0"> + <widget class="QLabel" name="label_24"> + <property name="text"> + <string>Time Format:</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <item> + <widget class="QLineEdit" name="line_session_time"/> + </item> + <item> + <widget class="QToolButton" name="tool_help_time"> + <property name="toolTip"> + <string>View format codes</string> + </property> + <property name="text"> + <string notr="true">...</string> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="label_28"> + <property name="text"> + <string>Sample:</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QLabel" name="label_session_timesample"> + <property name="text"> + <string notr="true"/> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label_25"> + <property name="text"> + <string>Date Format:</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_21"> + <item> + <widget class="QLineEdit" name="line_session_date"/> + </item> + <item> + <widget class="QToolButton" name="tool_help_date"> + <property name="toolTip"> + <string>View format codes</string> + </property> + <property name="text"> + <string notr="true">...</string> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="label_29"> + <property name="text"> + <string>Sample:</string> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QLabel" name="label_session_datesample"> + <property name="text"> + <string notr="true"/> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="label_27"> + <property name="text"> + <string>Display Format</string> + </property> + </widget> + </item> + <item row="4" column="1"> + <widget class="QComboBox" name="combo_session_datetimeorder"/> + </item> + </layout> + </item> + <item row="1" column="0"> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>100</height> + </size> + </property> + </spacer> + </item> + <item row="2" column="0" colspan="2"> + <widget class="QGroupBox" name="groupBox_2"> + <property name="font"> + <font> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="title"> + <string>Reset Desktop Settings</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_20"> + <item> + <spacer name="horizontalSpacer_18"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="push_session_resetSysDefaults"> + <property name="text"> + <string>Return to system defaults</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="push_session_resetLuminaDefaults"> + <property name="text"> + <string>Return to Lumina defaults</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_17"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/src-qt5/core-utils/lumina-config/pages/pages.pri b/src-qt5/core-utils/lumina-config/pages/pages.pri new file mode 100644 index 00000000..da68e6f0 --- /dev/null +++ b/src-qt5/core-utils/lumina-config/pages/pages.pri @@ -0,0 +1,41 @@ + +HEADERS += $${PWD}/getPage.h \ + $${PWD}/page_main.h +# $${PWD}/page_autostart.h \ +# $${PWD}/page_defaultapps.h \ +# $${PWD}/page_fluxbox_keys.h \ +# $${PWD}/page_fluxbox_settings.h \ +# $${PWD}/page_interface_desktop.h \ +# $${PWD}/page_interface_menu.h \ +# $${PWD}/page_interface_panels.h \ +# $${PWD}/page_session_locale.h \ +# $${PWD}/page_session_options.h \ +# $${PWD}/page_theme.h \ +# $${PWD}/page_wallpaper.h + + +SOURCES += $${PWD}/page_main.cpp +# $${PWD}/page_autostart.cpp \ +# $${PWD}/page_defaultapps.cpp \ +# $${PWD}/page_fluxbox_keys.cpp \ +# $${PWD}/page_fluxbox_settings.cpp \ +# $${PWD}/page_interface_desktop.cpp \ +# $${PWD}/page_interface_menu.cpp \ +# $${PWD}/page_interface_panels.cpp \ +# $${PWD}/page_session_locale.cpp \ +# $${PWD}/page_session_options.cpp \ +# $${PWD}/page_theme.cpp \ +# $${PWD}/page_wallpaper.cpp + +FORMS += $${PWD}/page_main.ui +# $${PWD}/page_autostart.ui \ +# $${PWD}/page_defaultapps.ui \ +# $${PWD}/page_fluxbox_keys.ui \ +# $${PWD}/page_fluxbox_settings.ui \ +# $${PWD}/page_interface_desktop.ui \ +# $${PWD}/page_interface_menu.ui \ +# $${PWD}/page_interface_panels.ui \ +# $${PWD}/page_session_locale.ui \ +# $${PWD}/page_session_options.ui \ +# $${PWD}/page_theme.ui \ +# $${PWD}/page_wallpaper.ui -- cgit