From f48df4a960465a6b79b75b427830aa53629dff78 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Sat, 28 Apr 2012 16:01:27 +0000 Subject: [PATCH] + move splitString.[h|cpp] to stringTools.[h|cpp] --- src/common/resourceTools.h | 29 +++++++++++++++++++ .../{splitString.cpp => stringTools.cpp} | 2 +- src/common/{splitString.h => stringTools.h} | 0 3 files changed, 30 insertions(+), 1 deletion(-) rename src/common/{splitString.cpp => stringTools.cpp} (98%) rename src/common/{splitString.h => stringTools.h} (100%) diff --git a/src/common/resourceTools.h b/src/common/resourceTools.h index aefe349a3..2cf6ecf92 100644 --- a/src/common/resourceTools.h +++ b/src/common/resourceTools.h @@ -57,6 +57,34 @@ const char server_taskbar_html_part[]= "\x76\x3e\x0a" ; +const char server_home_html_tmpl[]= + "\x3c\x68\x74\x6d\x6c\x3e\x0a\x3c\x68\x65\x61\x64\x3e\x0a\x20\x20\x3c\x6d\x65\x74" + "\x61\x20\x63\x68\x61\x72\x73\x65\x74\x3d\x22\x55\x54\x46\x2d\x38\x22\x20\x2f\x3e" + "\x0a\x20\x20\x3c\x74\x69\x74\x6c\x65\x3e\x57\x65\x6c\x63\x6f\x6d\x65\x20\x74\x6f" + "\x20\x4b\x69\x77\x69\x78\x20\x53\x65\x72\x76\x65\x72\x3c\x2f\x74\x69\x74\x6c\x65" + "\x3e\x0a\x20\x20\x3c\x6c\x69\x6e\x6b\x20\x74\x79\x70\x65\x3d\x22\x74\x65\x78\x74" + "\x2f\x63\x73\x73\x22\x20\x68\x72\x65\x66\x3d\x22\x2f\x73\x6b\x69\x6e\x2f\x6a\x71" + "\x75\x65\x72\x79\x75\x69\x2f\x63\x73\x73\x2f\x73\x6d\x6f\x6f\x74\x68\x6e\x65\x73" + "\x73\x2f\x6a\x71\x75\x65\x72\x79\x2d\x75\x69\x2e\x63\x75\x73\x74\x6f\x6d\x2e\x63" + "\x73\x73\x22\x20\x72\x65\x6c\x3d\x22\x53\x74\x79\x6c\x65\x73\x68\x65\x65\x74\x22" + "\x20\x2f\x3e\x0a\x20\x20\x3c\x73\x63\x72\x69\x70\x74\x20\x74\x79\x70\x65\x3d\x22" + "\x74\x65\x78\x74\x2f\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x22\x20\x73\x72\x63" + "\x3d\x22\x2f\x73\x6b\x69\x6e\x2f\x6a\x71\x75\x65\x72\x79\x75\x69\x2f\x6a\x73\x2f" + "\x6a\x71\x75\x65\x72\x79\x2e\x6d\x69\x6e\x2e\x6a\x73\x22\x3e\x3c\x2f\x73\x63\x72" + "\x69\x70\x74\x3e\x0a\x20\x20\x3c\x73\x63\x72\x69\x70\x74\x20\x74\x79\x70\x65\x3d" + "\x22\x74\x65\x78\x74\x2f\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x22\x20\x73\x72" + "\x63\x3d\x22\x2f\x73\x6b\x69\x6e\x2f\x6a\x71\x75\x65\x72\x79\x75\x69\x2f\x6a\x73" + "\x2f\x6a\x71\x75\x65\x72\x79\x2d\x75\x69\x2e\x63\x75\x73\x74\x6f\x6d\x2e\x6d\x69" + "\x6e\x2e\x6a\x73\x22\x3e\x3c\x2f\x73\x63\x72\x69\x70\x74\x3e\x0a\x3c\x73\x63\x72" + "\x69\x70\x74\x3e\x0a\x24\x28\x66\x75\x6e\x63\x74\x69\x6f\x6e\x28\x29\x20\x7b\x0a" + "\x24\x28\x20\x22\x23\x61\x63\x63\x6f\x72\x64\x69\x6f\x6e\x22\x20\x29\x2e\x61\x63" + "\x63\x6f\x72\x64\x69\x6f\x6e\x28\x29\x3b\x0a\x7d\x29\x3b\x0a\x3c\x2f\x73\x63\x72" + "\x69\x70\x74\x3e\x0a\x3c\x2f\x68\x65\x61\x64\x3e\x0a\x3c\x62\x6f\x64\x79\x3e\x0a" + "\x0a\x3c\x64\x69\x76\x20\x69\x64\x3d\x22\x61\x63\x63\x6f\x72\x64\x69\x6f\x6e\x22" + "\x3e\x0a\x20\x20\x5f\x5f\x42\x4f\x4f\x4b\x53\x5f\x5f\x0a\x3c\x2f\x64\x69\x76\x3e" + "\x0a\x0a\x3c\x2f\x62\x6f\x64\x79\x3e\x0a\x3c\x2f\x68\x74\x6d\x6c\x3e\x0a" + ; + const char jqueryui_css_smoothness_jquery_ui_custom_css[]= "\x2f\x2a\x21\x0a\x20\x2a\x20\x6a\x51\x75\x65\x72\x79\x20\x55\x49\x20\x43\x53\x53" "\x20\x46\x72\x61\x6d\x65\x77\x6f\x72\x6b\x20\x31\x2e\x38\x2e\x31\x39\x0a\x20\x2a" @@ -16945,6 +16973,7 @@ static std::map createResourceMap() { std::map m; m["server/taskbar.css"] = server_taskbar_css; m["server/taskbar.html.part"] = server_taskbar_html_part; + m["server/home.html.tmpl"] = server_home_html_tmpl; m["jqueryui/css/smoothness/jquery-ui.custom.css"] = jqueryui_css_smoothness_jquery_ui_custom_css; m["jqueryui/js/jquery-ui.custom.min.js"] = jqueryui_js_jquery_ui_custom_min_js; m["jqueryui/js/jquery.min.js"] = jqueryui_js_jquery_min_js; diff --git a/src/common/splitString.cpp b/src/common/stringTools.cpp similarity index 98% rename from src/common/splitString.cpp rename to src/common/stringTools.cpp index abfeb0fd5..a883a7d40 100644 --- a/src/common/splitString.cpp +++ b/src/common/stringTools.cpp @@ -17,7 +17,7 @@ * MA 02110-1301, USA. */ -#include "splitString.h" +#include "stringTools.h" std::vector split(const std::string & str, const std::string & delims=" *-") diff --git a/src/common/splitString.h b/src/common/stringTools.h similarity index 100% rename from src/common/splitString.h rename to src/common/stringTools.h