File indexing completed on 2024-04-28 16:26:22
0001 /****************************************************************************************** 0002 mathenvdialog.h 0003 ------------------------------------------------------------------------------------------- 0004 date : Dec 06 2005 0005 version : 0.21 0006 copyright : (C) 2005 by Holger Danielsson (holger.danielsson@t-online.de) 0007 ******************************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either version 2 of the License, or * 0014 * (at your option) any later version. * 0015 * * 0016 ***************************************************************************/ 0017 0018 #ifndef MATHENVIRONMENTDIALOG_H 0019 #define MATHENVIRONMENTDIALOG_H 0020 0021 #include "kileinfo.h" 0022 #include "kilewizard.h" 0023 #include "latexcmd.h" 0024 0025 class QLabel; 0026 class QCheckBox; 0027 class QSpinBox; 0028 class QLineEdit; 0029 0030 class KComboBox; 0031 0032 namespace KileDialog 0033 { 0034 0035 class MathEnvironmentDialog : public Wizard 0036 { 0037 Q_OBJECT 0038 0039 public: 0040 MathEnvironmentDialog(QWidget *parent, KConfig *config, KileInfo *ki, 0041 KileDocument::LatexCommands *commands); 0042 ~MathEnvironmentDialog() {} 0043 0044 public Q_SLOTS: 0045 void slotAccepted(); 0046 0047 private Q_SLOTS: 0048 void slotEnvironmentChanged(int index); 0049 void slotSpinboxValueChanged(int index); 0050 0051 private: 0052 KileInfo *m_ki; 0053 KileDocument::LatexCommands *m_latexCommands; 0054 0055 KComboBox *m_coEnvironment, *m_coTabulator, *m_coDisplaymath; 0056 QCheckBox *m_cbStarred, *m_cbBullets; 0057 QSpinBox *m_spRows, *m_spCols; 0058 QLabel *m_lbRows, *m_lbCols, *m_lbSpace ; 0059 QLabel *m_lbTabulator, *m_lbDisplaymath, *m_lbStarred; 0060 QLabel *m_lbEnvironment, *m_lbBullets; 0061 QLineEdit *m_edSpace; 0062 0063 QString m_envname; 0064 bool m_starred; 0065 bool m_groups; 0066 bool m_columns; 0067 bool m_fixedcolumns; 0068 bool m_mathmode; 0069 QString m_tabulator; 0070 QString m_parameter; 0071 0072 void initEnvironments(); 0073 bool isParameterEnv(); 0074 bool isGroupsParameterEnv(); 0075 }; 0076 0077 } 0078 0079 #endif