/***************************************************************************
 *   Copyright (C) 2004-2006 by Pere Constans
 *   constans@molspaces.com
 *   cb2Bib version 0.6.1
 *   See LICENSE file that comes with this distribution
 ***************************************************************************/
#ifndef C2BSETTINGS_H
#define C2BSETTINGS_H

#include <qfont.h>
#include <qobject.h>
#include <qsettings.h>
#include <qstringlist.h>


class c2bSettings : public QObject
{
    Q_OBJECT

public:
    c2bSettings(QObject *parent = 0, const char *name = 0);
    ~c2bSettings();

    bool m_author_editor_name_full;
    bool m_autonetquery;
    bool m_autostart_bibedit;
    bool m_convert_entries_to_latex;
    bool m_heuristic_guess;
    bool m_journal_name_full;
    bool m_movepdf;
    bool m_pp_month;
    bool m_preparser_automatic;
    bool m_preparser_show_log;
    int m_windowHeight;
    int m_windowWidth;
    QFont m_font;
    QStringList m_bibfile_list;
    QString m_bibfile;
    QString m_jdbfile;
    QString m_pdf_copymove;
    QString m_pdfdir;
    QString m_preparser_bin;
    QString m_regexpfl;

    QString PDF2TXT_BIN;
    QString PDF2TXT_ARG;
    bool m_automatic_pdfimport;

public slots:
    void readCommandLine();
    void readSettings();
    void writeMainSettings();
    void writeSettings();


private:
    void printUsage();

};

#endif
