summaryrefslogtreecommitdiff
path: root/inputmethods/multikey/configdlg.h
blob: f900a14672dad33a581edaf126d7016fa4d59a76 (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
61
62
63
64
65
#include <qpe/qpeapplication.h>
#include <qdialog.h>
#include <qcheckbox.h>
#include <qlistbox.h>
#include <qpushbutton.h>

#ifndef CONFIGDLG_H
#define CONFIGDLG_H

class ConfigDlg : public QDialog
{
    Q_OBJECT

public:
    ConfigDlg ();
    static QStringList loadSw();

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

protected:
    virtual void accept();

protected slots:
    void moveSelectedUp();
    void moveSelectedDown();

private slots:
    void setMap(int index);
    void addMap();
    void removeMap();
    virtual void closeEvent ( QCloseEvent * );

    // all those required slots for the color push buttons
    void keyColorClicked();
    void keyColorPressedClicked();
    void keyColorLinesClicked();
    void textColorClicked();

private:
    QCheckBox *pick_button;
    QCheckBox *repeat_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
    QStringList sw_maps; // maps used in keyboard switch rotation ring

    /* color buttons */
    QPushButton *keycolor_button;
    QPushButton *keycolor_pressed_button;
    QPushButton *keycolor_lines_button;
    QPushButton *textcolor_button;

};

#endif