comparison main/main.cpp @ 282:64a8ee011004

* Add Redland datastore support to SimpleSPARQLQuery
author Chris Cannam
date Thu, 13 Nov 2008 14:23:23 +0000
parents eed95bb2f597
children d27c322b5d6e
comparison
equal deleted inserted replaced
281:b9c35cbfb39c 282:64a8ee011004
19 #include "system/Init.h" 19 #include "system/Init.h"
20 #include "base/TempDirectory.h" 20 #include "base/TempDirectory.h"
21 #include "base/PropertyContainer.h" 21 #include "base/PropertyContainer.h"
22 #include "base/Preferences.h" 22 #include "base/Preferences.h"
23 #include "widgets/TipDialog.h" 23 #include "widgets/TipDialog.h"
24 #include "rdf/SimpleSPARQLQuery.h"
24 25
25 #include <QMetaType> 26 #include <QMetaType>
26 #include <QApplication> 27 #include <QApplication>
27 #include <QDesktopWidget> 28 #include <QDesktopWidget>
28 #include <QMessageBox> 29 #include <QMessageBox>
253 QStringList list; 254 QStringList list;
254 list << "http://www.vamp-plugins.org/rdf/plugins/index.txt"; 255 list << "http://www.vamp-plugins.org/rdf/plugins/index.txt";
255 settings.setValue("rdf-indices", list); 256 settings.setValue("rdf-indices", list);
256 } 257 }
257 settings.endGroup(); 258 settings.endGroup();
259
260 SimpleSPARQLQuery::setImplementationPreference
261 (SimpleSPARQLQuery::UseDatastore);
262 // (SimpleSPARQLQuery::UseDirectParser);
258 263
259 QIcon icon; 264 QIcon icon;
260 int sizes[] = { 16, 22, 24, 32, 48, 64, 128 }; 265 int sizes[] = { 16, 22, 24, 32, 48, 64, 128 };
261 for (int i = 0; i < sizeof(sizes)/sizeof(sizes[0]); ++i) { 266 for (int i = 0; i < sizeof(sizes)/sizeof(sizes[0]); ++i) {
262 icon.addFile(QString(":icons/sv-%1x%2.png").arg(sizes[i]).arg(sizes[i])); 267 icon.addFile(QString(":icons/sv-%1x%2.png").arg(sizes[i]).arg(sizes[i]));