File indexing completed on 2024-04-28 16:26:32
0001 /******************************************************************************** 0002 * Copyright (C) 2005-2006 by Holger Danielsson (holger.danielsson@t-online.de) * 0003 * (C) 2011 by Michel Ludwig (michel.ludwig@kdemail.net) * 0004 ********************************************************************************/ 0005 0006 /*************************************************************************** 0007 * * 0008 * This program is free software; you can redistribute it and/or modify * 0009 * it under the terms of the GNU General Public License as published by * 0010 * the Free Software Foundation; either version 2 of the License, or * 0011 * (at your option) any later version. * 0012 * * 0013 ***************************************************************************/ 0014 0015 #ifndef PREVIEWCONFIGWIDGET_H 0016 #define PREVIEWCONFIGWIDGET_H 0017 0018 #include <QWidget> 0019 #include "quickpreview.h" 0020 0021 class QCheckBox; 0022 class QGroupBox; 0023 class QLabel; 0024 class QLineEdit; 0025 0026 class KColorButton; 0027 class KComboBox; 0028 class KConfig; 0029 0030 /** 0031 *@author Holger Danielsson 0032 */ 0033 0034 class KileWidgetPreviewConfig : public QWidget 0035 { 0036 Q_OBJECT 0037 public: 0038 KileWidgetPreviewConfig(KConfig *config, KileTool::QuickPreview *preview, QWidget *parent = 0, const char *name = 0); 0039 ~KileWidgetPreviewConfig() {} 0040 0041 void readConfig(); 0042 void writeConfig(); 0043 0044 private: 0045 KConfig *m_config; 0046 KComboBox *m_combobox; 0047 KileTool::QuickPreview *m_preview; 0048 QLineEdit *m_leDvipngResolution; 0049 QLabel *m_lbDvipng, *m_lbConvert; 0050 QCheckBox *m_cbEnvironment, *m_cbSelection, *m_cbMathgroup; 0051 KComboBox *m_coSelection, *m_coEnvironment, *m_coMathgroup; 0052 QGroupBox *m_gbPreview; 0053 KColorButton *m_backgroundColorButton; 0054 0055 bool m_dvipngInstalled, m_convertInstalled; 0056 0057 int tool2index(int tool); 0058 int index2tool(int index); 0059 int installedTools(); 0060 0061 void setupSeparateWindow(); 0062 void setupBottomBar(); 0063 void setupProperties(); 0064 0065 private Q_SLOTS: 0066 void updateConversionTools(); 0067 }; 0068 0069 #endif