summaryrefslogtreecommitdiff
path: root/inputmethods/multikey/configdlg.h
blob: ae7afe263b4bb342fa22c80b8a52ef618a7e6608 (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
#include <qpe/qpeapplication.h>
#include <qtabwidget.h>
#include <qcheckbox.h>
#include <qlistbox.h>
#include <qpushbutton.h>

#ifndef CONFIGDLG_H
#define CONFIGDLG_H

class ConfigDlg : public QTabWidget
{
    Q_OBJECT

public:
    ConfigDlg ();

signals:
    void pickboardToggled(bool on_off);
    void setMapToDefault();
    void setMapToFile(QString map);
    void reloadKeyboard();

private slots:
    void pickTog();
    void setMap(int index);
    void addMap();
    void removeMap();

    // all those required slots for the color push buttons
    void keyColorButtonClicked();

private:
    QCheckBox *pick_button;
    QListBox *keymaps;
    QPushButton *add_button;
    QPushButton *remove_button;


    QStringList default_maps; // the maps in your share/multikey/ dir
    QStringList custom_maps; // maps you added with the 'add' button

    /* color buttons */
    QPushButton *key_color_button;

};

#endif