aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/pages/getPage.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-01-06 09:03:56 -0500
committerKen Moore <ken@ixsystems.com>2017-01-06 09:03:56 -0500
commitdc8e7acb08930a07c76ca700c1d70979c8a51db9 (patch)
treedca77852afb2816831eefc63172b87c22fad1d12 /src-qt5/core-utils/lumina-config/pages/getPage.h
parentGet some more stuff merged over. Starting to glue the various global structur... (diff)
downloadlumina-dc8e7acb08930a07c76ca700c1d70979c8a51db9.tar.gz
lumina-dc8e7acb08930a07c76ca700c1d70979c8a51db9.tar.bz2
lumina-dc8e7acb08930a07c76ca700c1d70979c8a51db9.zip
Add a new compile-time option: NO_XINPUT
This can be used to disable the usage of the xcb/xinput.h class, since some OS's seem to not have it for some reason. Note that this option will make the input device management page in lumina-config unavailable on that operating system. Example: qmake CONFIG+=NO_XINPUT
Diffstat (limited to 'src-qt5/core-utils/lumina-config/pages/getPage.h')
-rw-r--r--src-qt5/core-utils/lumina-config/pages/getPage.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/getPage.h b/src-qt5/core-utils/lumina-config/pages/getPage.h
index e505e450..99aab9a0 100644
--- a/src-qt5/core-utils/lumina-config/pages/getPage.h
+++ b/src-qt5/core-utils/lumina-config/pages/getPage.h
@@ -38,9 +38,11 @@ static QList<PAGEINFO> KnownPages(){
list << PageInfo("interface-menu", QObject::tr("Menu"), QObject::tr("Menu Plugins"), "format-list-unordered",QObject::tr("Change what options are shown on the desktop context menu"), "interface", QStringList(), QStringList() << "desktop" << "menu" << "plugins" << "shortcuts");
list << PageInfo("session-locale", QObject::tr("Localization"), QObject::tr("Locale Settings"), "preferences-desktop-locale",QObject::tr("Change the default locale settings for this user"), "user", QStringList(), QStringList() << "user"<<"locale"<<"language"<<"translations");
list << PageInfo("session-options", QObject::tr("General Options"), QObject::tr("User Settings"), "configure",QObject::tr("Change basic user settings such as time/date formats"), "user", QStringList(), QStringList() << "user"<<"settings"<<"time"<<"date"<<"icon"<<"reset"<<"numlock"<<"clock");
+ #ifndef NO_XINPUT
if(LUtils::isValidBinary("xinput")){
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");
}
+ #endif
// 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");
@@ -71,7 +73,11 @@ static QList<PAGEINFO> KnownPages(){
#include "page_session_locale.h"
#include "page_session_options.h"
#include "page_compton.h"
+
+#ifndef NO_XINPUT
#include "page_mouse.h"
+#endif
+
// #include "page_mouse_trueos.h"
// #include "page_bluetooth_trueos.h"
@@ -90,7 +96,10 @@ static PageWidget* GetNewPage(QString id, QWidget *parent){
else if(id=="session-locale"){ page = new page_session_locale(parent); }
else if(id=="session-options"){ page = new page_session_options(parent); }
else if(id=="compton"){ page = new page_compton(parent); }
+ #ifndef NO_XINPUT
else if(id=="input-devices"){ page = new page_mouse(parent); }
+ #endif
+
// 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
bgstack15