File indexing completed on 2024-04-28 16:26:36

0001 /***********************************************************************************
0002   Copyright (C) 2011-2012 by Holger Danielsson (holger.danielsson@versanet.de)
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 #ifndef USERMENUCONFIGWIDGET_H
0015 #define USERMENUCONFIGWIDGET_H
0016 
0017 #include <QWidget>
0018 
0019 #include "usermenu/usermenu.h"
0020 #include "ui_usermenuconfigwidget.h"
0021 
0022 class KileWidgetUsermenuConfig : public QWidget, public Ui::KileWidgetUsermenuConfig
0023 {
0024     Q_OBJECT
0025 
0026 public:
0027     explicit KileWidgetUsermenuConfig(KileMenu::UserMenu *usermenu, QWidget *parent = Q_NULLPTR);
0028     ~KileWidgetUsermenuConfig();
0029 
0030     void writeConfig();
0031 
0032 private Q_SLOTS:
0033     void slotInstallClicked();
0034     void slotRemoveClicked();
0035 
0036 private:
0037     KileMenu::UserMenu *m_usermenu;
0038 
0039     void setXmlFile(const QString &file);
0040 
0041 };
0042 
0043 #endif