aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-12-23 09:39:25 -0500
committerKen Moore <ken@ixsystems.com>2016-12-23 09:39:25 -0500
commiteeac1cbe5da8411f5575aa47ae2d84e9bc70b7ef (patch)
treef88a66c98ecbd6f9c17870e211f3703e8ba28b3c /src-qt5/core-utils
parentAdjust the QMenu padding to use "em" values instead of "px" values. This shou... (diff)
parentMerge pull request #332 from q5sys/master (diff)
downloadlumina-eeac1cbe5da8411f5575aa47ae2d84e9bc70b7ef.tar.gz
lumina-eeac1cbe5da8411f5575aa47ae2d84e9bc70b7ef.tar.bz2
lumina-eeac1cbe5da8411f5575aa47ae2d84e9bc70b7ef.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core-utils')
-rw-r--r--src-qt5/core-utils/lumina-config/pages/getPage.h4
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.cpp47
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.h33
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.ui19
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_mouse_trueos.cpp2
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_mouse_trueos.h2
-rw-r--r--src-qt5/core-utils/lumina-config/pages/pages.pri11
7 files changed, 113 insertions, 5 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/getPage.h b/src-qt5/core-utils/lumina-config/pages/getPage.h
index 6161c4f8..e505e450 100644
--- a/src-qt5/core-utils/lumina-config/pages/getPage.h
+++ b/src-qt5/core-utils/lumina-config/pages/getPage.h
@@ -42,6 +42,8 @@ static QList<PAGEINFO> KnownPages(){
list << PageInfo("input-devices", QObject::tr("Input Device Settings"), QObject::tr("Input Device Settings"), "preferences-desktop-peripherals",QObject::tr("Adjust keyboard and mouse devices"), "user", QStringList(), QStringList() << "user"<<"speed"<<"accel"<<"mouse" << "keyboard");
}
// list << PageInfo("mouse-settings", QObject::tr("TrueOS Mouse Settings"), QObject::tr("TrueOS Mouse Settings"), "preferences-desktop-mouse",QObject::tr("Adjust mouse devices"), "user", QStringList(), QStringList() << "user"<<"speed"<<"accel"<<"mouse");
+ // list << PageInfo("bluetooth-settings", QObject::tr("TrueOS Bluetooth Settings"), QObject::tr("TrueOS Bluetooth Settings"), "preferences-desktop-bluetooth",QObject::tr("Setup Bluetooth devices"), "user", QStringList(), QStringList() << "user"<<"bluetooth"<<"audio");
+
//Now sort the items according to the translated name
QStringList names;
for(int i=0; i<list.length(); i++){ names << list[i].name; }
@@ -71,6 +73,7 @@ static QList<PAGEINFO> KnownPages(){
#include "page_compton.h"
#include "page_mouse.h"
// #include "page_mouse_trueos.h"
+// #include "page_bluetooth_trueos.h"
static PageWidget* GetNewPage(QString id, QWidget *parent){
//Find the page that matches this "id"
@@ -89,6 +92,7 @@ static PageWidget* GetNewPage(QString id, QWidget *parent){
else if(id=="compton"){ page = new page_compton(parent); }
else if(id=="input-devices"){ page = new page_mouse(parent); }
// else if(id=="mouse-settings"){ page = new page_mouse_trueos(parent); }
+ // else if(id=="bluetooth-settings"){ page = new page_bluetooth_trueos(parent); }
//Return the main control_panel page as the fallback/default
if(page==0){ id.clear(); page = new page_main(parent); }
page->setWhatsThis(id);
diff --git a/src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.cpp b/src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.cpp
new file mode 100644
index 00000000..3e3451fc
--- /dev/null
+++ b/src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.cpp
@@ -0,0 +1,47 @@
+//===========================================
+// Lumina Desktop Source Code
+// Copyright (c) 2016, Ken Moore & JT Pennington
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#include "page_bluetooth_trueos.h"
+#include "ui_page_bluetooth_trueos.h"
+#include "getPage.h"
+
+//==========
+// PUBLIC
+//==========
+page_bluetooth::page_bluetooth(QWidget *parent) : PageWidget(parent), ui(new Ui::page_bluetooth()){
+ ui->setupUi(this);
+
+ updateIcons();
+}
+
+page_bluetooth::~page_bluetooth(){
+
+}
+
+//================
+// PUBLIC SLOTS
+//================
+void page_bluetooth::SaveSettings(){
+
+ emit HasPendingChanges(false);
+}
+
+void page_bluetooth::LoadSettings(int){
+ emit HasPendingChanges(false);
+ emit ChangePageTitle( tr("Bluetooth Settings") );
+}
+
+void page_bluetooth::updateIcons(){
+
+}
+
+//=================
+// PRIVATE
+//=================
+
+//=================
+// PRIVATE SLOTS
+//=================
diff --git a/src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.h b/src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.h
new file mode 100644
index 00000000..1f140d82
--- /dev/null
+++ b/src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.h
@@ -0,0 +1,33 @@
+//===========================================
+// Lumina Desktop Source Code
+// Copyright (c) 2016, Ken Moore & JT Pennington
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#ifndef _LUMINA_CONFIG_PAGE_BLUETOOTH_TRUEOS_H
+#define _LUMINA_CONFIG_PAGE_BLUETOOTH_TRUEOS_H
+#include "../globals.h"
+#include "PageWidget.h"
+
+namespace Ui{
+ class page_bluetooth;
+};
+
+class page_bluetooth : public PageWidget{
+ Q_OBJECT
+public:
+ page_bluetooth(QWidget *parent);
+ ~page_bluetooth();
+
+public slots:
+ void SaveSettings();
+ void LoadSettings(int screennum);
+ void updateIcons();
+
+private:
+ Ui::page_bluetooth *ui;
+
+private slots:
+
+};
+#endif
diff --git a/src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.ui b/src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.ui
new file mode 100644
index 00000000..ce2c96d6
--- /dev/null
+++ b/src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.ui
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>page_mouse_trueos</class>
+ <widget class="QWidget" name="page_mouse_trueos">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>427</width>
+ <height>417</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Form</string>
+ </property>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/src-qt5/core-utils/lumina-config/pages/page_mouse_trueos.cpp b/src-qt5/core-utils/lumina-config/pages/page_mouse_trueos.cpp
index 60bc2872..edfe1cb7 100644
--- a/src-qt5/core-utils/lumina-config/pages/page_mouse_trueos.cpp
+++ b/src-qt5/core-utils/lumina-config/pages/page_mouse_trueos.cpp
@@ -1,6 +1,6 @@
//===========================================
// Lumina Desktop Source Code
-// Copyright (c) 2016, Ken Moore
+// Copyright (c) 2016, Ken Moore & JT Pennington
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
diff --git a/src-qt5/core-utils/lumina-config/pages/page_mouse_trueos.h b/src-qt5/core-utils/lumina-config/pages/page_mouse_trueos.h
index ff643747..998b212b 100644
--- a/src-qt5/core-utils/lumina-config/pages/page_mouse_trueos.h
+++ b/src-qt5/core-utils/lumina-config/pages/page_mouse_trueos.h
@@ -1,6 +1,6 @@
//===========================================
// Lumina Desktop Source Code
-// Copyright (c) 2016, Ken Moore
+// Copyright (c) 2016, Ken Moore & JT Pennington
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
diff --git a/src-qt5/core-utils/lumina-config/pages/pages.pri b/src-qt5/core-utils/lumina-config/pages/pages.pri
index 56346a32..ae306a80 100644
--- a/src-qt5/core-utils/lumina-config/pages/pages.pri
+++ b/src-qt5/core-utils/lumina-config/pages/pages.pri
@@ -14,7 +14,8 @@ HEADERS += $${PWD}/getPage.h \
$${PWD}/page_session_locale.h \
$${PWD}/page_session_options.h \
$${PWD}/page_compton.h \
- $${PWD}/page_mouse.h
+ $${PWD}/page_mouse.h
+# $${PWD}/page_bluetooth_trueos.h
# $${PWD}/page_mouse_trueos.h
@@ -32,7 +33,9 @@ SOURCES += $${PWD}/page_main.cpp \
$${PWD}/page_session_options.cpp \
$${PWD}/page_compton.cpp \
$${PWD}/page_mouse.cpp
-# $${PWD}/page_mouse_trueos.cpp
+# $${PWD}/page_bluetooth_trueos.cpp
+# $${PWD}/page_mouse_trueos.cpp
+
FORMS += $${PWD}/page_main.ui \
@@ -49,4 +52,6 @@ FORMS += $${PWD}/page_main.ui \
$${PWD}/page_session_options.ui \
$${PWD}/page_compton.ui \
$${PWD}/page_mouse.ui
-# $${PWD}/page_mouse_trueos.ui
+# $${PWD}/page_bluetooth_trueos.ui
+# $${PWD}/page_mouse_trueos.ui
+
bgstack15