File indexing completed on 2024-04-28 16:26:31
0001 /************************************************************************** 0002 * Copyright (C) 2007 by Michel Ludwig (michel.ludwig@kdemail.net) * 0003 ***************************************************************************/ 0004 0005 /************************************************************************** 0006 * * 0007 * This program is free software; you can redistribute it and/or modify * 0008 * it under the terms of the GNU General Public License as published by * 0009 * the Free Software Foundation; either version 2 of the License, or * 0010 * (at your option) any later version. * 0011 * * 0012 ***************************************************************************/ 0013 0014 #include "latexconfigwidget.h" 0015 0016 #include "dialogs/latexcommanddialog.h" 0017 0018 KileWidgetLatexConfig::KileWidgetLatexConfig(QWidget *parent) : QWidget(parent) 0019 { 0020 setupUi(this); 0021 connect(m_pbCommands, SIGNAL(clicked()), this, SLOT(slotConfigure())); 0022 } 0023 0024 KileWidgetLatexConfig::~KileWidgetLatexConfig() 0025 { 0026 } 0027 0028 void KileWidgetLatexConfig::slotConfigure() 0029 { 0030 KileDialog::LatexCommandsDialog *dlg = new KileDialog::LatexCommandsDialog(m_config, m_commands, this); 0031 dlg->exec(); 0032 delete dlg; 0033 } 0034 0035 0036 void KileWidgetLatexConfig::setLatexCommands(KConfig *config, KileDocument::LatexCommands *commands) 0037 { 0038 m_config = config; 0039 m_commands = commands; 0040 } 0041