00001 #include <qpe/qpeapplication.h> 00002 #include <qdialog.h> 00003 #include <qcheckbox.h> 00004 #include <qlistbox.h> 00005 #include <qpushbutton.h> 00006 00007 #ifndef CONFIGDLG_H 00008 #define CONFIGDLG_H 00009 00010 class ConfigDlg : public QDialog 00011 { 00012 Q_OBJECT 00013 00014 public: 00015 ConfigDlg (); 00016 static QStringList ConfigDlg::loadSw(); 00017 00018 signals: 00019 void pickboardToggled(bool on_off); 00020 void repeatToggled(bool on_off); 00021 void setMapToDefault(); 00022 void setMapToFile(QString map); 00023 void reloadKeyboard(); 00024 void configDlgClosed(); 00025 void reloadSw(); 00026 00027 protected: 00028 virtual void accept(); 00029 00030 protected slots: 00031 void moveSelectedUp(); 00032 void moveSelectedDown(); 00033 00034 private slots: 00035 void setMap(int index); 00036 void addMap(); 00037 void removeMap(); 00038 virtual void closeEvent ( QCloseEvent * ); 00039 00040 // all those required slots for the color push buttons 00041 void keyColorClicked(); 00042 void keyColorPressedClicked(); 00043 void keyColorLinesClicked(); 00044 void textColorClicked(); 00045 00046 private: 00047 QCheckBox *pick_button; 00048 QCheckBox *repeat_button; 00049 QListBox *keymaps; 00050 QPushButton *add_button; 00051 QPushButton *remove_button; 00052 00053 QStringList default_maps; // the maps in your share/multikey/ dir 00054 QStringList custom_maps; // maps you added with the 'add' button 00055 QStringList sw_maps; // maps, which used in keyboard switch rotation ring 00056 00057 /* color buttons */ 00058 QPushButton *keycolor_button; 00059 QPushButton *keycolor_pressed_button; 00060 QPushButton *keycolor_lines_button; 00061 QPushButton *textcolor_button; 00062 00063 }; 00064 00065 #endif
1.4.2