From c4c813bd982717c643485e22bede84c0997253bb Mon Sep 17 00:00:00 2001 From: David Boddie Date: Wed, 13 Apr 2011 19:16:08 +0200 Subject: Added missing data files. Renamed resource files. --- examples/webkit/simplewebplugin/data/accounts.csv | 11 ++++ examples/webkit/simplewebplugin/pages/index.html | 27 +++++++++ .../webkit/simplewebplugin/simplecsvplugin.qrc | 6 -- .../webkit/simplewebplugin/simplewebplugin.pro | 2 +- examples/webkit/webplugin/csvplugin.qrc | 6 -- examples/webkit/webplugin/data/accounts.csv | 11 ++++ examples/webkit/webplugin/pages/index.html | 64 ++++++++++++++++++++++ examples/webkit/webplugin/webplugin.pro | 2 +- 8 files changed, 115 insertions(+), 14 deletions(-) create mode 100644 examples/webkit/simplewebplugin/data/accounts.csv create mode 100644 examples/webkit/simplewebplugin/pages/index.html delete mode 100644 examples/webkit/simplewebplugin/simplecsvplugin.qrc delete mode 100644 examples/webkit/webplugin/csvplugin.qrc create mode 100644 examples/webkit/webplugin/data/accounts.csv create mode 100644 examples/webkit/webplugin/pages/index.html diff --git a/examples/webkit/simplewebplugin/data/accounts.csv b/examples/webkit/simplewebplugin/data/accounts.csv new file mode 100644 index 0000000..2ea3bd6 --- /dev/null +++ b/examples/webkit/simplewebplugin/data/accounts.csv @@ -0,0 +1,11 @@ +"Name","Address","Quantity" +"Kristian Quan","123 Company Place, Big City","4" +"Matthew Rand","The Orchard, Little Village","2" +"Eirik Asaki","497 Park Skyway, Future City","29" +"Jarek Hanssen","1023 Riviera Drive, Southern Precinct","45" +"Carlos Hartmann","The Manor House, Country Estate","1" +"Bea King","Floor 201, Sun Tower, Central City","32" +"Stian Hinton","Mechanical workshop, Fishing Village, North River","0" +"Shane Bowland","P.O. Box 419, Beach Resort","1" +"Gavin Holm","19 Library Road, University Campus, near Large Town","16" +"Adrienna Randles","98 Tapestry Road, Market Town, The Shires","1" diff --git a/examples/webkit/simplewebplugin/pages/index.html b/examples/webkit/simplewebplugin/pages/index.html new file mode 100644 index 0000000..9581a8e --- /dev/null +++ b/examples/webkit/simplewebplugin/pages/index.html @@ -0,0 +1,27 @@ + + +Simple Web Plugin + + + +

Simple Web Plugin

+ +

+ This plugin displays comma-separated value (CSV) files in Web pages using + a subclass of Qt's + QTableView + widget. +

+ + + + + +

+ The above table shows some sample data rendered by the plugin. +

+ + + diff --git a/examples/webkit/simplewebplugin/simplecsvplugin.qrc b/examples/webkit/simplewebplugin/simplecsvplugin.qrc deleted file mode 100644 index 14f80e7..0000000 --- a/examples/webkit/simplewebplugin/simplecsvplugin.qrc +++ /dev/null @@ -1,6 +0,0 @@ - - - pages/index.html - data/accounts.csv - - diff --git a/examples/webkit/simplewebplugin/simplewebplugin.pro b/examples/webkit/simplewebplugin/simplewebplugin.pro index c3f5a9b..c16302d 100644 --- a/examples/webkit/simplewebplugin/simplewebplugin.pro +++ b/examples/webkit/simplewebplugin/simplewebplugin.pro @@ -9,7 +9,7 @@ SOURCES = csvfactory.cpp \ main.cpp \ mainwindow.cpp -RESOURCES = simplecsvplugin.qrc +RESOURCES = simplewebplugin.qrc # install target.path = $$[QT_INSTALL_EXAMPLES]/webkit/simplewebplugin diff --git a/examples/webkit/webplugin/csvplugin.qrc b/examples/webkit/webplugin/csvplugin.qrc deleted file mode 100644 index 14f80e7..0000000 --- a/examples/webkit/webplugin/csvplugin.qrc +++ /dev/null @@ -1,6 +0,0 @@ - - - pages/index.html - data/accounts.csv - - diff --git a/examples/webkit/webplugin/data/accounts.csv b/examples/webkit/webplugin/data/accounts.csv new file mode 100644 index 0000000..2ea3bd6 --- /dev/null +++ b/examples/webkit/webplugin/data/accounts.csv @@ -0,0 +1,11 @@ +"Name","Address","Quantity" +"Kristian Quan","123 Company Place, Big City","4" +"Matthew Rand","The Orchard, Little Village","2" +"Eirik Asaki","497 Park Skyway, Future City","29" +"Jarek Hanssen","1023 Riviera Drive, Southern Precinct","45" +"Carlos Hartmann","The Manor House, Country Estate","1" +"Bea King","Floor 201, Sun Tower, Central City","32" +"Stian Hinton","Mechanical workshop, Fishing Village, North River","0" +"Shane Bowland","P.O. Box 419, Beach Resort","1" +"Gavin Holm","19 Library Road, University Campus, near Large Town","16" +"Adrienna Randles","98 Tapestry Road, Market Town, The Shires","1" diff --git a/examples/webkit/webplugin/pages/index.html b/examples/webkit/webplugin/pages/index.html new file mode 100644 index 0000000..fe38bba --- /dev/null +++ b/examples/webkit/webplugin/pages/index.html @@ -0,0 +1,64 @@ + + +Web Plugin + + + + + + +

Web Plugin

+ +

+ This plugin displays comma-separated value (CSV) files in Web pages using + a table widget. +

+ + + + + + +

+ The table above shows some sample data rendered by the plugin. It is exposed + to this page as the view JavaScript object. +

+ +

+ The fields shown below in an HTML table can be updated by selecting a row in + the table above. A signal in the view is connected to a JavaScript function + in this page which fills in the values. +

+ +
+ + + + + + + + + + + + +
Name:
Address:
Quantity:
+ +
+ + + diff --git a/examples/webkit/webplugin/webplugin.pro b/examples/webkit/webplugin/webplugin.pro index cb5ebf3..48f48d1 100644 --- a/examples/webkit/webplugin/webplugin.pro +++ b/examples/webkit/webplugin/webplugin.pro @@ -9,7 +9,7 @@ SOURCES = csvfactory.cpp \ main.cpp \ mainwindow.cpp -RESOURCES = csvplugin.qrc +RESOURCES = webplugin.qrc # install target.path = $$[QT_INSTALL_EXAMPLES]/webkit/webplugin -- cgit v0.12