weft-qda 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. data/lib/weft.rb +21 -0
  2. data/lib/weft/WEFT-VERSION-STRING.rb +1 -0
  3. data/lib/weft/application.rb +130 -0
  4. data/lib/weft/backend.rb +39 -0
  5. data/lib/weft/backend/marshal.rb +26 -0
  6. data/lib/weft/backend/mysql.rb +267 -0
  7. data/lib/weft/backend/n6.rb +366 -0
  8. data/lib/weft/backend/sqlite.rb +633 -0
  9. data/lib/weft/backend/sqlite/category_tree.rb +104 -0
  10. data/lib/weft/backend/sqlite/schema.rb +152 -0
  11. data/lib/weft/backend/sqlite/upgradeable.rb +55 -0
  12. data/lib/weft/category.rb +157 -0
  13. data/lib/weft/coding.rb +355 -0
  14. data/lib/weft/document.rb +118 -0
  15. data/lib/weft/filters.rb +243 -0
  16. data/lib/weft/wxgui.rb +687 -0
  17. data/lib/weft/wxgui/category.xpm +26 -0
  18. data/lib/weft/wxgui/dialogs.rb +128 -0
  19. data/lib/weft/wxgui/document.xpm +25 -0
  20. data/lib/weft/wxgui/error_handler.rb +52 -0
  21. data/lib/weft/wxgui/inspectors.rb +361 -0
  22. data/lib/weft/wxgui/inspectors/category.rb +165 -0
  23. data/lib/weft/wxgui/inspectors/codereview.rb +275 -0
  24. data/lib/weft/wxgui/inspectors/document.rb +139 -0
  25. data/lib/weft/wxgui/inspectors/imagedocument.rb +56 -0
  26. data/lib/weft/wxgui/inspectors/script.rb +35 -0
  27. data/lib/weft/wxgui/inspectors/search.rb +265 -0
  28. data/lib/weft/wxgui/inspectors/textcontrols.rb +304 -0
  29. data/lib/weft/wxgui/lang.rb +17 -0
  30. data/lib/weft/wxgui/lang/en.rb +45 -0
  31. data/lib/weft/wxgui/mondrian.xpm +44 -0
  32. data/lib/weft/wxgui/search.xpm +25 -0
  33. data/lib/weft/wxgui/sidebar.rb +498 -0
  34. data/lib/weft/wxgui/utilities.rb +148 -0
  35. data/lib/weft/wxgui/weft16.xpm +31 -0
  36. data/lib/weft/wxgui/workarea.rb +249 -0
  37. data/test/001-document.rb +196 -0
  38. data/test/002-category.rb +138 -0
  39. data/test/003-code.rb +370 -0
  40. data/test/004-application.rb +52 -0
  41. data/test/006-filters.rb +139 -0
  42. data/test/009a-backend_sqlite_basic.rb +280 -0
  43. data/test/009b-backend_sqlite_complex.rb +175 -0
  44. data/test/009c_backend_sqlite_bench.rb +81 -0
  45. data/test/010-backend_nudist.rb +5 -0
  46. data/test/all-tests.rb +1 -0
  47. data/test/manual-gui-script.txt +24 -0
  48. data/test/testdata/autocoding-test.txt +15 -0
  49. data/test/testdata/iso-8859-1.txt +5 -0
  50. data/test/testdata/sample_doc.txt +19 -0
  51. data/test/testdata/search_results.txt +1254 -0
  52. data/test/testdata/text1-dos-ascii.txt +2 -0
  53. data/test/testdata/text1-unix-utf8.txt +2 -0
  54. data/weft-qda.rb +28 -0
  55. metadata +96 -0
