author | harlekin <harlekin> | 2002-10-24 12:01:14 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-24 12:01:14 (UTC) |
commit | 41c59e994e023f5c236502538f54d0f3fce8435a (patch) (unidiff) | |
tree | b49bda3a92fd74e3da8e2fcf2a1121e2e743fc0a | |
parent | 667da4143ff65ac9502d55fb09ca8223b16a8994 (diff) | |
download | opie-41c59e994e023f5c236502538f54d0f3fce8435a.zip opie-41c59e994e023f5c236502538f54d0f3fce8435a.tar.gz opie-41c59e994e023f5c236502538f54d0f3fce8435a.tar.bz2 |
set VT102 as default terminal type and set medium font size as default font size
-rw-r--r-- | noncore/apps/opie-console/terminalwidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/terminalwidget.cpp b/noncore/apps/opie-console/terminalwidget.cpp index eae94c3..fc0f3ce 100644 --- a/noncore/apps/opie-console/terminalwidget.cpp +++ b/noncore/apps/opie-console/terminalwidget.cpp | |||
@@ -118,64 +118,65 @@ void TerminalWidget::load( const Profile& prof ) { | |||
118 | int opt_outbound = prof.readNumEntry("Outbound"); | 118 | int opt_outbound = prof.readNumEntry("Outbound"); |
119 | 119 | ||
120 | switch( term ) { | 120 | switch( term ) { |
121 | case Profile::VT100: | 121 | case Profile::VT100: |
122 | m_terminalBox->setCurrentItem(id_term_vt100 ); | 122 | m_terminalBox->setCurrentItem(id_term_vt100 ); |
123 | break; | 123 | break; |
124 | case Profile::VT102: | 124 | case Profile::VT102: |
125 | m_terminalBox->setCurrentItem(id_term_vt102 ); | 125 | m_terminalBox->setCurrentItem(id_term_vt102 ); |
126 | break; | 126 | break; |
127 | case Profile::Linux: | 127 | case Profile::Linux: |
128 | m_terminalBox->setCurrentItem(id_term_linux ); | 128 | m_terminalBox->setCurrentItem(id_term_linux ); |
129 | break; | 129 | break; |
130 | case Profile::XTerm: | 130 | case Profile::XTerm: |
131 | m_terminalBox->setCurrentItem(id_term_xterm ); | 131 | m_terminalBox->setCurrentItem(id_term_xterm ); |
132 | break; | 132 | break; |
133 | default: | 133 | default: |
134 | m_terminalBox->setCurrentItem(id_term_vt102 ); | ||
134 | break; | 135 | break; |
135 | }; | 136 | }; |
136 | 137 | ||
137 | switch( color ) { | 138 | switch( color ) { |
138 | case Profile::Black: | 139 | case Profile::Black: |
139 | m_colorCmb->setCurrentItem(id_term_black ); | 140 | m_colorCmb->setCurrentItem(id_term_black ); |
140 | break; | 141 | break; |
141 | case Profile::White: | 142 | case Profile::White: |
142 | m_colorCmb->setCurrentItem(id_term_white ); | 143 | m_colorCmb->setCurrentItem(id_term_white ); |
143 | break; | 144 | break; |
144 | case Profile::Green: | 145 | case Profile::Green: |
145 | m_colorCmb->setCurrentItem(id_term_green ); | 146 | m_colorCmb->setCurrentItem(id_term_green ); |
146 | break; | 147 | break; |
147 | case Profile::Orange: | 148 | case Profile::Orange: |
148 | m_colorCmb->setCurrentItem(id_term_orange ); | 149 | m_colorCmb->setCurrentItem(id_term_orange ); |
149 | break; | 150 | break; |
150 | default: | 151 | default: |
151 | break; | 152 | break; |
152 | }; | 153 | }; |
153 | 154 | ||
154 | switch( fontsize ) { | 155 | switch( fontsize ) { |
155 | case Profile::Micro: | 156 | case Profile::Micro: |
156 | m_sizeSmall->setChecked(true ); | 157 | m_sizeSmall->setChecked(true ); |
157 | break; | 158 | break; |
158 | case Profile::Small: | 159 | case Profile::Small: |
159 | m_sizeMedium->setChecked(true ); | 160 | m_sizeMedium->setChecked(true ); |
160 | break; | 161 | break; |
161 | case Profile::Medium: | 162 | case Profile::Medium: |
162 | m_sizeLarge->setChecked( true ); | 163 | m_sizeLarge->setChecked( true ); |
163 | break; | 164 | break; |
164 | m_sizeSmall->setChecked(true); | ||
165 | default: | 165 | default: |
166 | m_sizeMedium->setChecked(true ); | ||
166 | break; | 167 | break; |
167 | }; | 168 | }; |
168 | 169 | ||
169 | if (opt_echo) m_optionEcho->setChecked( true ); | 170 | if (opt_echo) m_optionEcho->setChecked( true ); |
170 | if (opt_wrap) m_optionWrap->setChecked( true ); | 171 | if (opt_wrap) m_optionWrap->setChecked( true ); |
171 | if (opt_inbound) m_convInbound->setChecked( true ); | 172 | if (opt_inbound) m_convInbound->setChecked( true ); |
172 | if (opt_outbound) m_convOutbound->setChecked( true ); | 173 | if (opt_outbound) m_convOutbound->setChecked( true ); |
173 | 174 | ||
174 | } | 175 | } |
175 | void TerminalWidget::save( Profile& profile ) { | 176 | void TerminalWidget::save( Profile& profile ) { |
176 | switch(m_terminalBox->currentItem() ) { | 177 | switch(m_terminalBox->currentItem() ) { |
177 | case id_term_vt100: | 178 | case id_term_vt100: |
178 | profile.writeEntry("Terminal", Profile::VT100 ); | 179 | profile.writeEntry("Terminal", Profile::VT100 ); |
179 | break; | 180 | break; |
180 | case id_term_vt102: | 181 | case id_term_vt102: |
181 | profile.writeEntry("Terminal", Profile::VT102 ); | 182 | profile.writeEntry("Terminal", Profile::VT102 ); |