~ubuntu-branches/ubuntu/precise/kalzium/precise

« back to all changes in this revision

Viewing changes to src/rsdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac
  • Date: 2011-07-03 12:28:58 UTC
  • Revision ID: james.westby@ubuntu.com-20110703122858-q1yyxncs89e4w0hs
Tags: upstream-4.6.90+repack
Import upstream version 4.6.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef RSDIALOG_H
 
2
#define RSDIALOG_H
 
3
/***************************************************************************
 
4
 *   Copyright (C) 2006-2008 by Carsten Niehaus                            *
 
5
 *   cniehaus@kde.org                                                      *
 
6
 *                                                                         *
 
7
 *   This program is free software; you can redistribute it and/or modify  *
 
8
 *   it under the terms of the GNU General Public License as published by  *
 
9
 *   the Free Software Foundation; either version 2 of the License, or     *
 
10
 *   (at your option) any later version.                                   *
 
11
 *                                                                         *
 
12
 *   This program is distributed in the hope that it will be useful,       *
 
13
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
14
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
15
 *   GNU General Public License for more details.                          *
 
16
 *                                                                         *
 
17
 *   You should have received a copy of the GNU General Public License     *
 
18
 *   along with this program; if not, write to the                         *
 
19
 *   Free Software Foundation, Inc.,                                       *
 
20
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.             *
 
21
 ***************************************************************************/
 
22
 
 
23
#include <kdialog.h>
 
24
#include <QWidget>
 
25
#include <QMap>
 
26
 
 
27
#include "ui_rswidget.h"
 
28
 
 
29
/**
 
30
 * This class 
 
31
 *
 
32
 * @author Carsten Niehaus
 
33
 */
 
34
class RSDialog : public KDialog
 
35
{
 
36
        Q_OBJECT
 
37
 
 
38
        public:
 
39
                RSDialog( QWidget * parent );
 
40
 
 
41
                Ui::RSWidget ui;
 
42
 
 
43
                /**
 
44
                 * Filter the R- and S-Phrases.
 
45
                 */
 
46
                void filterRS( const QList<int>& r, const QList<int>& s );
 
47
 
 
48
                QString rphrase( int number );
 
49
                
 
50
                QString sphrase( int number );
 
51
 
 
52
        public slots:
 
53
                void filter();
 
54
 
 
55
        private slots:
 
56
                void slotHelp();
 
57
 
 
58
        private:
 
59
                QMap<int, QString> rphrases_map;
 
60
                QMap<int, QString> sphrases_map;
 
61
                
 
62
                void createSPhrases();
 
63
                void createRPhrases();
 
64
 
 
65
                void invalidPhaseString();
 
66
};
 
67
 
 
68
#endif // RSDIALOG_H
 
69