Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

importjstor.cpp

Go to the documentation of this file.
00001 #include "importjstor.h"
00002 #include <qstring.h>
00003 #include <qwidget.h>
00004 
00005 ImportJStor::ImportJStor(QWidget *parent): ImportBase(parent)  {
00006 }
00007 
00008 /*
00009 void ImportPubl::setEntry() {
00010     QString line;
00011   while (!stream.atEnd()) {
00012     line = stream.readLine();
00013     QString data=line.right(line.length()-4);
00014     if(line.find(QRegExp("^TI :"))>-1) title->setText(data);
00015     if(line.find(QRegExp("^AU :"))>-1) {
00016       QStringList au;
00017       au.split(";",line);
00018       int i=0;
00019       QStringList authorlist;
00020       QSqlQuery q;
00021       q.exec("select firstname, lastname from author order by lastname");
00022 
00023       while(q.next())
00024         authorlist+=q.value(1).toString()+q.value(0).toString();
00025 
00026       for (QStringList::Iterator it = au.begin(); it != au.end(); ++it ) {
00027         QString lastname=(*it).left((*it).find(","));
00028         QString firstname=(*it).right((*it).length()-(*it).find(","));
00029         authors->setText(1,i,firstname);
00030         authors->setText(2,i,lastname);
00031         authors->setItem(3,i,new QComboTableItem(authors, authorlist));
00032         authors->setItem(4,i,new QCheckTableItem(authors, "Insert existing author:"));
00033       }
00034     }
00035     if(line.find(QRegExp("^SO :"))>-1) journal->setText(data);
00036     if(line.find(QRegExp("^VO :"))>-1) volume->setText(data);
00037     if(line.find(QRegExp("^NO :"))>-1) number->setText(data);
00038     if(line.find(QRegExp("^DA :"))>-1) date->setText(data);
00039     if(line.find(QRegExp("^PP :"))>-1) pages->setText(data);
00040     if(line.find(QRegExp("^AB :"))>-1) abstract->setText(data);
00041     if(line.find(QRegExp("^PB :"))>-1) publisher->setText(data);
00042   }
00043 }
00044 */
00045 

Generated on Sat Mar 27 19:20:39 2004 for Literature by doxygen 1.3.6-20040222