Permalink
Browse files

Initial code import.

  • Loading branch information...
jlaine committed Mar 23, 2012
0 parents commit 24373ddbdbcc7b8fa3c0b99555cf2d539b2edb48
Showing with 10,803 additions and 0 deletions.
  1. +5 −0 AUTHORS
  2. +16 −0 CMakeLists.txt
  3. +61 −0 README
  4. +20 −0 cmake/mingw32.toolchain
  5. +1,551 −0 doc/Doxyfile
  6. +63 −0 doc/database.doc
  7. +135 −0 doc/models.doc
  8. +112 −0 doc/queries.doc
  9. +73 −0 doc/scripting.doc
  10. +2 −0 examples/CMakeLists.txt
  11. +2 −0 examples/examples.pro
  12. +8 −0 examples/http-server/CMakeLists.txt
  13. +87 −0 examples/http-server/base.css
  14. +2 −0 examples/http-server/base.html
  15. +16 −0 examples/http-server/change_form.html
  16. +28 −0 examples/http-server/change_list.html
  17. +8 −0 examples/http-server/delete_confirmation.html
  18. +3 −0 examples/http-server/footer.html
  19. +30 −0 examples/http-server/header.html
  20. +468 −0 examples/http-server/http-server.cpp
  21. +15 −0 examples/http-server/http-server.pro
  22. +12 −0 examples/http-server/http-server.qrc
  23. +17 −0 examples/http-server/index.html
  24. +7 −0 examples/script-console/CMakeLists.txt
  25. +201 −0 examples/script-console/script-console.cpp
  26. +14 −0 examples/script-console/script-console.pro
  27. +2 −0 qdjango.pri
  28. +12 −0 qdjango.pro
  29. +21 −0 src/CMakeLists.txt
  30. +38 −0 src/db/CMakeLists.txt
  31. +654 −0 src/db/QDjango.cpp
  32. +75 −0 src/db/QDjango.h
  33. +106 −0 src/db/QDjangoModel.cpp
  34. +91 −0 src/db/QDjangoModel.h
  35. +379 −0 src/db/QDjangoQuerySet.cpp
  36. +646 −0 src/db/QDjangoQuerySet.h
  37. +92 −0 src/db/QDjangoQuerySet_p.h
  38. +252 −0 src/db/QDjangoWhere.cpp
  39. +101 −0 src/db/QDjangoWhere.h
  40. +154 −0 src/db/QDjango_p.h
  41. +24 −0 src/db/db.pro
  42. +38 −0 src/http/CMakeLists.txt
  43. +436 −0 src/http/QDjangoFastCgiServer.cpp
  44. +58 −0 src/http/QDjangoFastCgiServer.h
  45. +67 −0 src/http/QDjangoFastCgiServer_p.h
  46. +197 −0 src/http/QDjangoHttpController.cpp
  47. +62 −0 src/http/QDjangoHttpController.h
  48. +68 −0 src/http/QDjangoHttpRequest.cpp
  49. +51 −0 src/http/QDjangoHttpRequest.h
  50. +44 −0 src/http/QDjangoHttpRequest_p.h
  51. +140 −0 src/http/QDjangoHttpResponse.cpp
  52. +81 −0 src/http/QDjangoHttpResponse.h
  53. +42 −0 src/http/QDjangoHttpResponse_p.h
  54. +315 −0 src/http/QDjangoHttpServer.cpp
  55. +66 −0 src/http/QDjangoHttpServer.h
  56. +82 −0 src/http/QDjangoHttpServer_p.h
  57. +26 −0 src/http/http.pro
  58. +23 −0 src/script/CMakeLists.txt
  59. +122 −0 src/script/QDjangoScript.cpp
  60. +76 −0 src/script/QDjangoScript.h
  61. +117 −0 src/script/QDjangoScript_p.h
  62. +15 −0 src/script/script.pro
  63. +5 −0 src/src.pro
  64. +35 −0 tests/CMakeLists.txt
  65. +208 −0 tests/auth-models.cpp
  66. +154 −0 tests/auth-models.h
  67. +728 −0 tests/auth-tests.cpp
  68. +64 −0 tests/auth-tests.h
  69. +126 −0 tests/fields.cpp
  70. +169 −0 tests/fields.h
  71. +100 −0 tests/http.cpp
  72. +42 −0 tests/http.h
  73. +771 −0 tests/main.cpp
  74. +179 −0 tests/main.h
  75. +49 −0 tests/main.js
  76. +132 −0 tests/script.cpp
  77. +44 −0 tests/script.h
  78. +67 −0 tests/shares-models.cpp
  79. +61 −0 tests/shares-models.h
  80. +71 −0 tests/shares-tests.cpp
  81. +35 −0 tests/shares-tests.h
  82. +34 −0 tests/tests.pro
@@ -0,0 +1,5 @@
Jeremy Lainé <jeremy.laine@m4x.org>
* Principal developer of QDjango.
Mathias Hasselmann <mathias@openismus.com>
* Support for QDjangoQuerySet iterators.
@@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 2.6)
# Project and version
project(QDjango)
set(QDJANGO_VERSION 0.2.0)
find_package(Qt4 REQUIRED)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/db)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/http)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/script)
add_subdirectory(src)
if(NOT QDJANGO_DONT_USE_TESTS)
add_subdirectory(tests)
add_subdirectory(examples)
endif()
61 README
@@ -0,0 +1,61 @@
QDjango
License
=======
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Requirements
============
On Debian
----------
$ sudo aptitude install cmake libqt4-dev libqt4-sql-sqlite
On Mac OS X
-----------
$ sudo port install cmake qt4-mac
Building QDjango
================
$ mkdir build
$ cd build
$ cmake ..
$ make
See platform specific notes for applicable cmake options.
On Mac OS X
-----------
If you are running MacOS/X and want to build specifically for i386 on an
x86_64 machine, invoke cmake as:
$ cmake .. -DCMAKE_CXX_FLAGS="-arch i386" -DLINK_FLAGS="-arch i386"
Cross compiling for win32
-------------------------
To cross compile for win32 on a Debian machine, install the libqt4-mingw32-dev
package from:
http://dev.jerryweb.org/debian/pool/main/
Then invoke cmake as:
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/mingw32.toolchain
@@ -0,0 +1,20 @@
# specify system and cross compiler
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_C_COMPILER i586-mingw32msvc-gcc)
set(CMAKE_CXX_COMPILER i586-mingw32msvc-g++)
set(CMAKE_RC_COMPILER i586-mingw32msvc-windres)
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> --input-format rc --output-format coff -i <SOURCE> -o <OBJECT>")
# where is the target environment
set(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc)
# search for programs in the build host directories
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
# Qt 4
set(QT_HEADERS_DIR ${CMAKE_FIND_ROOT_PATH}/include/qt4)
set(QT_LIBRARY_DIR ${CMAKE_FIND_ROOT_PATH}/lib)
set(QT_PLUGINS_DIR ${CMAKE_FIND_ROOT_PATH}/lib/qt4)
Oops, something went wrong.

0 comments on commit 24373dd

Please sign in to comment.