2 * This file is a part of QComicBook.
4 * Copyright (C) 2005-2006 Pawel Stolowski <yogin@linux.bydg.org>
6 * QComicBook is free software; you can redestribute it and/or modify it
7 * under terms of GNU General Public License by Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY. See GPL for more details.
13 #ifndef __CBCONFIGDIALOG_H
14 #define __CBCONFIGDIALOG_H
16 #include <qtabdialog.h>
27 class ComicBookSettings;
28 class ComicBookCfgDialog: public QTabDialog
33 ComicBookSettings *cfg;
34 QCheckBox *cb_twopagesstep;
35 QCheckBox *cb_twopagesspread;
36 QCheckBox *cb_twopagesskip;
37 QCheckBox *cb_smallcursor;
38 QCheckBox *cb_hidemenu;
39 QCheckBox *cb_hidestatus;
40 QCheckBox *cb_hidetoolbar;
41 QPushButton *pb_color;
42 QCheckBox *cb_preload;
43 QCheckBox *cb_confirmexit;
45 QCheckBox *cb_autoinfo;
46 QSpinBox *sb_cachesize;
48 QSpinBox *sb_thumbsage;
49 QSpinBox *sb_stripmax;
51 QSpinBox *sb_fontsize;
52 QCheckBox *cb_intbrowser;
53 QLineEdit *le_extbrowser;
54 QPushButton *pb_brbrowse;
57 QCheckBox *cb_editing;
59 void setupDisplayTab();
62 void updateFontPreview();
67 void showBackgroundDialog();
68 void showFontDialog();
69 void browseExternalBrowser();
70 void browserCheckboxToggled(bool f);
73 ComicBookCfgDialog(QWidget *parent, ComicBookSettings *cfg);
74 virtual ~ComicBookCfgDialog();