From 2a1b1f14b8c61593ad899923d86b718d97d08c32 Mon Sep 17 00:00:00 2001 From: q5sys Date: Wed, 14 Dec 2016 12:53:02 -0500 Subject: set up initial bluetooth page --- src-qt5/core-utils/lumina-config/pages/getPage.h | 1 + .../lumina-config/pages/page_bluetooth_trueos.cpp | 47 ++++++++++++++++++++++ .../lumina-config/pages/page_bluetooth_trueos.h | 33 +++++++++++++++ .../lumina-config/pages/page_bluetooth_trueos.ui | 19 +++++++++ src-qt5/core-utils/lumina-config/pages/pages.pri | 15 +++++-- 5 files changed, 112 insertions(+), 3 deletions(-) create mode 100644 src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.cpp create mode 100644 src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.h create mode 100644 src-qt5/core-utils/lumina-config/pages/page_bluetooth_trueos.ui (limited to 'src-qt5') diff --git a/src-qt5/core-utils/lumina-config/pages/getPage.h b/src-qt5/core-utils/lumina-config/pages/getPage.h index c7b5b076..a0e75e4d 100644 --- a/src-qt5/core-utils/lumina-config/pages/getPage.h +++ b/src-qt5/core-utils/lumina-config/pages/getPage.h @@ -69,6 +69,7 @@ static QList 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" 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 @@ + + + page_mouse_trueos + + + + 0 + 0 + 427 + 417 + + + + Form + + + + + diff --git a/src-qt5/core-utils/lumina-config/pages/pages.pri b/src-qt5/core-utils/lumina-config/pages/pages.pri index 02319976..0a900e69 100644 --- a/src-qt5/core-utils/lumina-config/pages/pages.pri +++ b/src-qt5/core-utils/lumina-config/pages/pages.pri @@ -14,7 +14,10 @@ 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 // $${PWD}/page_mouse_trueos.h @@ -31,7 +34,10 @@ SOURCES += $${PWD}/page_main.cpp \ $${PWD}/page_session_locale.cpp \ $${PWD}/page_session_options.cpp \ $${PWD}/page_compton.cpp \ - $${PWD}/page_mouse.cpp + $${PWD}/page_mouse.cpp \ +// \ + $$PWD/page_bluetooth_trueos.cpp \ + $$PWD/page_mouse_trueos.cpp // $${PWD}/page_mouse_trueos.cpp @@ -48,5 +54,8 @@ FORMS += $${PWD}/page_main.ui \ $${PWD}/page_session_locale.ui \ $${PWD}/page_session_options.ui \ $${PWD}/page_compton.ui \ - $${PWD}/page_mouse.ui + $${PWD}/page_mouse.ui \ +// \ + $$PWD/page_bluetooth_trueos.ui \ + $$PWD/page_mouse_trueos.ui // $${PWD}/page_mouse_trueos.ui -- cgit