-rw-r--r-- | inputmethods/handwriting/qimpenprefbase.ui | 8 | ||||
-rw-r--r-- | inputmethods/handwriting/qimpensetup.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/inputmethods/handwriting/qimpenprefbase.ui b/inputmethods/handwriting/qimpenprefbase.ui index 1639d1a..4189206 100644 --- a/inputmethods/handwriting/qimpenprefbase.ui +++ b/inputmethods/handwriting/qimpenprefbase.ui | |||
@@ -16,104 +16,104 @@ | |||
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Form1</string> | 20 | <string>Form1</string> |
21 | </property> | 21 | </property> |
22 | <vbox> | 22 | <vbox> |
23 | <property stdset="1"> | 23 | <property stdset="1"> |
24 | <name>margin</name> | 24 | <name>margin</name> |
25 | <number>11</number> | 25 | <number>11</number> |
26 | </property> | 26 | </property> |
27 | <property stdset="1"> | 27 | <property stdset="1"> |
28 | <name>spacing</name> | 28 | <name>spacing</name> |
29 | <number>6</number> | 29 | <number>6</number> |
30 | </property> | 30 | </property> |
31 | <widget> | 31 | <widget> |
32 | <class>QLabel</class> | 32 | <class>QLabel</class> |
33 | <property stdset="1"> | 33 | <property stdset="1"> |
34 | <name>name</name> | 34 | <name>name</name> |
35 | <cstring>TextLabel1</cstring> | 35 | <cstring>TextLabel1</cstring> |
36 | </property> | 36 | </property> |
37 | <property stdset="1"> | 37 | <property stdset="1"> |
38 | <name>text</name> | 38 | <name>text</name> |
39 | <string>Multi-stroke character timeout:</string> | 39 | <string>Multi-stroke character timeout:</string> |
40 | </property> | 40 | </property> |
41 | </widget> | 41 | </widget> |
42 | <widget> | 42 | <widget> |
43 | <class>QLayoutWidget</class> | 43 | <class>QLayoutWidget</class> |
44 | <property stdset="1"> | 44 | <property stdset="1"> |
45 | <name>name</name> | 45 | <name>name</name> |
46 | <cstring>Layout2</cstring> | 46 | <cstring>Layout2</cstring> |
47 | </property> | 47 | </property> |
48 | <hbox> | 48 | <hbox> |
49 | <property stdset="1"> | 49 | <property stdset="1"> |
50 | <name>margin</name> | 50 | <name>margin</name> |
51 | <number>0</number> | 51 | <number>0</number> |
52 | </property> | 52 | </property> |
53 | <property stdset="1"> | 53 | <property stdset="1"> |
54 | <name>spacing</name> | 54 | <name>spacing</name> |
55 | <number>6</number> | 55 | <number>6</number> |
56 | </property> | 56 | </property> |
57 | <widget> | 57 | <widget> |
58 | <class>QSlider</class> | 58 | <class>QSlider</class> |
59 | <property stdset="1"> | 59 | <property stdset="1"> |
60 | <name>name</name> | 60 | <name>name</name> |
61 | <cstring>multiStrokeSlider</cstring> | 61 | <cstring>multiStrokeSlider</cstring> |
62 | </property> | 62 | </property> |
63 | <property stdset="1"> | 63 | <property stdset="1"> |
64 | <name>minValue</name> | ||
65 | <number>250</number> | ||
66 | </property> | ||
67 | <property stdset="1"> | ||
68 | <name>maxValue</name> | 64 | <name>maxValue</name> |
69 | <number>1000</number> | 65 | <number>1000</number> |
70 | </property> | 66 | </property> |
71 | <property stdset="1"> | 67 | <property stdset="1"> |
68 | <name>minValue</name> | ||
69 | <number>250</number> | ||
70 | </property> | ||
71 | <property stdset="1"> | ||
72 | <name>lineStep</name> | 72 | <name>lineStep</name> |
73 | <number>10</number> | 73 | <number>10</number> |
74 | </property> | 74 | </property> |
75 | <property stdset="1"> | 75 | <property stdset="1"> |
76 | <name>pageStep</name> | 76 | <name>pageStep</name> |
77 | <number>50</number> | 77 | <number>50</number> |
78 | </property> | 78 | </property> |
79 | <property stdset="1"> | 79 | <property stdset="1"> |
80 | <name>value</name> | 80 | <name>value</name> |
81 | <number>500</number> | 81 | <number>500</number> |
82 | </property> | 82 | </property> |
83 | <property stdset="1"> | 83 | <property stdset="1"> |
84 | <name>orientation</name> | 84 | <name>orientation</name> |
85 | <enum>Horizontal</enum> | 85 | <enum>Horizontal</enum> |
86 | </property> | 86 | </property> |
87 | <property stdset="1"> | 87 | <property stdset="1"> |
88 | <name>tickmarks</name> | 88 | <name>tickmarks</name> |
89 | <enum>Right</enum> | 89 | <enum>Right</enum> |
90 | </property> | 90 | </property> |
91 | </widget> | 91 | </widget> |
92 | <widget> | 92 | <widget> |
93 | <class>QLabel</class> | 93 | <class>QLabel</class> |
94 | <property stdset="1"> | 94 | <property stdset="1"> |
95 | <name>name</name> | 95 | <name>name</name> |
96 | <cstring>multiStrokeLabel</cstring> | 96 | <cstring>multiStrokeLabel</cstring> |
97 | </property> | 97 | </property> |
98 | <property stdset="1"> | 98 | <property stdset="1"> |
99 | <name>minimumSize</name> | 99 | <name>minimumSize</name> |
100 | <size> | 100 | <size> |
101 | <width>45</width> | 101 | <width>45</width> |
102 | <height>0</height> | 102 | <height>0</height> |
103 | </size> | 103 | </size> |
104 | </property> | 104 | </property> |
105 | <property stdset="1"> | 105 | <property stdset="1"> |
106 | <name>text</name> | 106 | <name>text</name> |
107 | <string>ms</string> | 107 | <string>ms</string> |
108 | </property> | 108 | </property> |
109 | <property stdset="1"> | 109 | <property stdset="1"> |
110 | <name>alignment</name> | 110 | <name>alignment</name> |
111 | <set>AlignVCenter|AlignRight</set> | 111 | <set>AlignVCenter|AlignRight</set> |
112 | </property> | 112 | </property> |
113 | <property> | 113 | <property> |
114 | <name>hAlign</name> | 114 | <name>hAlign</name> |
115 | </property> | 115 | </property> |
116 | </widget> | 116 | </widget> |
117 | </hbox> | 117 | </hbox> |
118 | </widget> | 118 | </widget> |
119 | <widget> | 119 | <widget> |
diff --git a/inputmethods/handwriting/qimpensetup.cpp b/inputmethods/handwriting/qimpensetup.cpp index 5d49e03..10c136d 100644 --- a/inputmethods/handwriting/qimpensetup.cpp +++ b/inputmethods/handwriting/qimpensetup.cpp | |||
@@ -48,97 +48,97 @@ static const char * const left_xpm[] = { | |||
48 | " ", | 48 | " ", |
49 | " . ", | 49 | " . ", |
50 | " .. ", | 50 | " .. ", |
51 | " ... ", | 51 | " ... ", |
52 | " .... ", | 52 | " .... ", |
53 | " ..... ", | 53 | " ..... ", |
54 | " ...... ", | 54 | " ...... ", |
55 | " ..... ", | 55 | " ..... ", |
56 | " .... ", | 56 | " .... ", |
57 | " ... ", | 57 | " ... ", |
58 | " .. ", | 58 | " .. ", |
59 | " . ", | 59 | " . ", |
60 | " ", | 60 | " ", |
61 | " "}; | 61 | " "}; |
62 | 62 | ||
63 | 63 | ||
64 | /* XPM */ | 64 | /* XPM */ |
65 | static const char * const right_xpm[] = { | 65 | static const char * const right_xpm[] = { |
66 | "16 16 2 1", | 66 | "16 16 2 1", |
67 | " c None", | 67 | " c None", |
68 | ".c #000000", | 68 | ".c #000000", |
69 | " ", | 69 | " ", |
70 | " ", | 70 | " ", |
71 | " ", | 71 | " ", |
72 | " . ", | 72 | " . ", |
73 | " .. ", | 73 | " .. ", |
74 | " ... ", | 74 | " ... ", |
75 | " .... ", | 75 | " .... ", |
76 | " ..... ", | 76 | " ..... ", |
77 | " ...... ", | 77 | " ...... ", |
78 | " ..... ", | 78 | " ..... ", |
79 | " .... ", | 79 | " .... ", |
80 | " ... ", | 80 | " ... ", |
81 | " .. ", | 81 | " .. ", |
82 | " . ", | 82 | " . ", |
83 | " ", | 83 | " ", |
84 | " "}; | 84 | " "}; |
85 | 85 | ||
86 | 86 | ||
87 | 87 | ||
88 | QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent, | 88 | QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent, |
89 | const char *name, bool modal, int WFlags ) | 89 | const char *name, bool modal, int WFlags ) |
90 | : QDialog( parent, name, modal, WFlags ), profileCombo(0), profile(p) | 90 | : QDialog( parent, name, modal, WFlags ), profileCombo(0), profile(p) |
91 | { | 91 | { |
92 | setCaption( tr("Setup Handwriting Input") ); | 92 | setCaption( tr("Setup Handwriting Input") ); |
93 | 93 | ||
94 | QVBoxLayout *vb = new QVBoxLayout( this ); | 94 | QVBoxLayout *vb = new QVBoxLayout( this ); |
95 | 95 | ||
96 | #if 1 | 96 | #if 0 |
97 | profileList.setAutoDelete( true ); | 97 | profileList.setAutoDelete( true ); |
98 | QHBoxLayout *hb = new QHBoxLayout( vb ); | 98 | QHBoxLayout *hb = new QHBoxLayout( vb ); |
99 | hb->setMargin( 6 ); | 99 | hb->setMargin( 6 ); |
100 | QLabel *l = new QLabel( tr("Character Profile:"), this ); | 100 | QLabel *l = new QLabel( tr("Character Profile:"), this ); |
101 | hb->addWidget( l ); | 101 | hb->addWidget( l ); |
102 | profileCombo = new QComboBox( this ); | 102 | profileCombo = new QComboBox( this ); |
103 | connect( profileCombo, SIGNAL(activated(const QString &)), | 103 | connect( profileCombo, SIGNAL(activated(const QString &)), |
104 | this, SLOT(selectProfile(const QString &)) ); | 104 | this, SLOT(selectProfile(const QString &)) ); |
105 | hb->addWidget( profileCombo ); | 105 | hb->addWidget( profileCombo ); |
106 | loadProfiles(); | 106 | loadProfiles(); |
107 | #else | 107 | #else |
108 | profileList.append( profile ); | 108 | profileList.append( profile ); |
109 | #endif | 109 | #endif |
110 | 110 | ||
111 | QTabWidget *tw = new QTabWidget( this ); | 111 | QTabWidget *tw = new QTabWidget( this ); |
112 | vb->addWidget( tw ); | 112 | vb->addWidget( tw ); |
113 | 113 | ||
114 | pref = new QIMPenPrefBase( this ); | 114 | pref = new QIMPenPrefBase( this ); |
115 | tw->addTab( pref, tr("Preferences") ); | 115 | tw->addTab( pref, tr("Preferences") ); |
116 | 116 | ||
117 | pref->inputStyle->setExclusive( TRUE ); | 117 | pref->inputStyle->setExclusive( TRUE ); |
118 | 118 | ||
119 | style = profile->style() == QIMPenProfile::ToggleCases ? 1 : 0; | 119 | style = profile->style() == QIMPenProfile::ToggleCases ? 1 : 0; |
120 | pref->inputStyle->setButton( style ); | 120 | pref->inputStyle->setButton( style ); |
121 | connect( pref->inputStyle, SIGNAL(clicked(int)), | 121 | connect( pref->inputStyle, SIGNAL(clicked(int)), |
122 | this, SLOT(styleClicked(int)) ); | 122 | this, SLOT(styleClicked(int)) ); |
123 | pref->inputStyle->setEnabled( profile->canSelectStyle() ); | 123 | pref->inputStyle->setEnabled( profile->canSelectStyle() ); |
124 | 124 | ||
125 | multiTimeout = profile->multiStrokeTimeout(); | 125 | multiTimeout = profile->multiStrokeTimeout(); |
126 | pref->multiStrokeSlider->setValue( multiTimeout ); | 126 | pref->multiStrokeSlider->setValue( multiTimeout ); |
127 | multiTimeoutChanged( multiTimeout ); | 127 | multiTimeoutChanged( multiTimeout ); |
128 | connect( pref->multiStrokeSlider, SIGNAL(valueChanged(int)), | 128 | connect( pref->multiStrokeSlider, SIGNAL(valueChanged(int)), |
129 | this, SLOT(multiTimeoutChanged(int)) ); | 129 | this, SLOT(multiTimeoutChanged(int)) ); |
130 | 130 | ||
131 | edit = new QIMPenEdit( p, tw ); | 131 | edit = new QIMPenEdit( p, tw ); |
132 | tw->addTab( edit, tr("Customize") ); | 132 | tw->addTab( edit, tr("Customize") ); |
133 | } | 133 | } |
134 | 134 | ||
135 | void QIMPenSetup::loadProfiles() | 135 | void QIMPenSetup::loadProfiles() |
136 | { | 136 | { |
137 | QString path = QPEApplication::qpeDir() + "etc/qimpen"; | 137 | QString path = QPEApplication::qpeDir() + "etc/qimpen"; |
138 | QDir dir( path, "*.conf" ); | 138 | QDir dir( path, "*.conf" ); |
139 | QStringList list = dir.entryList(); | 139 | QStringList list = dir.entryList(); |
140 | QStringList::Iterator it; | 140 | QStringList::Iterator it; |
141 | for ( it = list.begin(); it != list.end(); ++it ) { | 141 | for ( it = list.begin(); it != list.end(); ++it ) { |
142 | QIMPenProfile *p = new QIMPenProfile( path + "/" + *it ); | 142 | QIMPenProfile *p = new QIMPenProfile( path + "/" + *it ); |
143 | profileList.append( p ); | 143 | profileList.append( p ); |
144 | profileCombo->insertItem( p->name() ); | 144 | profileCombo->insertItem( p->name() ); |