From 330c8e4402663911893a95c1a4a84b83bafc9b11 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Sat, 21 Jan 2012 15:32:10 -0500 Subject: [PATCH] Add resource files and the appropriate paths to enable bundling of color schemes and keyboard layouts into the actual executable. --- lib/color-schemes/color-schemes.qrc | 24 ++++++++++++++++++++++++ lib/kb-layouts/kb-layouts.qrc | 10 ++++++++++ lib/tools.cpp | 4 ++-- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 lib/color-schemes/color-schemes.qrc create mode 100644 lib/kb-layouts/kb-layouts.qrc diff --git a/lib/color-schemes/color-schemes.qrc b/lib/color-schemes/color-schemes.qrc new file mode 100644 index 0000000..a1be0f3 --- /dev/null +++ b/lib/color-schemes/color-schemes.qrc @@ -0,0 +1,24 @@ + + + BlackOnLightYellow.schema + BlackOnRandomLight.colorscheme + Linux.colorscheme + BlackOnWhite.schema + DarkPastels.colorscheme + GreenOnBlack.colorscheme + WhiteOnBlack.schema + historic/vim.schema + historic/Transparent.schema + historic/Transparent_MC.schema + historic/Linux.schema + historic/Transparent_darkbg.schema + historic/GreenTint.schema + historic/Transparent_lightbg.schema + historic/LightPicture.schema + historic/DarkPicture.schema + historic/syscolor.schema + historic/XTerm.schema + historic/BlackOnLightColor.schema + historic/GreenTint_MC.schema + historic/GreenOnBlack.schema + diff --git a/lib/kb-layouts/kb-layouts.qrc b/lib/kb-layouts/kb-layouts.qrc new file mode 100644 index 0000000..ce85691 --- /dev/null +++ b/lib/kb-layouts/kb-layouts.qrc @@ -0,0 +1,10 @@ + + + linux.keytab + solaris.keytab + macbook.keytab + default.keytab + vt420pc.keytab + historic/x11r5.keytab + historic/vt100.keytab + diff --git a/lib/tools.cpp b/lib/tools.cpp index 385623c..1512140 100644 --- a/lib/tools.cpp +++ b/lib/tools.cpp @@ -12,7 +12,7 @@ But in some cases (apple bundle) there can be more locations). QString get_kb_layout_dir() { #ifdef BUNDLE_KEYBOARDLAYOUTS - return QString(); + return QLatin1String(":/"); #else // qDebug() << __FILE__ << __FUNCTION__; @@ -53,7 +53,7 @@ But in some cases (apple bundle) there can be more locations). QString get_color_schemes_dir() { #ifdef BUNDLE_COLORSCHEMES - return QString(); + return QLatin1String(":/"); #else // qDebug() << __FILE__ << __FUNCTION__;