Back to index

scribus-ng  1.3.4.dfsg+svn20071115
nftsettings.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008  *   Riku Leino, tsoots@gmail.com                                          *
00009  ***************************************************************************/
00010 #ifndef NFTSETTINGS_H
00011 #define NFTSETTINGS_H
00012 
00013 #include "scconfig.h"
00014 #include <vector>
00015 #include <qstring.h>
00016 #include <qdir.h>
00017 #include <qfile.h>
00018 #include <qtextstream.h>
00019 #include "nfttemplate.h"
00020 #include "nftrcreader.h"
00021  
00022 class nftsettings {
00023 private:
00024        QString scribusShare;
00025        QString scribusUserHome;
00026        QString userTemplateDir;
00027        QString nftHomeDir;
00028        QString lang;
00029        nftrcreader* handler;
00030        QXmlSimpleReader* reader;
00031        void read();
00032        void addTemplates(QString dir);
00033        QString findTemplateXml(QString dir);
00034 public:
00035        std::vector<nfttemplate*> templates;
00036        nftsettings(QString guilang, QString templateDir);
00037        ~nftsettings();
00038 };
00039 
00040 #endif // NFTSETTINGS_H