@@ -0,0 +1,2 @@
1
+ This is a text document
2
+ in dos ascii.
@@ -0,0 +1,2 @@
1
+ This is a text document
2
+ in unix unicode.
data/weft-qda.rb ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ if dbfile = ARGV.shift
4
+ dbfile = File.expand_path(dbfile)
5
+ end
6
+
7
+ Dir.chdir( File.dirname( __FILE__ ) )
8
+
9
+ $:.push('lib')
10
+ require 'weft'
11
+ require 'weft/wxgui'
12
+
13
+ # Create a new application
14
+
15
+ gui = QDA::GUI::Instance.new()
16
+
17
+ # quick-start : open project from c.l. arg
18
+ if dbfile
19
+ app = QDA::Application.new(gui)
20
+ app.extend( QDA::Backend::SQLite )
21
+ app.start(:dbfile => dbfile)
22
+ gui.app = app
23
+ gui.populate()
24
+ end
25
+
26
+ # don't start the application if generating executable with rs2exe
27
+ exit if defined?(REQUIRE2LIB)
28
+ gui.main_loop()
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.8.1
3
+ specification_version: 1
4
+ name: weft-qda
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.9.6
7
+ date: 2005-07-07
8
+ summary: GUI Qualitative Data Analysis Tool.
9
+ require_paths:
10
+ - lib
11
+ author: Alex Fenton
12
+ email: alex@pressure.to
13
+ homepage: http://www.pressure.to/qda/
14
+ rubyforge_project: weft-qda
15
+ description: "Weft QDA is a tool for the analysis of text data. It provides generic 'code and
16
+ retrieve' functionality through a simple graphical user interface."
17
+ autorequire: weft
18
+ default_executable: weft-qda.rb
19
+ bindir: "."
20
+ has_rdoc: true
21
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
22
+ requirements:
23
+ -
24
+ - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.8.1
27
+ version:
28
+ platform: ruby
29
+ files:
30
+ - weft-qda.rb
31
+ - lib/weft.rb
32
+ - lib/weft/application.rb
33
+ - lib/weft/backend.rb
34
+ - lib/weft/category.rb
35
+ - lib/weft/coding.rb
36
+ - lib/weft/document.rb
37
+ - lib/weft/filters.rb
38
+ - lib/weft/WEFT-VERSION-STRING.rb
39
+ - lib/weft/wxgui.rb
40
+ - lib/weft/backend/marshal.rb
41
+ - lib/weft/backend/mysql.rb
42
+ - lib/weft/backend/n6.rb
43
+ - lib/weft/backend/sqlite.rb
44
+ - lib/weft/backend/sqlite/category_tree.rb
45
+ - lib/weft/backend/sqlite/schema.rb
46
+ - lib/weft/backend/sqlite/upgradeable.rb
47
+ - lib/weft/wxgui/dialogs.rb
48
+ - lib/weft/wxgui/error_handler.rb
49
+ - lib/weft/wxgui/inspectors.rb
50
+ - lib/weft/wxgui/lang.rb
51
+ - lib/weft/wxgui/sidebar.rb
52
+ - lib/weft/wxgui/utilities.rb
53
+ - lib/weft/wxgui/workarea.rb
54
+ - lib/weft/wxgui/inspectors/category.rb
55
+ - lib/weft/wxgui/inspectors/codereview.rb
56
+ - lib/weft/wxgui/inspectors/document.rb
57
+ - lib/weft/wxgui/inspectors/imagedocument.rb
58
+ - lib/weft/wxgui/inspectors/script.rb
59
+ - lib/weft/wxgui/inspectors/search.rb
60
+ - lib/weft/wxgui/inspectors/textcontrols.rb
61
+ - lib/weft/wxgui/lang/en.rb
62
+ - lib/weft/wxgui/category.xpm
63
+ - lib/weft/wxgui/document.xpm
64
+ - lib/weft/wxgui/mondrian.xpm
65
+ - lib/weft/wxgui/search.xpm
66
+ - lib/weft/wxgui/weft16.xpm
67
+ - test/001-document.rb
68
+ - test/002-category.rb
69
+ - test/003-code.rb
70
+ - test/004-application.rb
71
+ - test/006-filters.rb
72
+ - test/009a-backend_sqlite_basic.rb
73
+ - test/009b-backend_sqlite_complex.rb
74
+ - test/009c_backend_sqlite_bench.rb
75
+ - test/010-backend_nudist.rb
76
+ - test/all-tests.rb
77
+ - test/manual-gui-script.txt
78
+ - test/testdata
79
+ - test/testdata/autocoding-test.txt
80
+ - test/testdata/iso-8859-1.txt
81
+ - test/testdata/sample_doc.txt
82
+ - test/testdata/search_results.txt
83
+ - test/testdata/text1-dos-ascii.txt
84
+ - test/testdata/text1-unix-utf8.txt
85
+ test_files:
86
+ - test/001-document.rb
87
+ rdoc_options: []
88
+ extra_rdoc_files: []
89
+ executables:
90
+ - weft-qda.rb
91
+ extensions: []
92
+ requirements:
93
+ - WxWidgets 2.4+ (not needed if using wxruby binary)
94
+ - libsqlite library v2
95
+ - pdftotext (if importing PDFs)
96
+ dependencies: []