Re: Quanta 4
Robert Marmorstein <[email protected]> Mon, 04 Apr 2011 03:21:09 -0400
| Newsgroups | gmane.comp.kde.devel.quanta.user |
|---|---|
| Message-ID | <[email protected]> |
There doesn't seem to be a way to post review requests for Quanta still, so I will include my patch here inline: ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Quanta mailing list [email protected] https://mail.kde.org/mailman/listinfo/quanta
0001-New-templates-for-web-development-i.e.-in-Quanta.patch
(text/x-patch, 9.9 KB)
From 001823c8365801a0b5a31480055238ecf37eb42c Mon Sep 17 00:00:00 2001 From: Dr. Robert Marmorstein <[email protected]> Date: Sat, 26 Mar 2011 21:03:26 -0400 Subject: [PATCH] New templates for web development (i.e. in Quanta). --- CMakeLists.txt | 1 + app_templates/CMakeLists.txt | 9 +++++++++ .../html/html4_0-strict/%{PROJECTDIRNAME}.kdev4 | 4 ++++ .../html4_0-strict/html4_0-strict.kdevtemplate | 7 +++++++ app_templates/html/html4_0-strict/index.html | 9 +++++++++ .../html4_0-transitional/%{PROJECTDIRNAME}.kdev4 | 4 ++++ .../html4_0-transitional.kdevtemplate | 7 +++++++ app_templates/html/html4_0-transitional/index.html | 9 +++++++++ .../html/xhtml10-strict/%{PROJECTDIRNAME}.kdev4 | 4 ++++ app_templates/html/xhtml10-strict/index.html | 10 ++++++++++ .../xhtml10-strict/xhtml10-strict.kdevtemplate | 7 +++++++ .../xhtml10-transitional/%{PROJECTDIRNAME}.kdev4 | 4 ++++ app_templates/html/xhtml10-transitional/index.html | 10 ++++++++++ .../xhtml10-transitional.kdevtemplate | 7 +++++++ app_templates/html/xhtml11/%{PROJECTDIRNAME}.kdev4 | 4 ++++ app_templates/html/xhtml11/index.html | 10 ++++++++++ app_templates/html/xhtml11/xhtml11.kdevtemplate | 7 +++++++ 17 files changed, 113 insertions(+), 0 deletions(-) create mode 100644 app_templates/CMakeLists.txt create mode 100644 app_templates/html/html4_0-strict/%{PROJECTDIRNAME}.kdev4 create mode 100644 app_templates/html/html4_0-strict/html4_0-strict.kdevtemplate create mode 100644 app_templates/html/html4_0-strict/index.html create mode 100644 app_templates/html/html4_0-transitional/%{PROJECTDIRNAME}.kdev4 create mode 100644 app_templates/html/html4_0-transitional/html4_0-transitional.kdevtemplate create mode 100644 app_templates/html/html4_0-transitional/index.html create mode 100644 app_templates/html/xhtml10-strict/%{PROJECTDIRNAME}.kdev4 create mode 100644 app_templates/html/xhtml10-strict/index.html create mode 100644 app_templates/html/xhtml10-strict/xhtml10-strict.kdevtemplate create mode 100644 app_templates/html/xhtml10-transitional/%{PROJECTDIRNAME}.kdev4 create mode 100644 app_templates/html/xhtml10-transitional/index.html create mode 100644 app_templates/html/xhtml10-transitional/xhtml10-transitional.kdevtemplate create mode 100644 app_templates/html/xhtml11/%{PROJECTDIRNAME}.kdev4 create mode 100644 app_templates/html/xhtml11/index.html create mode 100644 app_templates/html/xhtml11/xhtml11.kdevtemplate diff --git a/CMakeLists.txt b/CMakeLists.txt index f71431b..fbf807f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,5 +27,6 @@ add_subdirectory(data) add_subdirectory(plugins) add_subdirectory(debuggers) add_subdirectory(languages) +add_subdirectory(app_templates) macro_display_feature_log() diff --git a/app_templates/CMakeLists.txt b/app_templates/CMakeLists.txt new file mode 100644 index 0000000..99f01a5 --- /dev/null +++ b/app_templates/CMakeLists.txt @@ -0,0 +1,9 @@ +set(apptemplate_DIRS + html/html4_0-strict + html/html4_0-transitional + html/xhtml10-strict + html/xhtml10-transitional + html/xhtml11 +) + +kdevplatform_add_app_templates(${apptemplate_DIRS}) diff --git a/app_templates/html/html4_0-strict/%{PROJECTDIRNAME}.kdev4 b/app_templates/html/html4_0-strict/%{PROJECTDIRNAME}.kdev4 new file mode 100644 index 0000000..4792129 --- /dev/null +++ b/app_templates/html/html4_0-strict/%{PROJECTDIRNAME}.kdev4 @@ -0,0 +1,4 @@ +[Project] +Name=%{APPNAME} +Manager=KDevGenericManager +VersionControl=%{VERSIONCONTROLPLUGIN} diff --git a/app_templates/html/html4_0-strict/html4_0-strict.kdevtemplate b/app_templates/html/html4_0-strict/html4_0-strict.kdevtemplate new file mode 100644 index 0000000..f232ff0 --- /dev/null +++ b/app_templates/html/html4_0-strict/html4_0-strict.kdevtemplate @@ -0,0 +1,7 @@ +# KDE Config File +[General] +Name=Simple HTML 4.01 (Strict) Web Site +Name[en_GB]=Simple HTML 4.01 (Strict) Web Site +Category=Web/HTML +Icon=default-kdevelop +ShowFilesAfterGeneration=%{PROJECTDIR}/index.html diff --git a/app_templates/html/html4_0-strict/index.html b/app_templates/html/html4_0-strict/index.html new file mode 100644 index 0000000..6cde072 --- /dev/null +++ b/app_templates/html/html4_0-strict/index.html @@ -0,0 +1,9 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<HTML> + <HEAD> + <TITLE>Example Web Page</TITLE> + </HEAD> + <BODY> + <P>Hello world!</P> + </BODY> +</HTML> diff --git a/app_templates/html/html4_0-transitional/%{PROJECTDIRNAME}.kdev4 b/app_templates/html/html4_0-transitional/%{PROJECTDIRNAME}.kdev4 new file mode 100644 index 0000000..4792129 --- /dev/null +++ b/app_templates/html/html4_0-transitional/%{PROJECTDIRNAME}.kdev4 @@ -0,0 +1,4 @@ +[Project] +Name=%{APPNAME} +Manager=KDevGenericManager +VersionControl=%{VERSIONCONTROLPLUGIN} diff --git a/app_templates/html/html4_0-transitional/html4_0-transitional.kdevtemplate b/app_templates/html/html4_0-transitional/html4_0-transitional.kdevtemplate new file mode 100644 index 0000000..7da53b5 --- /dev/null +++ b/app_templates/html/html4_0-transitional/html4_0-transitional.kdevtemplate @@ -0,0 +1,7 @@ +# KDE Config File +[General] +Name=Simple HTML 4.01 (Transitional) Web Site +Name[en_GB]=Simple HTML 4.01 (Transitional) Web Site +Category=Web/HTML +Icon=default-kdevelop +ShowFilesAfterGeneration=%{PROJECTDIR}/index.html diff --git a/app_templates/html/html4_0-transitional/index.html b/app_templates/html/html4_0-transitional/index.html new file mode 100644 index 0000000..e108404 --- /dev/null +++ b/app_templates/html/html4_0-transitional/index.html @@ -0,0 +1,9 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<HTML> + <HEAD> + <TITLE>Example Web Page</TITLE> + </HEAD> + <BODY> + <P>Hello world!</P> + </BODY> +</HTML> diff --git a/app_templates/html/xhtml10-strict/%{PROJECTDIRNAME}.kdev4 b/app_templates/html/xhtml10-strict/%{PROJECTDIRNAME}.kdev4 new file mode 100644 index 0000000..4792129 --- /dev/null +++ b/app_templates/html/xhtml10-strict/%{PROJECTDIRNAME}.kdev4 @@ -0,0 +1,4 @@ +[Project] +Name=%{APPNAME} +Manager=KDevGenericManager +VersionControl=%{VERSIONCONTROLPLUGIN} diff --git a/app_templates/html/xhtml10-strict/index.html b/app_templates/html/xhtml10-strict/index.html new file mode 100644 index 0000000..39d7e3c --- /dev/null +++ b/app_templates/html/xhtml10-strict/index.html @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Example Web Page</title> + </head> + <body> + <p>Hello World!</p> + </body> +</html> diff --git a/app_templates/html/xhtml10-strict/xhtml10-strict.kdevtemplate b/app_templates/html/xhtml10-strict/xhtml10-strict.kdevtemplate new file mode 100644 index 0000000..d1072fc --- /dev/null +++ b/app_templates/html/xhtml10-strict/xhtml10-strict.kdevtemplate @@ -0,0 +1,7 @@ +# KDE Config File +[General] +Name=Simple XHTML 1.0 (Strict) Web Site +Name[en_GB]=Simple XHTML 1.0 (Strict) Web Site +Category=Web/XHTML +Icon=default-kdevelop +ShowFilesAfterGeneration=%{PROJECTDIR}/index.html diff --git a/app_templates/html/xhtml10-transitional/%{PROJECTDIRNAME}.kdev4 b/app_templates/html/xhtml10-transitional/%{PROJECTDIRNAME}.kdev4 new file mode 100644 index 0000000..4792129 --- /dev/null +++ b/app_templates/html/xhtml10-transitional/%{PROJECTDIRNAME}.kdev4 @@ -0,0 +1,4 @@ +[Project] +Name=%{APPNAME} +Manager=KDevGenericManager +VersionControl=%{VERSIONCONTROLPLUGIN} diff --git a/app_templates/html/xhtml10-transitional/index.html b/app_templates/html/xhtml10-transitional/index.html new file mode 100644 index 0000000..e351d74 --- /dev/null +++ b/app_templates/html/xhtml10-transitional/index.html @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Example Web Page</title> + </head> + <body> + <p>Hello World!</p> + </body> +</html> diff --git a/app_templates/html/xhtml10-transitional/xhtml10-transitional.kdevtemplate b/app_templates/html/xhtml10-transitional/xhtml10-transitional.kdevtemplate new file mode 100644 index 0000000..62e140b --- /dev/null +++ b/app_templates/html/xhtml10-transitional/xhtml10-transitional.kdevtemplate @@ -0,0 +1,7 @@ +# KDE Config File +[General] +Name=Simple XHTML 1.0 (Transitional) Web Site +Name[en_GB]=Simple XHTML 1.0 (Transitional) Web Site +Category=Web/XHTML +Icon=default-kdevelop +ShowFilesAfterGeneration=%{PROJECTDIR}/index.html diff --git a/app_templates/html/xhtml11/%{PROJECTDIRNAME}.kdev4 b/app_templates/html/xhtml11/%{PROJECTDIRNAME}.kdev4 new file mode 100644 index 0000000..4792129 --- /dev/null +++ b/app_templates/html/xhtml11/%{PROJECTDIRNAME}.kdev4 @@ -0,0 +1,4 @@ +[Project] +Name=%{APPNAME} +Manager=KDevGenericManager +VersionControl=%{VERSIONCONTROLPLUGIN} diff --git a/app_templates/html/xhtml11/index.html b/app_templates/html/xhtml11/index.html new file mode 100644 index 0000000..e0d37d5 --- /dev/null +++ b/app_templates/html/xhtml11/index.html @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> + <head> + <title>Example Web Page</title> + </head> + <body> + <p>Hello World!</p> + </body> +</html> diff --git a/app_templates/html/xhtml11/xhtml11.kdevtemplate b/app_templates/html/xhtml11/xhtml11.kdevtemplate new file mode 100644 index 0000000..2583490 --- /dev/null +++ b/app_templates/html/xhtml11/xhtml11.kdevtemplate @@ -0,0 +1,7 @@ +# KDE Config File +[General] +Name=Simple XHTML 1.1 Web Site +Name[en_GB]=Simple XHTML 1.1 Web Site +Category=Web/XHTML +Icon=default-kdevelop +ShowFilesAfterGeneration=%{PROJECTDIR}/index.html -- 1.7.4.2