c2bConfigure.h 1.94 KB
Newer Older
1
/***************************************************************************
2
 *   Copyright (C) 2004-2018 by Pere Constans
3
 *   constans@molspaces.com
4
 *   cb2Bib version 1.9.9. Licensed under the GNU GPL version 3.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
 *   See the LICENSE file that comes with this distribution.
 ***************************************************************************/
#ifndef C2BCONFIGURE_H
#define C2BCONFIGURE_H

#include "c2bColors.h"
#include "ui_c2bConfigure.h"

#include <QDialog>
#include <QFontDatabase>


class c2bSettings;

class c2bConfigure : public QDialog
{

    Q_OBJECT

public:
25
    explicit c2bConfigure(QWidget* parentw = 0);
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
    ~c2bConfigure();

    void setPage(int index);


protected slots:
    void FindReplaceDialog_Delete();
    void FindReplaceDialog_Edit();
    void FindReplaceDialog_New();
    void accept();
    void apply();
    void changeContextColor(QTreeWidgetItem* item);
    void changePage(QListWidgetItem* current, QListWidgetItem* previous);
    void comboFamilyChanged(const QString& family);
    void comboSizeChanged(const QString& pt);
    void getAnnoteCssFile();
    void getBibSearcherPdf2TextBin();
    void getBrowserCssFile();
    void getCacheDirectory();
    void getExifToolBin();
    void getFmClientCopyBin();
    void getFmClientMoveBin();
    void getJournalFile();
49
    void getMathJaxHeaderFile();
50 51 52
    void getNetworkFile();
    void getPdfDirectory();
    void getPdfImportPdf2TextBin();
53
    void getPosLexiconFile();
54 55 56 57
    void getPostprocessBibTeXBin();
    void getPreparserBin();
    void getRegularExpressionFile();
    void help();
58
    void showMessage(const QString& ms);
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    void updateFindReplaceInputButtons();


private:
    QFont c2bMonoFont;
    QFont selectedFont(QFontComboBox* fc, QComboBox* sc) const;
    Ui::c2bConfigure ui;
    bool event(QEvent* qevent);
    c2bColors colors;
    c2bSettings* settings;
    void fontSelection(const QFont& f, QFontComboBox* fc, QComboBox* sc);
    void populateFontCombos();

};

#endif