-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.cpp | 39 | ||||
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.h | 32 |
2 files changed, 59 insertions, 12 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp index 5b7f851..78885e1 100644 --- a/noncore/apps/opie-console/profileeditordialog.cpp +++ b/noncore/apps/opie-console/profileeditordialog.cpp | |||
@@ -204,10 +204,10 @@ void ProfileEditorDialog::initUI() | |||
204 | connect(device_box, SIGNAL(activated(int)), SLOT(slotDevice(int))); | 204 | connect(device_box, SIGNAL(activated(int)), SLOT(slotDevice(int))); |
205 | 205 | ||
206 | connect(group_flow, SIGNAL(clicked(int)), SLOT(slotConn(int))); | 206 | connect(group_flow, SIGNAL(clicked(int)), SLOT(slotConnFlow(int))); |
207 | connect(group_parity, SIGNAL(clicked(int)), SLOT(slotConn(int))); | 207 | connect(group_parity, SIGNAL(clicked(int)), SLOT(slotConnParity(int))); |
208 | connect(speed_box, SIGNAL(clicked(int)), SLOT(slotConn(int))); | 208 | connect(speed_box, SIGNAL(activated(int)), SLOT(slotConnSpeed(int))); |
209 | 209 | ||
210 | connect(terminal_box, SIGNAL(clicked(int)), SLOT(slotConn(int))); | 210 | connect(terminal_box, SIGNAL(activated(int)), SLOT(slotTermTerm(int))); |
211 | connect(group_size, SIGNAL(clicked(int)), SLOT(slotConn(int))); | 211 | connect(group_size, SIGNAL(clicked(int)), SLOT(slotTermFont(int))); |
212 | } | 212 | } |
213 | 213 | ||
@@ -268,5 +268,5 @@ QString ProfileEditorDialog::prof_type() | |||
268 | } | 268 | } |
269 | 269 | ||
270 | void ProfileEditorDialog::slotConn(int id) | 270 | void ProfileEditorDialog::slotConnFlow(int id) |
271 | { | 271 | { |
272 | switch(id) | 272 | switch(id) |
@@ -278,4 +278,11 @@ void ProfileEditorDialog::slotConn(int id) | |||
278 | m_prof.writeEntry("Flow", 0x02); | 278 | m_prof.writeEntry("Flow", 0x02); |
279 | break; | 279 | break; |
280 | } | ||
281 | } | ||
282 | |||
283 | void ProfileEditorDialog::slotConnParity(int id) | ||
284 | { | ||
285 | switch(id) | ||
286 | { | ||
280 | case id_parity_odd: | 287 | case id_parity_odd: |
281 | m_prof.writeEntry("Parity", 2); | 288 | m_prof.writeEntry("Parity", 2); |
@@ -284,4 +291,11 @@ void ProfileEditorDialog::slotConn(int id) | |||
284 | m_prof.writeEntry("Parity", 1); | 291 | m_prof.writeEntry("Parity", 1); |
285 | break; | 292 | break; |
293 | } | ||
294 | } | ||
295 | |||
296 | void ProfileEditorDialog::slotConnSpeed(int id) | ||
297 | { | ||
298 | switch(id) | ||
299 | { | ||
286 | 300 | ||
287 | case id_baud_115200: | 301 | case id_baud_115200: |
@@ -300,4 +314,11 @@ void ProfileEditorDialog::slotConn(int id) | |||
300 | m_prof.writeEntry("Speed", 9600); | 314 | m_prof.writeEntry("Speed", 9600); |
301 | break; | 315 | break; |
316 | } | ||
317 | } | ||
318 | |||
319 | void ProfileEditorDialog::slotTermTerm(int id) | ||
320 | { | ||
321 | switch(id) | ||
322 | { | ||
302 | 323 | ||
303 | case id_term_vt100: | 324 | case id_term_vt100: |
@@ -310,5 +331,11 @@ void ProfileEditorDialog::slotConn(int id) | |||
310 | m_prof.writeEntry("Terminal", 0); | 331 | m_prof.writeEntry("Terminal", 0); |
311 | break; | 332 | break; |
333 | } | ||
334 | } | ||
312 | 335 | ||
336 | void ProfileEditorDialog::slotTermFont(int id) | ||
337 | { | ||
338 | switch(id) | ||
339 | { | ||
313 | case id_size_small: | 340 | case id_size_small: |
314 | m_prof.writeEntry("Font", 0); | 341 | m_prof.writeEntry("Font", 0); |
diff --git a/noncore/apps/opie-console/profileeditordialog.h b/noncore/apps/opie-console/profileeditordialog.h index 0637f44..a6808d0 100644 --- a/noncore/apps/opie-console/profileeditordialog.h +++ b/noncore/apps/opie-console/profileeditordialog.h | |||
@@ -34,5 +34,9 @@ public slots: | |||
34 | void slotDevice(int id); | 34 | void slotDevice(int id); |
35 | 35 | ||
36 | void slotConn(int id); | 36 | void slotConnFlow(int id); |
37 | void slotConnParity(int id); | ||
38 | void slotConnSpeed(int id); | ||
39 | void slotTermTerm(int id); | ||
40 | void slotTermFont(int id); | ||
37 | 41 | ||
38 | private: | 42 | private: |
@@ -52,18 +56,34 @@ private: | |||
52 | QHBoxLayout *plugin_layout; | 56 | QHBoxLayout *plugin_layout; |
53 | 57 | ||
54 | enum Ids | 58 | enum ParityIds |
55 | { | 59 | { |
56 | id_parity_odd, | 60 | id_parity_odd, |
57 | id_parity_even, | 61 | id_parity_even |
62 | }; | ||
63 | |||
64 | enum FlowIds | ||
65 | { | ||
58 | id_flow_hw, | 66 | id_flow_hw, |
59 | id_flow_sw, | 67 | id_flow_sw |
68 | }; | ||
69 | |||
70 | enum SpeedIds | ||
71 | { | ||
60 | id_baud_115200, | 72 | id_baud_115200, |
61 | id_baud_57600, | 73 | id_baud_57600, |
62 | id_baud_38400, | 74 | id_baud_38400, |
63 | id_baud_19200, | 75 | id_baud_19200, |
64 | id_baud_9600, | 76 | id_baud_9600 |
77 | }; | ||
78 | |||
79 | enum TermIds | ||
80 | { | ||
65 | id_term_vt100, | 81 | id_term_vt100, |
66 | id_term_vt220, | 82 | id_term_vt220, |
67 | id_term_ansi, | 83 | id_term_ansi |
84 | }; | ||
85 | |||
86 | enum FontIds | ||
87 | { | ||
68 | id_size_small, | 88 | id_size_small, |
69 | id_size_medium, | 89 | id_size_medium, |