tagguesserconfigdlg.h 1.62 KB
Newer Older
1 2
/**
 * Copyright (C) 2003 Frerich Raabe <raabe@kde.org>
3
 *
4 5 6 7 8 9 10 11 12 13 14
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
15
 */
16

17 18 19 20
#ifndef JUK_TAGGUESSERCONFIGDLG_H
#define JUK_TAGGUESSERCONFIGDLG_H

#include <QDialog>
21

Laurent Montel's avatar
Laurent Montel committed
22
#include "ui_tagguesserconfigdlgwidget.h"
23

24
class QStringListModel;
25

Laurent Montel's avatar
Laurent Montel committed
26 27
class TagGuesserConfigDlgWidget : public QWidget, public Ui::TagGuesserConfigDlgWidget
{
28 29
    Q_OBJECT

Laurent Montel's avatar
Laurent Montel committed
30
public:
31 32 33 34 35
    TagGuesserConfigDlgWidget(QWidget *parent)
      : QWidget(parent)
    {
        setupUi(this);
    }
Laurent Montel's avatar
Laurent Montel committed
36 37
};

38
class TagGuesserConfigDlg : public QDialog
39 40
{
    Q_OBJECT
41 42 43 44 45

public:
    explicit TagGuesserConfigDlg(QWidget *parent, const char *name = nullptr);

protected slots:
46
    virtual void accept() override;
47 48 49 50 51 52 53 54 55 56 57 58

private slots:
    void slotCurrentChanged(QModelIndex item);
    void slotMoveUpClicked();
    void slotMoveDownClicked();
    void slotAddClicked();
    void slotModifyClicked();
    void slotRemoveClicked();

private:
    TagGuesserConfigDlgWidget *m_child;
    QStringListModel *m_tagSchemeModel;
59 60
};

61
#endif // JUK_TAGGUESSERCONFIGDLG_H
62 63

// vim: set et sw=4 tw=0 sta: