summaryrefslogtreecommitdiffstats
path: root/krename/translitplugin.h
blob: 017edec97e387e0934963c5e6af03d02458300d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// C++ Interface: translitplugin
//
// Description: 
//
//
// Author: Dominik Seichter <domseichter@web.de>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef TRANSLITPLUGIN_H
#define TRANSLITPLUGIN_H

#include "plugin.h"
#include "pluginloader.h"
#include "batchrenamer.h"

// QT includes
#include <tqlabel.h>
#include <tqlayout.h>
#include <tqtextcodec.h>
#include <tqvgroupbox.h>
#include <tqcheckbox.h>

// KDE includes
#include <tdeapplication.h>
#include <kiconloader.h>
#include <tdelocale.h>
#include <kcombobox.h>
// #include <kdebug.h>

/**
@author Dominik Seichter
*/
class TranslitPlugin : public Plugin {
    Q_OBJECT
  
    public:
        const TQString getName() const;
        const TQString getAccelName() const;
        const int type() const;
        const TQPixmap getIcon() const;
        void drawInterface( TQWidget* w, TQVBoxLayout* l );
        void finished();
        bool checkError();
        void fillStructure();
        TQString processFile( BatchRenamer*, int, TQString token, int );
        TranslitPlugin();
    protected:
        TQString translit(const TQString &);

        typedef TQMap<TQString, TQString> TranslitMap;
        TranslitMap m_mapFromUTF8;
        
        static const TQString m_strUtf8[];
        static const TQString m_strEngl[];
};

#endif